-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Setting up hibenate with Struts(weblogic,sun appserver)
PostPosted: Mon Sep 25, 2006 9:02 am 
Newbie

Joined: Mon Sep 25, 2006 8:54 am
Posts: 6
Hi,
I am new to hibernate. I like to use hibernate in my struts application with weblogic server. can any body help me how to do the set up.

I have set a sample application as a stand alone java. It is working fine. The same when i tried to put in in a jsp and deployed as a war file in sun appserver it is giving following error. please help.

javax.servlet.ServletException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:255)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

root cause

java.lang.ThreadDeath
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1279)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1239)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:145)
org.apache.log4j.Category.forcedLog(Category.java:379)
org.apache.log4j.Category.log(Category.java:844)
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:193)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:417)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:502)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:481)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:469)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:516)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)


regards,
Subhash


Last edited by subhash.bp on Mon Sep 25, 2006 9:56 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 9:14 am 
Senior
Senior

Joined: Tue Aug 23, 2005 8:52 am
Posts: 181
Have you tried setting this up? Are you getting any errors?
http://www.laliluna.de/struts-hibernate ... al-en.html
The above link should be a good start


Top
 Profile  
 
 Post subject: Re: Setting up hibenate with Struts(weblogic,sun appserver)
PostPosted: Tue Sep 26, 2006 9:50 am 
Newbie

Joined: Mon Sep 25, 2006 8:54 am
Posts: 6
subhash.bp wrote:
Hi,
I am new to hibernate. I like to use hibernate in my struts application with weblogic server. can any body help me how to do the set up.

I have set a sample application as a stand alone java. It is working fine. The same when i tried to put in in a jsp and deployed as a war file in sun appserver it is giving following error. please help.

javax.servlet.ServletException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:255)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

root cause

java.lang.ThreadDeath
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1279)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1239)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:145)
org.apache.log4j.Category.forcedLog(Category.java:379)
org.apache.log4j.Category.log(Category.java:844)
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:193)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:417)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:502)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:481)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:469)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:516)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)


regards,
Subhash


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.