I get it for any jar where the WB doesn't seen the pom and I have to enter the
artifact information manually.
Running on tomcat.
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Michael Anstis
Sent: Thursday, March 13, 2014 2:36 PM
To: Rules Users List
Subject: Re: [rules-users] Pojo with spring dependency in DWB
Nice ;-)
Do you get that error when uploading any JAR to the maven repository? What application
server is this?
Sent on the move
On 13 Mar 2014 20:27, "Joe White"
<Joe.White@recondotech.com<mailto:Joe.White@recondotech.com>> wrote:
For reference the uber jar approach also didn't work for this one. I created a jar
with dependencies and added that and it still doesn't find the entity manager class.
When adding spring-orm to the DWB manually (where the EntityManager lives) I get the
error below:
I'll keep after it to see if I can find an approach that works.
org.guvnor.common.services.shared.exceptions.GenericPortableException: mark/reset not
supported
org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:24)
org.guvnor.m2repo.backend.server.FileServlet.uploadFile(FileServlet.java:180)
org.guvnor.m2repo.backend.server.FileServlet.processUpload(FileServlet.java:84)
org.guvnor.m2repo.backend.server.FileServlet.doPost(FileServlet.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)
org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
On Behalf Of Michael Anstis
Sent: Thursday, March 13, 2014 1:51 PM
To: Rules Users List
Subject: Re: [rules-users] Pojo with spring dependency in DWB
That's something I'm working on right now.
Some where in the dependency chain for @Component is EntityManager that is not included in
your project's dependencies (I guess scope "provided" but it can occur for
other reasons).
The best we're going to be able to achieve is handle the exception better in the
workbench code. We can't do much about dependency chains.
Sent on the move
On 13 Mar 2014 19:42, "Joe White"
<Joe.White@recondotech.com<mailto:Joe.White@recondotech.com>> wrote:
Here is a better more complete stack trace:
Exception in thread "pool-9-thread-8" java.lang.NoClassDefFoundError:
javax/pers
istence/EntityManager
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
at
org.drools.core.common.ProjectClassLoader.internalLoadClass(ProjectClassLoader.java:99)
at
org.drools.core.common.ProjectClassLoader.loadClass(ProjectClassLoader.java:82)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at org.kie.scanner.KieModuleMetaDataImpl.getClass(KieModuleMetaDataImpl.java:91)
at org.guvnor.common.services.builder.Builder.build(Builder.java:162)
at
org.guvnor.common.services.builder.BuildServiceImpl.doBuild(BuildServiceImpl.java:122)
at
org.guvnor.common.services.builder.BuildServiceImpl.build(BuildServiceImpl.java:77)
at
org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java)
at
org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$3.run(ResourceChangeIncrementalBuilder.java:214)
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
On Behalf Of Joe White
Sent: Thursday, March 13, 2014 1:24 PM
To: Rules Users List
Subject: [rules-users] Pojo with spring dependency in DWB
What is the best way to import a jar that has a spring dependency into the Drools
Workbench? When I upload my pojos that I intend use in my rules I get the exception below.
Do I also need to load the spring jars for this to work or is it not possible?
Specifically I need my rules objects to have the @Component annotation so that they can be
autowired.
Exception in thread "pool-9-thread-1" java.lang.NoClassDefFoundError:
javax/peristence/EntityManager
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
at
org.drools.core.common.ProjectClassLoader.internalLoadClass(ProjectCassLoader.java:99)
at org.drools.core.common.ProjectClassLoader.loadClass(ProjectClassLoadr.java:82)
Joe
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users