Hi everybody,
I've been workin on deploying our project which developed in ibm websphere into jboss
application server. I did the deployment, but when i make a request via jakarta's
httpclient-3.0.1 to our servlet i get the following error in my server console
11:12:24,531 ERROR [[MyServlet]] Allocate exception for servlet MyServlet
java.lang.ExceptionInInitializerError
at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:673)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:80)
at org.apache.log4j.helpers.FileWatchdog.(FileWatchdog.java:49)
at org.apache.log4j.PropertyWatchdog.(PropertyConfigurator.java:665)
at
org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:373)
at system.appcore.MyServlet.init(MyServlet.java:96)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
va:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
p11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ClassCastException
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:139)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:644)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.(LogManager.java:113)
and invalid stream header exception on the client side. I thought that this was because of
the httpclient that I used, because when I use the ibm V6 app server the response comes in
chunkedinputstream but in the jboss case it comes in contentlengthinputstream. And I
realized that these are arranged by the httpclient. Then I stop using httpclient and used
the general method httpurlconnection. In this case I get the http 500 error which
indicates that my server does not work properly. Is this because of the above Allocate
exception error?? if anyone encountered this error before, please help me. Thanks a lot..
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956897#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...