Tomcat Deployment Question
Tomcat Deployment Question
- Subject: Tomcat Deployment Question
- From: Riccardo De Menna <email@hidden>
- Date: Tue, 2 Mar 2004 14:37:29 +0100
Hi all, first please excuse me for posting a deployment question on the
dev list, but the other list is much less active and I hope someone
here has already tried what I'm doing.
I need to deploy in Tomcat 5.0 on a FreeBSD machine but I found that
there is a huge lack of documentation (and btw, I'm also not that good
with the Java world). My first attempt was with the 3rd option (True
WAR) that Xcode gives as I ask for a servlet deployment (undocumented
option). I was not able to install or run in any way the .war file. So
I changed to Single Directory Deployment and I was able to find out how
to reach and start the app.
But, when I try to load a page I get an exception as follows:
javax.servlet.ServletException: Servlet.init() for servlet
WOServletAdaptor threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1086)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
712)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:187)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:184)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:156)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
833)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:732)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
619)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:688)
at java.lang.Thread.run(Thread.java:484)
root cause
java.lang.NoSuchMethodError: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
at
com.webobjects.foundation.NSNumberFormatter._addThousandSeparatorsToPatt
ern(NSNumberFormatter.java:1528)
at
com.webobjects.foundation.NSNumberFormatter.setPositivePattern(NSNumberF
ormatter.java:816)
at
com.webobjects.foundation.NSNumberFormatter.setPattern(NSNumberFormatter
.java:872)
at
com.webobjects.foundation.NSNumberFormatter.<init>(NSNumberFormatter.jav
a:386)
at
com.webobjects.foundation.NSTimeZone.<clinit>(NSTimeZone.java:90)
at
com.webobjects.foundation.NSLog$PrintStreamLogger.<clinit>(NSLog.java:
1606)
at com.webobjects.foundation.NSLog.<clinit>(NSLog.java:481)
at java.lang.reflect.Method.invoke(Native Method)
at
com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAda
ptor.java:390)
at
com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.
java:78)
at
com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:
629)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1044)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
712)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:187)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:184)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:156)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
567)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
833)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:732)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
619)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:688)
at java.lang.Thread.run(Thread.java:484)
In particular, on the first line of the root cause it says:
java.lang.NoSuchMethodError: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
Is it normal to see something like append(Ljava/lang/StringBuffer;)
instead of append(Ljava.lang.StringBuffer)?
Any clues?
I'm currently using diablo-1.3.1 as my JRE and Tomcat 5.0. I've built
both on the machine where I'm testing.
regards,
Riccardo De Menna
SistemiOnLine srl
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.