I'm quite new with tomcat.
I run 7.0.30.

I have succesfully installed an application, however i'm facing issues
with the database connection.

As i understood i added the following code to server.xml

<Context path="/" debug="1" reloadable="true" crossContext="true"
 antiJARLocking="true" antiResourceLocking="true">
     <Resource
         name="jdbc/atvd"
         type="javax.sql.DataSource"
         auth="container"
         username="atvd"
         password="atvd"
         driverClassName="com.mysql.jdbc.Driver"
         url="jdbc:mysql://localhost:3306/atvd12?autoReconnect=true" />
 </Context>

Unfortunately I'm Getting below error.
Don't get any special information from the log.

type Exception report

message Could not execute action

description The server encountered an internal error that prevented it
from fulfilling this request.

exception
javax.servlet.ServletException: Could not execute action
        
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:196)
        
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:182)



root cause
java.lang.NullPointerException
        
nl.dolhuis.util.hibernate.HibernateSession.getSession(HibernateSession.java:25)
        
nl.dolhuis.util.hibernate.HibernateInterceptor.intercept(HibernateInterceptor.java:83)
        
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:180)
        
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:32)
        
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:180)
        
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:119)
        
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:183)
        
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:182)



note The full stack trace of the root cause is available in the Apache
Tomcat/7.0.30 logs.

Hopefully somebody knows what i'm doing wrong.

thanks in advance.

regards,

Léon



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to