deploy « Jar « JPA Q&A





1. Can I deploy JPA jars per application ?    coderanch.com

I prefer to do it that way. Imagine you had 10 applications using JPA 1.0, and they all referenced the same set of JARs. Then, imagine you wanted to update one application. If your rule is that all apps point to the same JARs, you'd have to update all 10 apps at the same time. How much sense does that make? ...

2. hibernate3.jar, liferay and .har services deployment?    liferay.com

Guys, I am trying to migrate our ejb3 application to Liferay installation from standard JBoss. Unfortunately, I've found out that our .har archives and ejb3-jpa applications does not start with the following exception thrown: java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) When I started investigating I have found ...

3. Deploying Hibernate in an EJB JAR...reading the config file    forum.hibernate.org

I am getting the common cannot find /hibernate.cfg.xml when creating the session. I've read all the posts on this topic and tried putting the file in the root of the EAR and adding a Manifest entry to add Class-Path of "."....to no avail. I've also tried to Explicitly load the XML document via: Configuration cfg = new Configuration(); DocumentBuilderFactory factory = ...

4. Deploying Hibernate in EJB.jar to WLS 8.1    forum.hibernate.org

I attempting to migrate a JBoss mbean Hibernate deployment to WLS 8.1. I have a utility class called ServiceLocator which has the following code: SessionFactory sf = new Configuration().configure().buildSessionFactory(); I have tried to put the hibernate.cfg.xml file in the root of both the projEJB.jar and the proj.ear, with the MANIFEST containing a Class-Path: . It does not load the hibernate mappings? ...

5. deploy hibernate and what jars can I omit...    forum.hibernate.org

Looking at the hibernate lib directory there are alot of non-runtime jar files (ant.jar for example). Is there any guidance as to what jars are needed at runtime? Specifically I am using plain hibernate (no c3p0, no jboss caching, no jta) and looking to slim things down as the client is a jnlp client and we want to keep it as ...

6. Problem finding "hibernate3.jar" when deploying .h    forum.hibernate.org

Hei I get the following error when trying to deploy a .har file to JBoss4.0.1sp1. (The .harfile is included together with a .war file in an .ear) 13:04:53,125 WARN [ServiceController] Problem starting service jboss.har:service=Hibernate java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:564) at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) ...

7. Shrinking number of jar files used on Hibernate deployment    forum.hibernate.org

I'm sure that if you really, really wanted to, you could extract all the jars and re-jar the classes into a single, monolithic Jar file, but I'm trying to figure out exactly why you would want to. The point of having all the dependencies in separate jar files is so that, should anything change, you don't have to completely redeploy/rerelease your ...