Here is the whole exception info:

Error: 500
Location: /database-test/logon.do
Internal Servlet Error:

java.lang.NoSuchMethodError
        at com.sapmarkets.isa.cic.LogonAction.perform(LogonAction.java:117)
        at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1456)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1334)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:447)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

By the way, I tried the traditional JDBC(Not use the Datasource interface)
to connect the DB. It works.  Why struts way does NOT work?

Thanks!


-----Original Message-----
From: Jim Richards [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 7:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem for connecting DB



Can you send the top few lines from the exception stack trace?

I think I have a similar problem with a different set up
(solaris/postgreSQL). I have a feeling the database
code just doesn't work.

"Wang, Meng" wrote:
> 
> Dear Jim,
> 
> Thank you for your rapid response.  Here is the specific information:
> 
> Web server: tomcat321
> database:       ACCESS
> OS:             Window 2000
> JDK:            JDK1.3
> ----------------------------------------------
> 1. For testing purpose, I put database under my application root directory
> and setup DSN in ODBC.
> 
> 2. I initiate the database config in the struts-config.xml:
> 
> <data-sources>
>   <data-source
>      autoCommit="false"
>     description="Example Data Source Configuration"
>     driverClass="sun.jdbc.odbc.JdbcOdbcDriver"
>        maxCount="4"
>        minCount="2"
>          key="abc"
>         password=""
>        url="jdbc:odbc:test"
>        user=""  />
>   </data-sources>
> 3. The codes in the Action class for connecting the database is:
>     try {
>                 ....
>           DataSource ds = servlet.findDataSource("abc");
>             .....
> 
> The problem is:  can NOT find the data source.  Is there any more thing to
> do for connecting the database?
> 
> Thanks a lots!!

Reply via email to