org.hibernate.console.HibernateConsoleRuntimeException: Could not compute classpath
Description
Environment
Activity
Koen Aers May 13, 2016 at 10:43 AM
I am closing this issue with "Out of Date" resolution since there hasn't been any activity on it since January 23rd 2008. Please feel free to reopen it if you think we can still do something about this.
Chris January 23, 2008 at 7:41 PM
The project is pretty big, don't really want to attach the whole project. I create a smaller test project and was able to create a console configuration without a problem. So its definitely something weird with this particular project, here is the .classpath and .project file if that helps?
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="C:/Program Files/gwt-windows-1.4.60/gwt-user.jar"/>
<classpathentry kind="lib" path="C:/Program Files/Junit 4.4/junit-4.4.jar"/>
<classpathentry kind="lib" path="lib/velocity/velocity-1.5.jar" sourcepath="C:/temp/velocity-1.5/velocity-1.5/src/java"/>
<classpathentry kind="lib" path="lib/velocity/velocity-dep-1.5.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/commons-io-1.3.1.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/jodconverter-2.2.0.jar" sourcepath="C:/temp/jodconverter-2.2.0/jodconverter-2.2.0/src/jodconverter-2.2.0-sources.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/ridl-2.2.0.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/slf4j-api-1.4.0.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/slf4j-jdk14-1.4.0.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/unoil-2.2.0.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/xstream-1.2.2.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/juh-2.2.0.jar"/>
<classpathentry kind="lib" path="lib/jodconverter-2.2.0/lib/jurt-2.2.0.jar"/>
<classpathentry kind="lib" path="C:/Apache Software Foundation/Tomcat 6.0/lib/jcaptcha-all-1.0-RC6.jar" sourcepath="C:/temp/jcaptcha/src/service/src/java"/>
<classpathentry kind="lib" path="C:/Apache Software Foundation/Tomcat 6.0/lib/catalina.jar" sourcepath="C:/Users/cjh/Downloads/apache-tomcat-6.0.14-src.zip"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="GWT_HOME/gwt-servlet.jar"/>
<classpathentry kind="lib" path="C:/Program Files/gwt-windows-1.4.60/gwt-dev-windows.jar"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="lib" path="C:/Apache Software Foundation/Tomcat 6.0/bin/tomcat-juli.jar"/>
<classpathentry kind="lib" path="C:/Apache Software Foundation/Tomcat 6.0/lib/tomcat-coyote.jar" sourcepath="C:/Apache Software Foundation/Tomcat 6.0/apache-tomcat-6.0.14-src/java"/>
<classpathentry combineaccessrules="false" kind="src" path="/squatchauth"/>
<classpathentry kind="lib" path="C:/Apache Software Foundation/Tomcat 6.0/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="C:/Users/cjh/Packages/dbunit-2.2/dbunit-2.2.jar"/>
<classpathentry kind="lib" path="lib/testng-jdk15.jar"/>
<classpathentry kind="lib" path="C:/Apache Software Foundation/Tomcat 6.0/lib/mysql-connector-java-5.1.5-bin.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>squatch</name>
<comment>squatch project</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>in.cypal.studio.gwt.core.gwtBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.hibernate.eclipse.console.hibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sourceforge.metrics.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>in.cypal.studio.gwt.core.gwtNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.hibernate.eclipse.console.hibernateNature</nature>
<nature>net.sourceforge.metrics.nature</nature>
</natures>
</projectDescription>
Max Rydahl Andersen January 23, 2008 at 7:08 PM
could you attach a project with a .launch file in it that fails ?
Max Rydahl Andersen January 23, 2008 at 7:08 PM
really weird.
If the classes are in the classpath and the classpath is actually in the launch configuration dialog it should not fail...
Chris January 23, 2008 at 5:29 PM
Here is that stack trace, however, as I mentioned above after restarting I am no longer seeing this exception, just the classnotfoundexceptions:
org.hibernate.console.HibernateConsoleRuntimeException: Could not compute classpath
at org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:93)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:158)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:106)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:97)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.debug.core.DebugException: Launch configuration squatch at C:\Users\cjh\newworkspace\.metadata\.plugins\org.eclipse.debug.core\.launches\squatch.launch does not exist.
at org.eclipse.debug.internal.core.LaunchManager.createDebugException(LaunchManager.java:860)
at org.eclipse.debug.internal.core.LaunchManager.getInfo(LaunchManager.java:1305)
at org.eclipse.debug.internal.core.LaunchConfiguration.getInfo(LaunchConfiguration.java:394)
at org.eclipse.debug.internal.core.LaunchConfiguration.getAttribute(LaunchConfiguration.java:336)
at org.eclipse.jdt.launching.JavaRuntime.getClasspathProvider(JavaRuntime.java:794)
at org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedRuntimeClasspath(JavaRuntime.java:1167)
at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getClasspath(ClassLoaderHelper.java:146)
at org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:84)
... 7 more
Details
Details
Assignee
Reporter
Bug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
After I create a "Hibernate Console Configuration" using the wizard I get the following error in the eclipse error log.
eclipse.buildId=M20070921-1145
java.version=1.5.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Fri Jan 11 14:33:38 EST 2008
org.hibernate.console.HibernateConsoleRuntimeException: Could not compute classpath
Folowed by lots of org.hibernate.MappingException because it can't find classes detailed in the mapping files.
I checked the box to include the projects classpath.