[Fwd: java.lang.NoClassDefFoundError: javax/xml/xpath/XPath]]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Fwd: java.lang.NoClassDefFoundError: javax/xml/xpath/XPath]]

Pascal Heus
Erik:
good news:
- I pushed the latest 20060426 build to our external server and I reverted back to JRE 1.4.2_06. It now behaves properly. The java.lang.NoClassDefFoundError: javax/xml/xpath/XPath no longer shows up.
- A reboot of my machine seem to have fixed the source formatting issue...
The only thing I'm still missing is the call trace in the Eclipse console. Any idea?
thanks
*P

-------- Original Message --------
Subject: Re: [ops-users] [Fwd: java.lang.NoClassDefFoundError: javax/xml/xpath/XPath]
Date: Wed, 26 Apr 2006 13:33:16 -0400
From: Pascal Heus [hidden email]
To: [hidden email]
References: [hidden email] [hidden email] [hidden email] [hidden email] [hidden email] [hidden email] [hidden email] [hidden email] [hidden email] [hidden email] [hidden email]


Erik:

Fixed one of the problems. There were two <Context> entries in the
.oxfContainers/Internal Tomcat/conf/server.xml file:
<Context crossContext="true" debug="0"
docBase="C:/eclipse-workspace/orbeon" path="" reloadable="true"
workDir="C:/eclipse-workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/orbeon/orbeon.oxfstudio.eclipse/work"/>
<Context crossContext="true" debug="0"
docBase="C:/eclipse-workspace/orbeon" path="/ops" reloadable="true"
workDir="C:/eclipse-workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/orbeon/orbeon.oxfstudio.eclipse/work"/>

This likely happened when I changed the value of the context in the
project properties a few weeks ago.
The original 'root' context probably never got deleted after the change
and was hanging around. You may want to log this as a bug in Studio (if
it's still being maintained).

I then tried the latest build again but still have the source formatting
problem. The Eclipse console also no longer shows the call traces.
This does work fine under my local Tomcat 5.5 so it is clearly an
Eclipse configuration problem.  Will keep you posted on progress.

thanks

*P

Erik Bruchez wrote:
> Pascal,
>
> The changes in the latest builds should definitely not impact how OPS
> works in Eclipse.
>
> From your stack trace, it looks like Tomcat is either starting twice,
> and the second Tomcat will not work.
>
> Try to find under the Eclipse workspace (or plugins) a file called
> server.xml, and check whether there are multiple such files, and/or
> such files with same ports. Make sure there is only one server.xml
> file left.
>
> You can always use an external Tomcat to work around the problem. This
> will not prevent you to see the XPL debug information appear in Eclipse.
>
> -Erik
>
> Pascal Heus wrote:
>> Erik:
>> I tried a clean install of 20060426 under Eclipse Studio (deleted the
>> project and the folder, imported from WAR, restarted Eclipse with
>> -clean option) but the problem persists. The server behaves OK when I
>> use the 20060416 nightly build (the View Source and other xml 2 html
>> conversions wok fine).
>> I do however see a double entry and a log4j issue in the startup
>> trace (not sure if this is normal, see below).
>> Should I give up on Eclipse Studio? What would be an alternate
>> configuration under Eclipse?
>> Will let you know if I find anything but may stick to 20060416 for
>> now as I'm in the middle of a project component due next week...
>> Let me know if you have any suggestion.
>> later,
>> Pascal
>>
>> Apr 26, 2006 7:25:43 AM org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on port 8888
>> Starting service Tomcat-Standalone
>> Apache Tomcat/4.1.30
>> *Starting PresentationServer Release 3.0.1.200604150008
>> Initializing Resource Manager with:*
>> {org.orbeon.oxf.resources.WebAppResourceManagerImplServletContext=org.apache.catalina.core.ApplicationContext@1bde4,
>> oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,
>> oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory,
>> oxf.resources.priority.1=org.orbeon.oxf.resources.WebAppResourceManagerFactory,
>> oxf.resources.webapp.rootdir=/WEB-INF/resources}
>> 2006-04-26 07:25:47,321 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Servlet - Servlet initialized.
>> 2006-04-26 07:25:47,381 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Servlet - Servlet initialized.
>> 2006-04-26 07:25:47,381 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Servlet - About to run processor:
>> [{http://www.orbeon.com/oxf/processors}pipeline, config ->
>> oxf:/context/servlet-initialized.xpl]
>> 2006-04-26 07:25:47,501 INFO  org.orbeon.oxf.processor.DebugProcessor
>> null - message:
>> oxf:/context/servlet-initialized.xpl, line 19, column 46
>>
>> <message xmlns:oxf="http://www.orbeon.com/oxf/processors"
>> xmlns:p="http://www.orbeon.com/oxf/pipeline">Servlet
>> initialized.</message>
>> 2006-04-26 07:25:47,501 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Done running processor - Timing: 120 - Cache hits: 1, fault:
>> 4, adds: 4, success rate: 20%
>> 2006-04-26 07:25:47,601 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.apache.struts.util.LocalStrings', returnNull=true
>> 2006-04-26 07:25:47,601 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.apache.struts.action.ActionResources', returnNull=true
>> 2006-04-26 07:25:47,752 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.orbeon.oxf.struts.examples.ApplicationResources',
>> returnNull=true
>> 2006-04-26 07:25:47,752 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.orbeon.oxf.struts.examples.ApplicationResources',
>> returnNull=true
>> 2006-04-26 07:25:47,762 INFO 
>> org.apache.struts.validator.ValidatorPlugIn null - Loading validation
>> rules file from '/WEB-INF/validator-rules.xml'
>> 2006-04-26 07:25:47,802 INFO 
>> org.apache.struts.validator.ValidatorPlugIn null - Loading validation
>> rules file from '/WEB-INF/validation.xml'
>> 2006-04-26 07:25:47,912 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.orbeon.oxf.struts.examples.ModuleResources', returnNull=true
>> *Starting PresentationServer Release 3.0.1.200604150008
>> Initializing Resource Manager with:*
>> {org.orbeon.oxf.resources.WebAppResourceManagerImplServletContext=org.apache.catalina.core.ApplicationContext@fe0fd9,
>> oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,
>> oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory,
>> oxf.resources.priority.1=org.orbeon.oxf.resources.WebAppResourceManagerFactory,
>> oxf.resources.webapp.rootdir=/WEB-INF/resources}
>> *log4j:ERROR exception setting timeout, shutting down server socket.
>> 2006-04-26 07:25:50,846 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Servlet - Servlet initialized.
>> java.net.BindException: Address already in use: JVM_Bind*
>>     at java.net.PlainSocketImpl.socketBind(Native Method)
>>     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>>     at java.net.ServerSocket.bind(ServerSocket.java:319)
>>     at java.net.ServerSocket.<init>(ServerSocket.java:185)
>>     at java.net.ServerSocket.<init>(ServerSocket.java:97)
>>     at
>> org.apache.log4j.net.SocketHubAppender$ServerMonitor.run(SocketHubAppender.java:348)
>>
>> 2006-04-26 07:25:50,886 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Servlet - Servlet initialized.
>>     at java.lang.Thread.run(Thread.java:595)
>> 2006-04-26 07:25:50,886 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Servlet - About to run processor:
>> [{http://www.orbeon.com/oxf/processors}pipeline, config ->
>> oxf:/context/servlet-initialized.xpl]
>> 2006-04-26 07:25:50,986 INFO  org.orbeon.oxf.processor.DebugProcessor
>> null - message:
>> oxf:/context/servlet-initialized.xpl, line 19, column 46
>>
>> <message xmlns:oxf="http://www.orbeon.com/oxf/processors"
>> xmlns:p="http://www.orbeon.com/oxf/pipeline">Servlet
>> initialized.</message>
>> 2006-04-26 07:25:50,986 INFO  org.orbeon.oxf.webapp.ProcessorService
>> null - Done running processor - Timing: 100 - Cache hits: 1, fault:
>> 4, adds: 4, success rate: 20%
>> 2006-04-26 07:25:51,026 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.apache.struts.util.LocalStrings', returnNull=true
>> 2006-04-26 07:25:51,026 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.apache.struts.action.ActionResources', returnNull=true
>> 2006-04-26 07:25:51,237 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.orbeon.oxf.struts.examples.ApplicationResources',
>> returnNull=true
>> 2006-04-26 07:25:51,247 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.orbeon.oxf.struts.examples.ApplicationResources',
>> returnNull=true
>> 2006-04-26 07:25:51,257 INFO 
>> org.apache.struts.validator.ValidatorPlugIn null - Loading validation
>> rules file from '/WEB-INF/validator-rules.xml'
>> 2006-04-26 07:25:51,317 INFO 
>> org.apache.struts.validator.ValidatorPlugIn null - Loading validation
>> rules file from '/WEB-INF/validation.xml'
>> 2006-04-26 07:25:51,427 INFO 
>> org.apache.struts.util.PropertyMessageResources null - Initializing,
>> config='org.orbeon.oxf.struts.examples.ModuleResources', returnNull=true
>> Apr 26, 2006 7:25:51 AM org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on port 8888




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: java.lang.NoClassDefFoundError: javax/xml/xpath/XPath]]

Erik Bruchez
Administrator
Great!

Under config/log4j.xml, do you have something like:

<root>
     <priority value="info"/>
     <appender-ref ref="ConsoleAppender"/>
     <!--<appender-ref ref="ChainsawAppender"/>-->
     <appender-ref ref="OPSMonitor"/>
</root>

The OPSMonitor appender must be uncommented for Studio logging to work.

-Erik

Pascal Heus wrote:
 > Erik:
 > good news:
 > - I pushed the latest 20060426 build to our external server and I
 > reverted back to JRE 1.4.2_06. It now behaves properly. The
 > java.lang.NoClassDefFoundError: javax/xml/xpath/XPath no longer shows up.
 > - A reboot of my machine seem to have fixed the source formatting
issue...
 > The only thing I'm still missing is the call trace in the Eclipse
 > console. Any idea?
 > thanks




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws