[jboss-user] [JBoss Tools (users)] - Re: Cannot compute classpath in Hibernate console

asookazian do-not-reply at jboss.com
Mon Jul 27 14:24:30 EDT 2009


So here is what my project directory structure looks like:

C:\java\projects\ERS\exploded-archives\com\cox\ers\session

C:\java\projects\ERS\exploded-archives\ERS.war

When I added ERS.war to the Hibernate Console's classpath, I get the "could not compute classpath" error again.

Error
  | Mon Jul 27 11:19:33 PDT 2009
  | org.hibernate.console.HibernateConsoleRuntimeException: Could not compute classpath
  | 
  | org.hibernate.console.HibernateConsoleRuntimeException: Could not compute classpath
  | 	at org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:97)
  | 	at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:177)
  | 	at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:111)
  | 	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
  | 	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
  | 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: org.eclipse.core.runtime.CoreException: The archive: /ERS/exploded-archives/ERS.war which is referenced by the classpath, does not exist.
  | 	at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1327)
  | 	at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1313)
  | 	at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:901)
  | 	at org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:75)
  | 	at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1187)
  | 	at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getClasspath(ClassLoaderHelper.java:148)
  | 	at org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:88)
  | 	... 7 more
  | 
  | 

Must it be a packaged (not exploded) WAR?

Here is a screenshot of my edit config window (classpath tab):

http://i145.photobucket.com/albums/r234/rabiesjoy/java/Hibernateconsoleconfig.jpg

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246272#4246272

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246272



More information about the jboss-user mailing list