You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Thorsten Scherler (JIRA)" <ji...@apache.org> on 2007/03/28 23:54:25 UTC

[jira] Closed: (FOR-765) forrest war and classpath issues with Jetty

     [ https://issues.apache.org/jira/browse/FOR-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Scherler closed FOR-765.
---------------------------------

    Resolution: Fixed

Ok after recompiling forrest with 1.4 I got it starting and see the error David describes.

Then I looked at the 'forrest war' output:
...
If using JDK 1.4 or above, make sure to set the Java environment variable
-Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed
e.g. in the TOMCAT_OPTS (3.3.x) or CATALINA_OPTS (4.x) env variable.
...

I followed above instructions by using:
java -Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed/ -jar start.jar

...and 1.4 is working like a charm.

Will close this issue because the fix is stated in the target output you need to use creating a war.

> forrest war and classpath issues with Jetty
> -------------------------------------------
>
>                 Key: FOR-765
>                 URL: https://issues.apache.org/jira/browse/FOR-765
>             Project: Forrest
>          Issue Type: Bug
>          Components: Launch servlet WAR
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>             Fix For: 0.8-dev
>
>         Attachments: jetty-out.log
>
>
> Until recently we could run forrest as a WAR with Jetty. With today's SVN r356945 it gets past the Cocoon startup phase, then on the first client request it suffers some error which causes a NoSuchMethodError. See attached log ... no other clues. This happens for any site, e.g. 'forrest seed-sample war'. All is okay for 'forrest seed-sample run'. This indicates a classpath issue with Jetty/Forrest configuration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Closed: (FOR-765) forrest war and classpath issues with Jetty

Posted by David Crossley <cr...@apache.org>.
Ross Gardler wrote:
> Gav.... wrote:
> >From: Thorsten Scherler (JIRA)
> >>Subject: [jira] Closed: (FOR-765) forrest war and classpath issues with
> >>Jetty
> >>
> >>Thorsten Scherler closed FOR-765.
> >>---------------------------------
> >>
> >>    Resolution: Fixed
> >>
> >>Ok after recompiling forrest with 1.4 I got it starting and see the error
> >>David describes.
> >>
> >>Then I looked at the 'forrest war' output:
> >>...
> >>If using JDK 1.4 or above, make sure to set the Java environment variable
> >>-Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed
> >>e.g. in the TOMCAT_OPTS (3.3.x) or CATALINA_OPTS (4.x) env variable.
> >>...
> >>
> >>I followed above instructions by using:
> >>java -
> >>Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed/
> >>-jar start.jar
> >>
> >>...and 1.4 is working like a charm.

Thanks for figuring that out Thorsten.

> >I saw that message too, assumed it was Tomcat related rather than Jetty. 
> >And
> >then it says 'or above' , well with above 1.4 you don't need it at all, the
> >message is not accurate as Tomcat and Jetty work fine on 1.5.
> >
> >So you did the above Tomcat related message and got Jetty working on 1.4?
> >Sounds good then if it works, can the message be changed to include Jetty
> >as well as Tomcat as a fix suggestion.
> 
> The first part of the message is pretty clear "set the Java environment 
> variable ..."
> 
> The second part says "e.g. in the TOMCAT_OPTS..." which is a Tomcat 
> example. I don't read that to mean it is a Tomcat only instruction, only 
> that it is a Tomcat example.
> 
> However, if one person feels it is confusing, you can pretty sure it is 
> confusing for another.

I read it as Tomcat specific too. Thorsten chopped
off the top of the build message. It starts with:

"To run in Tomcat, add this to the config file (usually server.xml):
..."

> Nevertheless,  we can't possibly put examples for 
> all possible containers.

As i suggested in the issue comments, it might be better
to have a doc or FAQ for such quirks. Rather than clutter
the build output, just refer to the doc.

Did anyone try with an earlier version of Jetty, e.g. 4.2.23 ?

-David

> I'd say remove the e.g. and just leave it at "set the env variable".
> 
> You are also correct that this only affects Java 1.4, but I suspect it 
> may affect other java implementations since it is a class loading issue 
> and therefore dependant on what is bundled with the java implementation 
> in use.
> 
> I'd say change it to something like "In Sun Java 1.4 and possibly some 
> other Java implementations..."
> 
> Ross

Re: [jira] Closed: (FOR-765) forrest war and classpath issues with Jetty

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> 
>> -----Original Message-----
>> From: Thorsten Scherler (JIRA) [mailto:jira@apache.org]
>> Sent: Thursday, 29 March 2007 5:54 AM
>> To: dev@forrest.apache.org
>> Subject: [jira] Closed: (FOR-765) forrest war and classpath issues with
>> Jetty
>>
>>
>>      [ https://issues.apache.org/jira/browse/FOR-
>> 765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>>
>> Thorsten Scherler closed FOR-765.
>> ---------------------------------
>>
>>     Resolution: Fixed
>>
>> Ok after recompiling forrest with 1.4 I got it starting and see the error
>> David describes.
>>
>> Then I looked at the 'forrest war' output:
>> ...
>> If using JDK 1.4 or above, make sure to set the Java environment variable
>> -Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed
>> e.g. in the TOMCAT_OPTS (3.3.x) or CATALINA_OPTS (4.x) env variable.
>> ...
>>
>> I followed above instructions by using:
>> java -
>> Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed/
>> -jar start.jar
>>
>> ...and 1.4 is working like a charm.
> 
> I saw that message too, assumed it was Tomcat related rather than Jetty. And
> then it says 'or above' , well with above 1.4 you don't need it at all, the
> message is not accurate as Tomcat and Jetty work fine on 1.5.
> 
> So you did the above Tomcat related message and got Jetty working on 1.4?
> Sounds good then if it works, can the message be changed to include Jetty
> as well as Tomcat as a fix suggestion.

The first part of the message is pretty clear "set the Java environment 
variable ..."

The second part says "e.g. in the TOMCAT_OPTS..." which is a Tomcat 
example. I don't read that to mean it is a Tomcat only instruction, only 
that it is a Tomcat example.

However, if one person feels it is confusing, you can pretty sure it is 
confusing for another. Nevertheless,  we can't possibly put examples for 
all possible containers.

I'd say remove the e.g. and just leave it at "set the env variable".

You are also correct that this only affects Java 1.4, but I suspect it 
may affect other java implementations since it is a class loading issue 
and therefore dependant on what is bundled with the java implementation 
in use.

I'd say change it to something like "In Sun Java 1.4 and possibly some 
other Java implementations..."

Ross


RE: [jira] Closed: (FOR-765) forrest war and classpath issues with Jetty

Posted by Thorsten Scherler <th...@apache.org>.
On Thu, 2007-03-29 at 06:32 +0800, Gav.... wrote:
...
> > Then I looked at the 'forrest war' output:
> > ...
> > If using JDK 1.4 or above, make sure to set the Java environment variable
> > -Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed
> > e.g. in the TOMCAT_OPTS (3.3.x) or CATALINA_OPTS (4.x) env variable.
> > ...
> > 
> > I followed above instructions by using:
> > java -
> > Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed/
> > -jar start.jar
> > 
> > ...and 1.4 is working like a charm.
> 
> I saw that message too, assumed it was Tomcat related rather than Jetty. 

Like Ross said the message is pretty clear on the environment variable
part. The tomcat part has an "e.g." before it.

However I clarified the message as you suggested (@Ross I already
committed when I saw your comment). It is always better to have accurate
messages.

http://svn.apache.org/viewvc?view=rev&rev=523496

Please review, whether this is ok.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


RE: [jira] Closed: (FOR-765) forrest war and classpath issues with Jetty

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: Thorsten Scherler (JIRA) [mailto:jira@apache.org]
> Sent: Thursday, 29 March 2007 5:54 AM
> To: dev@forrest.apache.org
> Subject: [jira] Closed: (FOR-765) forrest war and classpath issues with
> Jetty
> 
> 
>      [ https://issues.apache.org/jira/browse/FOR-
> 765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Thorsten Scherler closed FOR-765.
> ---------------------------------
> 
>     Resolution: Fixed
> 
> Ok after recompiling forrest with 1.4 I got it starting and see the error
> David describes.
> 
> Then I looked at the 'forrest war' output:
> ...
> If using JDK 1.4 or above, make sure to set the Java environment variable
> -Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed
> e.g. in the TOMCAT_OPTS (3.3.x) or CATALINA_OPTS (4.x) env variable.
> ...
> 
> I followed above instructions by using:
> java -
> Djava.endorsed.dirs=/home/thorsten/src/apache/forrest/trunk/lib/endorsed/
> -jar start.jar
> 
> ...and 1.4 is working like a charm.

I saw that message too, assumed it was Tomcat related rather than Jetty. And
then it says 'or above' , well with above 1.4 you don't need it at all, the
message is not accurate as Tomcat and Jetty work fine on 1.5.

So you did the above Tomcat related message and got Jetty working on 1.4?
Sounds good then if it works, can the message be changed to include Jetty
as well as Tomcat as a fix suggestion.

Gav...

> 
> Will close this issue because the fix is stated in the target output you
> need to use creating a war.
> 
> > forrest war and classpath issues with Jetty
> > -------------------------------------------
> >
> >                 Key: FOR-765
> >                 URL: https://issues.apache.org/jira/browse/FOR-765
> >             Project: Forrest
> >          Issue Type: Bug
> >          Components: Launch servlet WAR
> >    Affects Versions: 0.8-dev
> >            Reporter: David Crossley
> >             Fix For: 0.8-dev
> >
> >         Attachments: jetty-out.log
> >
> >
> > Until recently we could run forrest as a WAR with Jetty. With today's
> SVN r356945 it gets past the Cocoon startup phase, then on the first
> client request it suffers some error which causes a NoSuchMethodError. See
> attached log ... no other clues. This happens for any site, e.g. 'forrest
> seed-sample war'. All is okay for 'forrest seed-sample run'. This
> indicates a classpath issue with Jetty/Forrest configuration.
> 
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007
> 7:44 AM