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 Logo
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]
 
 

Reply via email to