Hi,
I'm a newbie to WebLogic and Spring and am running into errors that I hope are just simple configuration changes that I'm overlooking. I'm trying to deploy the LightAdmin Sandbox war to WebLogic. The files build successfully (mvn clean install), but when I try to deploy, I get the following stacktrace:
weblogic.management.jmx.RemoteRuntimeException:
java.rmi.UnmarshalException: failed to unmarshal class java.lang.Object; nested
exception is:
java.lang.ClassNotFoundException: Failed to load class org.hibernate.HibernateException
at
weblogic.management.jmx.MBeanServerInvocationHandler.checkThrowsIOException(MBeanServerInvocationHandler.java:571)
at
weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:386)
at
com.sun.proxy.$Proxy8.getTargets(Unknown Source)
at
weblogic.deploy.api.tools.deployer.Operation.showRawTaskInfo(Operation.java:116)
at
weblogic.deploy.api.tools.deployer.Operation.showTaskInformation(Operation.java:144)
at
weblogic.deploy.api.tools.deployer.Jsr88Operation.showTaskInformation(Jsr88Operation.java:630)
at
weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:543)
at
weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
at
weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at
weblogic.utils.compiler.Tool.run(Tool.java:158)
at
weblogic.utils.compiler.Tool.run(Tool.java:115)
at
weblogic.Deployer.run(Deployer.java:74)
at
weblogic.Deployer.main(Deployer.java:55)
...
I am running WebLogic Server 12c (12.1.3), and I cloned the master branch of LightAdmin (version 1.2.0.BUILD-SNAPSHOT).
The demo runs fine on tomcat (with mvn tomcat7:run). I've tried deploying it to WebLogic both with and without a weblogic.xml in the WEB-INF directory of lightadmin-sandbox, and I get the same errors either way. My guess was that there is some sort of incompatibility between the version of hibernate that is used by WebLogic vs. LightAdmin. LightAdmin uses hibernate-jpa-2.1-api-1.0.0, and it looks like WebLogic by default supports JPA 2.0. I tried deploying with <container-descriptor><prefer-web-inf-classes>true</prefer-web-inf-classes></container-descriptor> in weblogic.xml to use LightAdmin's hibernate jars, but there was no change in the error messages.
Any ideas as to what I may be missing? Can this error be replicated by anyone?
Another important question: Why does LightAdmin need port 1199? I see that it relates to Selenium, but could you please explain that design implementation?
Thank you.