Are you pointing your resin doc root to the
location where your strut example is located? Or copy the example to the default
resin doc root?
I only made one change to my resin.conf to make the
example work. My examples are located in a directory c:\dev\hawks\app, I made
the following change to my resin.conf
<app-dir>c:\dev\hawks\app</app-dir>
And everything worked fine.
----- Original Message -----
Sent: Friday, April 27, 2001 2:11
AM
Subject: RE: resin and struts
example
Thanks for your feedback. It's not really
my web app. It's the one provided as an example with struts
("struts-example").
When
I run the example in Tomcat in work perfectly, however in Resin-1.2.5 I get
the error I posted. I'll try looking at the config files you
mentioned.
Thanks,
Phil
Phillip DiCorpo Software Engineer |
|
SkyGo, Inc. 1235 Radio Road 1st Floor Redwood City, CA 94065
|
|
(650) 232-1192 Direct (650) 232-1100
Main (650)
232-1200 Fax [EMAIL PROTECTED]
|
It looks like the DatabaseServlet is not being
loaded. If you are configuring your web app using resin.conf, you will need
to add the DatabaseServlet to it and have it loaded at startup. I'm using
Resin also, but I use an web.xml file as follows:
<!-- Initialization Database Servlet Configuration
--> <servlet>
<servlet-name>DatabaseServlet</servlet-name>
<servlet-class>whatever.package.DatabaseServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
I hop this helps.
----- Original Message -----
Sent: Thursday, April 26, 2001 10:31
PM
Subject: resin and struts
example
Hello,
I was trying
to get the struts example to work with Resin 1.2.5, and was having some
difficulty.
When I run the
web app I get the following stack trace ...
java.lang.NoSuchMethodError: javax.servlet.UnavailableException: method <init>(Ljava/lang/String;)V not found
at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:183)
at javax.servlet.GenericServlet.init(GenericServlet.java:172)
at com.caucho.server.http.Application.createServlet(Application.java:1734)
at com.caucho.server.http.Application.loadServlet(Application.java:1698)
at com.caucho.server.http.Application.initServlets(Application.java:1115)
at com.caucho.server.http.Application.init(Application.java:1068)
at com.caucho.server.http.VirtualHost.restartApplication(VirtualHost.java:865)
at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:613)
at com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:654)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:236)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:157)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
It seems like this should be a no brainer to get the web app example working. Can anyone point me in the right direction? Thanks, Phil
Phillip DiCorpo Software Engineer |
|
SkyGo, Inc. 1235 Radio Road 1st Floor Redwood City, CA
94065
|
|
(650) 232-1192 Direct (650) 232-1100
Main (650)
232-1200 Fax [EMAIL PROTECTED]
|
|