Struts-hibernate problem

hi, i am facing the below problem in my site... i have used struts, hibernate, mysql , tomcat 5.5 tools to make my site work...

-

HTTP Status 500 -

--

type Exception report

message

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

exception

javax.servlet.ServletException: Servlet.init() for servlet action threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)

org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)

org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)

org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

java.lang.Thread.run(Unknown Source)

root cause

java.lang.NullPointerException

org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1003)

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)

org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)

javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)

org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)

org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)

org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

java.lang.Thread.run(Unknown Source)

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

[2285 byte] By [loguKKa] at [2007-11-27 4:57:16]
# 1
I'm not familair with Struts, but Google tells me that you're not the only one with this problem. http://www.google.com/search?q=java.lang.NullPointerException+org.apache.struts.action.ActionServlet.parseModuleConfigFile%28ActionServlet.java%3A1003%29
BalusCa at 2007-7-12 10:12:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

My friend your description is very random.

Could you go ahead and explain what is that you are trying to do ?

At what point ru loading Hibernate configurations (Is it by using a customized context listener ? or by using a Struts plugin ?)

Please do post information about your configurations(essentially your web.xml,struts-config.xml,Hibernate-config.xml or hibernate.properties ) & few code snippets (if required) when you are trying to integrate both of them..

and more importantly Hibernate has a very good forum support.

you actually post the query their to get more optimal solution for the stated problem.

REF : http://forum.hibernate.org/

Hope that might help :)

REGARDS,

RaHuL

RahulSharnaa at 2007-7-12 10:12:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

I have actually read the Google results. The 1st Google hit led me to a page with the following statement:

Hi guys. I just had the same problem. I found that the easiest answer as how to fix this problem is to have a look at your web.xml and determine which xml config files it tries to load, then go and make sure all those xml config files in the web.xml actually exist.

This ought to be helpful enough. And I actually don't see if an NPE inside the Struts core logic has anything to do with Hibernate and therefore opening a topic over there is pointless. Struts has it's own mailinglist however, and there are enough struts-specific forums, for example those on Nabble.com.

BalusCa at 2007-7-12 10:12:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

hi..thanks for the reply... actually i am trying to load my site...which configured using struts-config.xml...

struts 1.1

hibernate 3.0 ...having configuration file to connect db, mapping files

tomcat 5.5

mysql 5.0

i will also try in hibernate forum now

--loguKK

loguKKa at 2007-7-12 10:12:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Have you actually read the Google link + the answers in the Google hits? Or are you expecting suited answers without doing some research effort yourself?
BalusCa at 2007-7-12 10:12:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Ok,.. i will read first..,
loguKKa at 2007-7-12 10:12:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...