-->
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.  [ 1 post ] 
Author Message
 Post subject: HibernateException not found - Probleme mit Ant-Target
PostPosted: Tue Feb 28, 2012 6:04 am 
Newbie

Joined: Mon Feb 13, 2012 4:59 am
Posts: 8
Hallo,

ich möchte gerne zu meinem Projekt ein Antfile schreiben, bzw habe ich dies auch getan, jedoch kann die HibernateException nicht gefunden werden.

Der Error ist folgender:
Code:
java.lang.ClassNotFoundException: org.hibernate.HibernateException
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
   at java.lang.Class.getConstructor0(Class.java:2714)
   at java.lang.Class.newInstance0(Class.java:343)
   at java.lang.Class.newInstance(Class.java:325)
   at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:836)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)


Ich definiere den classpath im build.xml folgendermaßen:
Code:

   <!-- classpath definieren -->
   <path id="classpath">
      <pathelement location="${src.dir}" />
      <pathelement location="${classes.dir}"/>
      <fileset dir="${src.dir}">
         <include name="**/*.xml"/>
      </fileset>
      <fileset dir="${lib.dir}">
         <include name="**/*.jar" />
      </fileset>
      <fileset dir="${tomcat.dir}/lib">
          <include name="servlet-api.jar"/>
      </fileset>
      <fileset dir="${gwt.dir}/gwt-2.4.0">
         <include name="*.jar" />
      </fileset>
   </path>


lib.dir ist der Pfad ins WEB-INF/lib-Verzeichnis.
Dort liegen folgdene jar-Files:
antlr-2.7.6.jar
commons-collections-3.1.jar
dom4j-1.6.1.jar
gwt-maps-javadoc.jar
gwt-maps-noredist.jar
gwt-maps.jar
gwt-sdk-plugin.jar
gwt-servlet.jar
hibernate3.jar
hsqldb.jar
javassist-3.4.GA.jar
jsr107cache-1.1.jar
jta-1.1.jar
mysql-connector-java-5.1.18.jar
slf4j-api-1.5.2.jar
alf4j-simple-1.5.2.jar

Also sollte doch die Klasse auffindbar sein?


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

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.