Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 10:42:32 PM

Pages: [1]   Go Down
  Print  
Author Topic: struts2 exception. same war runs well at local machine.  (Read 2056 times)
jjp1st
Spacescooter Operator
*****
Offline Offline

Posts: 45


« on: April 17, 2008, 07:27:26 AM »

I create a web application using struts2, including all struts2 jar files in WEB-INF/lib
This war file runs well on resin 3.1/jdk1.5 at my PC.
But the application throws following exception after I upload this WAR file to lunarpages server.

500 Servlet Exception

java.lang.NullPointerException
   at com.caucho.xml.QAttributedNode.getAttributeNodeNS(QAttributedNode.java:146)
   at com.opensymphony.xwork2.util.location.LocationAttributes.getLocation(LocationAttributes.java:170)
   at com.opensymphony.xwork2.util.location.LocationAttributes.getLocation(LocationAttributes.java:183)
   at com.opensymphony.xwork2.util.location.LocationUtils.getLocation(LocationUtils.java:253)
   at com.opensymphony.xwork2.util.location.LocationUtils.getLocation(LocationUtils.java:202)
   at com.opensymphony.xwork2.XWorkException.<init>(XWorkException.java:91)
   at com.opensymphony.xwork2.config.ConfigurationException.<init>(ConfigurationException.java:74)
   at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)
   at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
   at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
   at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
   at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
   at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
   at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
   at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:127)
   at com.caucho.server.dispatch.FilterMapper.buildDispatchChain(FilterMapper.java:167)
   at com.caucho.server.webapp.Application.buildInvocation(Application.java:1680)
   at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:672)
   at com.caucho.server.host.Host.buildInvocation(Host.java:515)
   at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:296)
   at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:550)
   at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:175)
   at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:380)
   at com.caucho.server.port.TcpConnection.run(TcpConnection.java:327)
   at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:450)
   at com.caucho.util.ThreadPool.run(ThreadPool.java:394)
   at java.lang.Thread.run(Thread.java:595)

Resin-3.0.s041002 (built Sat, 02 Oct 2004 04:47:31 PDT)
Logged
jjp1st
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #1 on: April 22, 2008, 02:55:06 AM »

Somebody on the internet said the problem is because resin is configured to use JDK default XML parser. If we can configure it to use xerces, the problem will be solved. Could administrator help on this problem?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: