Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Max Rydahl Andersen, 1 year ago
java.lang.ClassCastException: java.lang.String
via Hibernate JIRA by Max Rydahl Andersen, 1 year ago
java.lang.ClassCastException: java.lang.String
via Hibernate JIRA by Levi Purvis, 1 year ago
via sourceforge.net by Unknown author, 1 year ago
java.lang.ClassCastException: $Proxy0
via Hibernate JIRA by Levi Purvis, 1 year ago
via sourceforge.net by Unknown author, 2 years ago
java.lang.ClassCastException: $Proxy0
java.lang.ClassCastException: java.lang.String	at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:101)	at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:150)	at org.hibernate.tool.ant.EJB3ConfigurationTask.createConfiguration(EJB3ConfigurationTask.java:23)	at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:54)	at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:216)	at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:45)	at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:151)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)	at org.apache.tools.ant.Task.perform(Task.java:364)	at org.apache.tools.ant.Target.execute(Target.java:341)	at org.apache.tools.ant.Target.performTasks(Target.java:369)	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)	at org.hibernate.tool.ant.BuildFileTestCase.executeTarget(BuildFileTestCase.java:241)	at org.hibernate.tool.ant.HibernateToolTest.testEJB3ConfigurationFailureExpected(HibernateToolTest.java:65)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at junit.framework.TestCase.runTest(TestCase.java:154)	at junit.framework.TestCase.runBare(TestCase.java:127)	at junit.framework.TestResult$1.protect(TestResult.java:106)	at junit.framework.TestResult.runProtected(TestResult.java:124)	at junit.framework.TestResult.run(TestResult.java:109)	at junit.framework.TestCase.run(TestCase.java:118)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)