-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate with JBoss Error
PostPosted: Sat Feb 12, 2005 9:15 am 
Newbie

Joined: Tue Feb 08, 2005 12:04 pm
Posts: 11
Location: London
My code is executing on standalone Tomcat but its giving me a strange exception on jboss.

Configuration cfg = new Configuration();

SessionFactory factory = cfg.configure().buildSessionFactory();
Session sessions = factory.openSession();

Transaction t = sessions.beginTransaction();

sessions.save(c);
sessions.save(p);
t.commit();
sessions.close();

///////////////////////////// STACK TRACE ///////////////////////////


org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


root cause

java.lang.NullPointerException
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:153)
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)
org.apache.tools.ant.AntTypeDefinition.getTypeClass(AntTypeDefinition.java:161)
org.apache.tools.ant.AntTypeDefinition.getExposedClass(AntTypeDefinition.java:135)
org.apache.tools.ant.ComponentHelper$AntTypeTable.getExposedClass(ComponentHelper.java:837)
org.apache.tools.ant.ComponentHelper.getDataTypeDefinitions(ComponentHelper.java:365)
org.apache.tools.ant.Project.getDataTypeDefinitions(Project.java:942)
org.apache.tools.ant.types.AbstractFileSet.getDataTypeName(AbstractFileSet.java:309)
org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:374)
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:350)
org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:186)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:752)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

_________________
Regards,

Ahsan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 15, 2005 5:55 am 
Newbie

Joined: Tue Feb 08, 2005 12:04 pm
Posts: 11
Location: London
Please someone reply about this problem.

_________________
Regards,

Ahsan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.