geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ranbaab <elangbam.ran...@gmail.com>
Subject class path issue
Date Tue, 31 May 2011 13:38:35 GMT
Hi all,

Our web application deploy on tomcat is planning to move to
geronimo-tomcat6-2.2.

In our application, we use castor-codegen-1.1 to generate the java class
from the schema file.
The generated class is using the method 
Unmarshaller.unmarshal(com/bnt/ui/preference/xml/UserPreference, reader)
from the castor-1.1.

The class file is packed in the application jar and is inside the
web-inf\lib folder so when trying to unmarshall, the path of the class
provided in the unmarshall method is giving exception as 

2011-05-31 18:22:23,265 WARN  [DefaultRemoter] Method execution failed:
java.lang.NullPointerException
        at
com.bnt.ui.preference.UserPrefXMLUtility.getChildNodes(UserPrefXMLUtility.java:193)
        at
com.bnt.ui.preference.UserPrefXMLUtility.getColPref(UserPrefXMLUtility.java:344)
        at
com.bnt.ui.preference.UserPreferenceCfgRW.getDeviceListColumnPreferences(UserPreferenceCfgRW.java:352)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at
org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
        at
org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
        at
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
        at
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
        at
org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
        at
org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
        at
org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
        at com.bnt.ui.BHMServlet.doPost(BHMServlet.java:56)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:420)
        at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)
        at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
        at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:678)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:703)
        at java.lang.Thread.run(Thread.java:811)
2011-05-31 18:22:23,280 WARN  [BaseCallMarshaller] --Erroring: batchId[13]
message[java.lang.NullPointerException]
18:22:24,421 WARN  [geronimo-commands:start-server] unable to find
UserPreference for 'name' in ClassDescriptor of node{File: [not available];
li
e: 4; column: 15}
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:740)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:596)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:817)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.preference.xml.UserPreference.unmarshal(UserPreference.java:271)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.preference.UserPrefXMLUtility.unmarshal(UserPrefXMLUtility.java:111)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.preference.UserPrefXMLUtility.getPrefObj(UserPrefXMLUtility.java:86)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.preference.UserPrefXMLUtility.getChildNodes(UserPrefXMLUtility.java:192)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.preference.UserPrefXMLUtility.getColPref(UserPrefXMLUtility.java:344)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.preference.UserPreferenceCfgRW.getDeviceListColumnPreferences(UserPreference
fgRW.java:352)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
java.lang.reflect.Method.invoke(Method.java:618)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
com.bnt.ui.BHMServlet.doPost(BHMServlet.java:56)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
18:22:24,421 WARN  [geronimo-commands:start-server]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain
java:290)

While deploying in the tomcat, there is no issue. Can anybody throw some
light on this?


Thanks,
Ranjan


--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/class-path-issue-tp3005965p3005965.html
Sent from the Development mailing list archive at Nabble.com.

Mime
View raw message