You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by John Richard Moser <ni...@comcast.net> on 2007/11/19 15:14:27 UTC

deployment file help

I'm currently trying to deploy a Web application that wants to be
uploaded as a .WAR to Tomcat or JRun.  For Tomcat it wants the
following bolb as a configuration XML:

<Context path="/foo" docBase="/foo/foo.war" unpackWARs="true" 
override="true">
   <Parameter name="Properties" value="/foo/config" />
</Context>

The instructions say to point the XML configuration file URL at a file
containing this when using the Tomcat Web Application Manager to
deploy a WAR.

For jrun it says to change the JVM settings to add
-Dfoo.properties=/foo to the command line, and to not use hot deploy
with jrun.

I'm not sure how to add this stuff to the deployment plan XML I'm
writing.  I'm using the v1.2 docs on how to write deployment plans,
with this as a guide particularly:

http://cwiki.apache.org/GMOxDOC12/geronimo-webxml.html

Any help?

-- 
Bring back the Firefox plushy!
http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good
https://bugzilla.mozilla.org/show_bug.cgi?id=322367

Re: deployment file help

Posted by John Richard Moser <ni...@comcast.net>.

Jacek Laskowski wrote:
> On Nov 19, 2007 3:58 PM, John Richard Moser <ni...@comcast.net> wrote:
> 

> 
>> This is equivalent to the inclusion of the following element in the web
>> application deployment descriptor (/WEB-INF/web.xml):
>>
>> <context-param>
>>    <param-name>companyName</param-name>
>>    <param-value>My Company, Incorporated</param-value>
>> </context-param>
>>
>> but does not require modification of the deployment descriptor to
>> customize this value.
> 
> It's your webapp, isn't it? I'm pretty sure you can mimic something
> akin to it in geronimo-web.xml, but let's leave it until we really
> need it. Deploy the webapp and send the error messages you encounter.
> 

I modified web.xml to do it, but still want to know the real solution. 
The value is installation specific (it's a path to a bunch of files on 
the local server) so it needs to change per install....

Now my only problem is I need to make sure I'm using Servelet spec 2.4 
and JSP 1.3
> 
> Jacek
> 

-- 
Bring back the Firefox plushy!
http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good
https://bugzilla.mozilla.org/show_bug.cgi?id=322367

Re: Error message when start Geronimo 2.0.2

Posted by David Jencks <da...@yahoo.com>.
While annoying it's not really a problem.  I think it will be fixed  
in the next release.

thanks
david jencks

On Nov 20, 2007, at 9:35 PM, jpmlpool wrote:

> Hi
>
>     When start Geronimo server I get the next error message, but it  
> seems
> it does not affect something so far. How can I solve this problem?
>
> .....
> Module 14/51 org.apache.geronimo.configs/tomcat6/2.0.2/car
> 21:25:38,531
>      ERROR [[/]] "Restricted listeners property file not found  
> started in
> 5.406s
> .....
>
> John
>


Error message when start Geronimo 2.0.2

Posted by jpmlpool <jp...@hotmail.com>.
Hi

    When start Geronimo server I get the next error message, but it seems
it does not affect something so far. How can I solve this problem?

.....
Module 14/51 org.apache.geronimo.configs/tomcat6/2.0.2/car
21:25:38,531
     ERROR [[/]] "Restricted listeners property file not found started in
5.406s
.....

John


Re: deployment file help

Posted by Kevan Miller <ke...@gmail.com>.
On Nov 20, 2007 8:53 AM, John Moser <jo...@gmail.com> wrote:

> Kevan Miller <ke...@...> writes:
>
> > On Nov 19, 2007, at 2:24 PM, John Richard Moser wrote:
>
> > > on #geronimo on freenode I'm told Geronimo doesn't have such a thing
> > > in its deployment plan and I had to modify WEB-INF/web.xml manually
> > > (which got me a bit further).
> > >
> > > May be something to add in the next version.
> >
> > Yep. John, if you could raise a Jira, that helps get things on the To
> > Do List...
>
>
> I'm not sure what a Jira is or how to raise one... do I need a stick
> with brazil nuts on the end?


Heh. It probably wouldn't hurt... ;-)

Jira is our bug-tracking database --
https://issues.apache.org/jira/browse/GERONIMO

I've created a feature request --
https://issues.apache.org/jira/browse/GERONIMO-3619

--kevan

Re: deployment file help

Posted by John Moser <jo...@gmail.com>.
Kevan Miller <ke...@...> writes:

> On Nov 19, 2007, at 2:24 PM, John Richard Moser wrote:

> > on #geronimo on freenode I'm told Geronimo doesn't have such a thing  
> > in its deployment plan and I had to modify WEB-INF/web.xml manually  
> > (which got me a bit further).
> >
> > May be something to add in the next version.
> 
> Yep. John, if you could raise a Jira, that helps get things on the To  
> Do List...


I'm not sure what a Jira is or how to raise one... do I need a stick
with brazil nuts on the end?

> BTW, geronimo log information (question you had on IRC) is in var/log/ 
> geronimo.log. You can adjust log levels via the admin console or  
> updating var/log/server-log4j.properties

OK so the tomcat/jetty logs get dumped in there too.


> --kevan



Re: deployment file help

Posted by Kevan Miller <ke...@gmail.com>.
On Nov 19, 2007, at 2:24 PM, John Richard Moser wrote:

>
>
> Jacek Laskowski wrote:
>> On Nov 19, 2007 3:58 PM, John Richard Moser <ni...@comcast.net>  
>> wrote:
>>> <context-param>
>>>   <param-name>companyName</param-name>
>>>   <param-value>My Company, Incorporated</param-value>
>>> </context-param>
>>>
>>> but does not require modification of the deployment descriptor to
>>> customize this value.
>> It's your webapp, isn't it? I'm pretty sure you can mimic something
>> akin to it in geronimo-web.xml, but let's leave it until we really
>> need it. Deploy the webapp and send the error messages you encounter.
>
> on #geronimo on freenode I'm told Geronimo doesn't have such a thing  
> in its deployment plan and I had to modify WEB-INF/web.xml manually  
> (which got me a bit further).
>
> May be something to add in the next version.

Yep. John, if you could raise a Jira, that helps get things on the To  
Do List...

BTW, geronimo log information (question you had on IRC) is in var/log/ 
geronimo.log. You can adjust log levels via the admin console or  
updating var/log/server-log4j.properties

--kevan

Re: deployment file help

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
.On Nov 19, 2007 8:24 PM, John Richard Moser <ni...@comcast.net> wrote:

> on #geronimo on freenode I'm told Geronimo doesn't have such a thing in
> its deployment plan and I had to modify WEB-INF/web.xml manually (which
> got me a bit further).
>
> May be something to add in the next version.

Does the webapp run well now?

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: deployment file help

Posted by John Richard Moser <ni...@comcast.net>.

Jacek Laskowski wrote:
> On Nov 19, 2007 3:58 PM, John Richard Moser <ni...@comcast.net> wrote:
> 
>> <context-param>
>>    <param-name>companyName</param-name>
>>    <param-value>My Company, Incorporated</param-value>
>> </context-param>
>>
>> but does not require modification of the deployment descriptor to
>> customize this value.
> 
> It's your webapp, isn't it? I'm pretty sure you can mimic something
> akin to it in geronimo-web.xml, but let's leave it until we really
> need it. Deploy the webapp and send the error messages you encounter.
> 

on #geronimo on freenode I'm told Geronimo doesn't have such a thing in 
its deployment plan and I had to modify WEB-INF/web.xml manually (which 
got me a bit further).

May be something to add in the next version.
> 
> Jacek
> 

-- 
Bring back the Firefox plushy!
http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good
https://bugzilla.mozilla.org/show_bug.cgi?id=322367

Re: deployment file help

Posted by John Richard Moser <ni...@comcast.net>.

Jacek Laskowski wrote:
> On Nov 19, 2007 3:58 PM, John Richard Moser <ni...@comcast.net> wrote:
> 
>> I currently have something akin to... (sorry for all the foo; I'm not
>> sure how much internal app info my company wants me posting around the net)
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>   <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
>>    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
>>     <moduleId>
>>      <groupId>foo</groupId>
>>      <artifactId>Foo</artifactId>
>>      <version>2.2</version>
>>      <type>war</type>
>>     </moduleId>
>>    </environment>
>>    <context-root>/foo</context-root>
>>   </web-app>
>>
>> All the 1.1 stuff is 'cause 2.0 doesn't have great documentation :s
> 
> The file looks fine to me. What's the issue then? Did you deploy the
> webapp? What were the error messages if any?
> 
>> This is equivalent to the inclusion of the following element in the web
>> application deployment descriptor (/WEB-INF/web.xml):
>>
>> <context-param>
>>    <param-name>companyName</param-name>
>>    <param-value>My Company, Incorporated</param-value>
>> </context-param>
>>
>> but does not require modification of the deployment descriptor to
>> customize this value.
> 
> It's your webapp, isn't it? I'm pretty sure you can mimic something
> akin to it in geronimo-web.xml, but let's leave it until we really
> need it. Deploy the webapp and send the error messages you encounter.
> 


14:33:44,897 ERROR [[/****]] Servlet /**** threw load() exception
javax.servlet.UnavailableException: You must provide the location of the 
properties directory for this servlet by defining the
  'properties' initialization parameter for the alias used to call this 
servlet.

(sanitized the servlet name with ****)

> I assume you're working with geronimo 2.0.2 at the very least.
>

yes

> Jacek
> 

-- 
Bring back the Firefox plushy!
http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good
https://bugzilla.mozilla.org/show_bug.cgi?id=322367

Re: deployment file help

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Nov 19, 2007 3:58 PM, John Richard Moser <ni...@comcast.net> wrote:

> I currently have something akin to... (sorry for all the foo; I'm not
> sure how much internal app info my company wants me posting around the net)
>
> <?xml version="1.0" encoding="UTF-8"?>
>   <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
>    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
>     <moduleId>
>      <groupId>foo</groupId>
>      <artifactId>Foo</artifactId>
>      <version>2.2</version>
>      <type>war</type>
>     </moduleId>
>    </environment>
>    <context-root>/foo</context-root>
>   </web-app>
>
> All the 1.1 stuff is 'cause 2.0 doesn't have great documentation :s

The file looks fine to me. What's the issue then? Did you deploy the
webapp? What were the error messages if any?

> This is equivalent to the inclusion of the following element in the web
> application deployment descriptor (/WEB-INF/web.xml):
>
> <context-param>
>    <param-name>companyName</param-name>
>    <param-value>My Company, Incorporated</param-value>
> </context-param>
>
> but does not require modification of the deployment descriptor to
> customize this value.

It's your webapp, isn't it? I'm pretty sure you can mimic something
akin to it in geronimo-web.xml, but let's leave it until we really
need it. Deploy the webapp and send the error messages you encounter.

I assume you're working with geronimo 2.0.2 at the very least.

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: deployment file help

Posted by John Richard Moser <ni...@comcast.net>.

Jacek Laskowski wrote:
> On Nov 19, 2007 3:14 PM, John Richard Moser <ni...@comcast.net> wrote:
>> I'm currently trying to deploy a Web application that wants to be
>> uploaded as a .WAR to Tomcat or JRun.  For Tomcat it wants the
>> following bolb as a configuration XML:
>>
>> <Context path="/foo" docBase="/foo/foo.war" unpackWARs="true"
>> override="true">
>>    <Parameter name="Properties" value="/foo/config" />
>> </Context>
> 
> It's Geronimo 2, right? If so, the following plan will instruct
> Geronimo to bind the webapp to /foo. Just include it in the webapp as
> WEB-INF/geronimo-web.xml file or deploy the webapp with the optional
> deployment plan like ./bin/deploy deploy foo.war geronimo-web.xml:
> 
> geronimo-web.xml:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
>     <context-root>/foo</context-root>
> </web-app>
>

I currently have something akin to... (sorry for all the foo; I'm not 
sure how much internal app info my company wants me posting around the net)

<?xml version="1.0" encoding="UTF-8"?>
  <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
   <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
    <moduleId>
     <groupId>foo</groupId>
     <artifactId>Foo</artifactId>
     <version>2.2</version>
     <type>war</type>
    </moduleId>
   </environment>
   <context-root>/foo</context-root>
  </web-app>

All the 1.1 stuff is 'cause 2.0 doesn't have great documentation :s
> What is the line - <Parameter name="Properties" value="/foo/config" />
> doing? What is it for?
> 

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

I have no idea what this means but...
=====

You can configure named values that will be made visible to the web 
application as servlet context initialization parameters by nesting 
<Parameter> elements inside this element. For example, you can create an 
initialization parameter like this:

<Context ...>
   ...
   <Parameter name="companyName" value="My Company, Incorporated"
          override="false"/>
   ...
</Context>

This is equivalent to the inclusion of the following element in the web 
application deployment descriptor (/WEB-INF/web.xml):

<context-param>
   <param-name>companyName</param-name>
   <param-value>My Company, Incorporated</param-value>
</context-param>	

but does not require modification of the deployment descriptor to 
customize this value.

=====

> Jacek
> 

-- 
Bring back the Firefox plushy!
http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good
https://bugzilla.mozilla.org/show_bug.cgi?id=322367

Re: deployment file help

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Nov 19, 2007 3:14 PM, John Richard Moser <ni...@comcast.net> wrote:
>
> I'm currently trying to deploy a Web application that wants to be
> uploaded as a .WAR to Tomcat or JRun.  For Tomcat it wants the
> following bolb as a configuration XML:
>
> <Context path="/foo" docBase="/foo/foo.war" unpackWARs="true"
> override="true">
>    <Parameter name="Properties" value="/foo/config" />
> </Context>

It's Geronimo 2, right? If so, the following plan will instruct
Geronimo to bind the webapp to /foo. Just include it in the webapp as
WEB-INF/geronimo-web.xml file or deploy the webapp with the optional
deployment plan like ./bin/deploy deploy foo.war geronimo-web.xml:

geronimo-web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
    <context-root>/foo</context-root>
</web-app>

What is the line - <Parameter name="Properties" value="/foo/config" />
doing? What is it for?

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl