[rules-users] Uploading the fact model to the DRools BRMS

Akila Geethal akilageethal at gmail.com
Mon Jan 14 01:54:22 EST 2008


last error comes when i import as "import package1.Employee"

when i just put as "import com.package1." it gives the error as class not
found...

On Jan 14, 2008 12:20 PM, Akila Geethal <akilageethal at gmail.com> wrote:

> Details
> java.lang.reflect.InvocationTargetException 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 org.jboss.seam.util.Reflections.invoke(
> Reflections.java:21) at
> org.jboss.seam.intercept.RootInvocationContext.proceed(
> RootInvocationContext.java:31) at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(
> SeamInvocationContext.java:56) at
> org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(
> RollbackInterceptor.java:31) at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(
> SeamInvocationContext.java:68) at
> org.jboss.seam.core.BijectionInterceptor.aroundInvoke(
> BijectionInterceptor.java:46) at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(
> SeamInvocationContext.java:68) at
> org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(
> MethodContextInterceptor.java:42) at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(
> SeamInvocationContext.java:68) at
> org.jboss.seam.security.SecurityInterceptor.aroundInvoke(
> SecurityInterceptor.java:40) at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(
> SeamInvocationContext.java:68) at
> org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
> at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(
> JavaBeanInterceptor.java:155) at
> org.jboss.seam.intercept.JavaBeanInterceptor.invoke(
> JavaBeanInterceptor.java:91) at
> org.drools.brms.server.ServiceImplementation_$$_javassist_3.savePackage(ServiceImplementation_$$_javassist_3.java)
> 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
> org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(
> GWTToSeamAdapter.java:74) at
> org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.processCall(
> GWTRemoteServiceServlet.java:290) at
> org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.doPost(
> GWTRemoteServiceServlet.java:172) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173) at
> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42) at
> org.jboss.seam.servlet.ContextualHttpServletRequest.run(
> ContextualHttpServletRequest.java:46) at
> org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173) at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213) at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178) at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
> SecurityAssociationValve.java:175) at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(
> JaccContextValve.java:74) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105) at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11AprProcessor.process(
> Http11AprProcessor.java:811) at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process
> (Http11AprProtocol.java:632) at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
> at java.lang.Thread.run(Thread.java:595) Caused by:
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method) at
> java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
> org.drools.rule.MapBackedClassLoader.fastFindClass(
> MapBackedClassLoader.java:60) at
> org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:79)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
> org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:146)
> at org.drools.brms.server.rules.SuggestionCompletionLoader.loadClass(
> SuggestionCompletionLoader.java:342) at
> org.drools.brms.server.rules.SuggestionCompletionLoader.populateModelInfo(
> SuggestionCompletionLoader.java:276) at
> org.drools.brms.server.rules.SuggestionCompletionLoader.processPackageHeader
> (SuggestionCompletionLoader.java:178) at
> org.drools.brms.server.rules.SuggestionCompletionLoader.getSuggestionEngine
> (SuggestionCompletionLoader.java:130) at
> org.drools.brms.server.util.BRMSSuggestionCompletionLoader.getSuggestionEngine
> (BRMSSuggestionCompletionLoader.java:41) at
> org.drools.brms.server.ServiceImplementation.savePackage(
> ServiceImplementation.java:534) ... 47 more
>
>
> still getting this error.Is there somethiong wrong with jboss ?? I hav set
> java_home env variable .. Do i ned to jdo any more configuration,,O what
> should be the problem. ??? :(
> Do i hav to import the classes in JDK...no na?
> reflection error is always coming up.CAn this be something wrong with my
> jdk???
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Jan 14, 2008 11:33 AM, Rahul Upadhyay < email2upadhyay at gmail.com>
> wrote:
>
> > your package1.jar seems fine.
> > Delete the repository folder, derby.log , repository.xml form bin folder
> > of Jboss.
> >  Restart your Jboos.
> >
> > Run BRMS
> >  Create New Category form Admin
> > Then Create New package form packages in your Category
> > Then upload first your jar in this  Category
> > Check this in your package in model  it should be visible
> > then put your import statement
> > then validate
> >
> > Let Me know if you find problem again.
> > follw this link too.
> >
> > file:///home/rahul/Desktop/quick-start-tutorialmovie-for-brms.html
> >
> >
> > Cheers
> >
> > Rahul upadhyay
> >
> >
> > On Jan 14, 2008 11:04 AM, Akila Geethal < akilageethal at gmail.com> wrote:
> >
> > >  Details
> > > java.lang.reflect.InvocationTargetException 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
> > > org.jboss.seam.util.Reflections.invoke(Reflections.java:21) at
> > > org.jboss.seam.intercept.RootInvocationContext.proceed(
> > > RootInvocationContext.java:31) at
> > > org.jboss.seam.intercept.SeamInvocationContext.proceed(
> > > SeamInvocationContext.java:56) at
> > > org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(
> > > RollbackInterceptor.java:31) at
> > > org.jboss.seam.intercept.SeamInvocationContext.proceed(
> > > SeamInvocationContext.java:68) at
> > > org.jboss.seam.core.BijectionInterceptor.aroundInvoke(
> > > BijectionInterceptor.java:46) at
> > > org.jboss.seam.intercept.SeamInvocationContext.proceed(
> > > SeamInvocationContext.java:68) at
> > > org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(
> > > MethodContextInterceptor.java:42) at
> > > org.jboss.seam.intercept.SeamInvocationContext.proceed(
> > > SeamInvocationContext.java:68) at
> > > org.jboss.seam.security.SecurityInterceptor.aroundInvoke(
> > > SecurityInterceptor.java:40) at
> > > org.jboss.seam.intercept.SeamInvocationContext.proceed(
> > > SeamInvocationContext.java:68) at
> > > org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
> > > at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(
> > > JavaBeanInterceptor.java:155) at
> > > org.jboss.seam.intercept.JavaBeanInterceptor.invoke(
> > > JavaBeanInterceptor.java:91) at
> > > org.drools.brms.server.ServiceImplementation_$$_javassist_3.savePackage(ServiceImplementation_$$_javassist_3.java)
> > > 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
> > > org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(
> > > GWTToSeamAdapter.java:74) at
> > > org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.processCall(
> > > GWTRemoteServiceServlet.java:290) at
> > > org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.doPost(
> > > GWTRemoteServiceServlet.java:172) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:252) at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:173) at
> > > org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42) at
> > > org.jboss.seam.servlet.ContextualHttpServletRequest.run(
> > > ContextualHttpServletRequest.java:46) at
> > > org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37) at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:202) at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:173) at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(
> > > StandardWrapperValve.java:213) at
> > > org.apache.catalina.core.StandardContextValve.invoke(
> > > StandardContextValve.java:178) at
> > > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
> > > SecurityAssociationValve.java:175) at
> > > org.jboss.web.tomcat.security.JaccContextValve.invoke(
> > > JaccContextValve.java:74) at
> > > org.apache.catalina.core.StandardHostValve.invoke(
> > > StandardHostValve.java:126) at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(
> > > ErrorReportValve.java:105) at
> > > org.apache.catalina.core.StandardEngineValve.invoke(
> > > StandardEngineValve.java:107) at
> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > > at org.apache.coyote.http11.Http11AprProcessor.process(
> > > Http11AprProcessor.java:811) at
> > > org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process
> > > (Http11AprProtocol.java:632) at
> > > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
> > > at java.lang.Thread.run(Thread.java:595) Caused by:
> > > java.lang.UnsupportedClassVersionError: Bad version number in .class
> > > file at java.lang.ClassLoader.defineClass1(Native Method) at
> > > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
> > > org.drools.rule.MapBackedClassLoader.fastFindClass(
> > > MapBackedClassLoader.java:60) at
> > > org.drools.rule.MapBackedClassLoader.loadClass(
> > > MapBackedClassLoader.java:79) at java.lang.ClassLoader.loadClass(
> > > ClassLoader.java:251) at org.drools.base.ClassTypeResolver.resolveType
> > > (ClassTypeResolver.java:146) at
> > > org.drools.brms.server.rules.SuggestionCompletionLoader.loadClass(
> > > SuggestionCompletionLoader.java:342) at
> > > org.drools.brms.server.rules.SuggestionCompletionLoader.populateModelInfo
> > > (SuggestionCompletionLoader.java:276) at
> > > org.drools.brms.server.rules.SuggestionCompletionLoader.processPackageHeader
> > > (SuggestionCompletionLoader.java:178) at
> > > org.drools.brms.server.rules.SuggestionCompletionLoader.getSuggestionEngine
> > > (SuggestionCompletionLoader.java:130) at
> > > org.drools.brms.server.util.BRMSSuggestionCompletionLoader.getSuggestionEngine
> > > (BRMSSuggestionCompletionLoader.java:41) at
> > > org.drools.brms.server.ServiceImplementation.savePackage(
> > > ServiceImplementation.java:534) ... 47 more
> > >
> > >
> > > im importing as import package1.Employee
> > >
> > >
> > > I hav attached the jar which i uploaded.. Thank you very much if u can
> > > look in to my matter.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 1/14/08, Rahul Upadhyay <email2upadhyay at gmail.com> wrote:
> > > >
> > > > send whole stacj trace, I think you miss some class in your jar that
> > > > extend your class. Include that class also.
> > > >
> > > > On Jan 14, 2008 10:37 AM, Akila Geethal < akilageethal at gmail.com>
> > > > wrote:
> > > >
> > > > > java.lang.reflect.InvocationTar getException at
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > > NativeMethodAccessorImpl.java:39) at
> > > > >
> > > > >
> > > > >
> > > > > what can be the reason for thsi error? am i missing some thing in
> > > > > the jboss server or what can be the error?? I get thsi when i try to import
> > > > > the classes(facts ) from the uploaded jar??And also where does the jar get
> > > > > saved when it is uploaded??
> > > > >
> > > > >
> > > > > On 1/11/08, Rahul Upadhyay < email2upadhyay at gmail.com > wrote:
> > > > > >
> > > > > > See, BRMS needs only packaging + class file because you are
> > > > > > importing  that one only. Second why do you create jar of whole project. In
> > > > > > project, There will be project name  folder, there will be bin folder.. your
> > > > > > import statement does not include those. so if you put whole project
> > > > > > hierarchy , how will you get the path.. result class not found.. just
> > > > > > include package folders + class you want .
> > > > > >
> > > > > > All the Best
> > > > > >  Rahul Upadhyay
> > > > > >
> > > > > >
> > > > > > On Jan 11, 2008 3:35 PM, Akila Geethal < akilageethal at gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > I built the jar for the whole project with eclipse.Should it
> > > > > > > be built for the package only??
> > > > > > >
> > > > > > >
> > > > > > > On Jan 11, 2008 3:10 PM, Rahul Upadhyay <email2upadhyay at gmail.com >
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Don't make jar from class only. use proper package also. i
> > > > > > > > mean suppose you want to import  a.b.c.class then your jar
> > > > > > > > will keep  c.class file in folder b and folder b in a
> > > > > > > > folder.
> > > > > > > > it works easly.. not big deal.. try
> > > > > > > >
> > > > > > > > cheers
> > > > > > > > Rahul upadhyay
> > > > > > > >
> > > > > > > >
> > > > > > > > On Jan 11, 2008 2:59 PM, Anstis, Michael (M.) <manstis1 at ford.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > >  Have you tried this walk through?
> > > > > > > > >
> > > > > > > > > http://macjavadev.blogspot.com/2007/11/quickstart-drools-403-web-admin-brms.html
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >  ------------------------------
> > > > > > > > > *From:* rules-users-bounces at lists.jboss.org [mailto:
> > > > > > > > > rules-users-bounces at lists.jboss.org] *On Behalf Of *Akila
> > > > > > > > > Geethal
> > > > > > > > > *Sent:* 11 January 2008 07:24
> > > > > > > > > *To:* Rules Users List
> > > > > > > > > *Subject:* Re: [rules-users] Uploading the fact model to
> > > > > > > > > the DRools BRMS
> > > > > > > > >
> > > > > > > > > what are the configurations should be made to import the
> > > > > > > > > classes in the jar. When trying ti import the classs in the package
> > > > > > > > > configuration section im getting the class not found error when i try to
> > > > > > > > > validate the imports. What are the files should be
> > > > > > > > > modified.Iam new to drools.
> > > > > > > > >
> > > > > > > > > On Jan 10, 2008 9:30 PM, Anstis, Michael (M.) <
> > > > > > > > > manstis1 at ford.com> wrote:
> > > > > > > > >
> > > > > > > > > >  I have a vague recollection that there is another file
> > > > > > > > > > in which you need to list your fully qualified class names before they can
> > > > > > > > > > be referenced by the BRMS.
> > > > > > > > > >
> > > > > > > > > > I think Kris (or Edson) has provided a posting to the
> > > > > > > > > > group before about this.
> > > > > > > > > >
> > > > > > > > > > Flame me if I am wrong.
> > > > > > > > > >
> > > > > > > > > >  ------------------------------
> > > > > > > > > > *From:* rules-users-bounces at lists.jboss.org [mailto:
> > > > > > > > > > rules-users-bounces at lists.jboss.org] *On Behalf Of *Mark
> > > > > > > > > > Proctor
> > > > > > > > > > *Sent:* 10 January 2008 15:54
> > > > > > > > > > *To:* Rules Users List
> > > > > > > > > > *Subject:* Re: [rules-users] Uploading the fact model to
> > > > > > > > > > the DRools BRMS
> > > > > > > > > >
> > > > > > > > > >   Akila Geethal wrote:
> > > > > > > > > >
> > > > > > > > > > When I upload a jar file to the DRools BRMS it does not
> > > > > > > > > > get uploaded. When i try to get the clsses by the import statements it says
> > > > > > > > > > the class cannot be found. Are there any special way of making the
> > > > > > > > > > jar?Should that fact modelapplication include special libraries or etc....
> > > > > > > > > >
> > > > > > > > > > No it' just a standard jar, with standard pojos.
> > > > > > > > > >
> > > > > > > > > > ------------------------------
> > > > > > > > > >
> > > > > > > > > > _______________________________________________
> > > > > > > > > > rules-users mailing list
> > > > > > > > > > rules-users at lists.jboss.org
> > > > > > > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > _______________________________________________
> > > > > > > > > > rules-users mailing list
> > > > > > > > > > rules-users at lists.jboss.org
> > > > > > > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > _______________________________________________
> > > > > > > > > rules-users mailing list
> > > > > > > > > rules-users at lists.jboss.org
> > > > > > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > rules-users mailing list
> > > > > > > > rules-users at lists.jboss.org
> > > > > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > rules-users mailing list
> > > > > > > rules-users at lists.jboss.org
> > > > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > rules-users mailing list
> > > > > > rules-users at lists.jboss.org
> > > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > rules-users mailing list
> > > > > rules-users at lists.jboss.org
> > > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > rules-users mailing list
> > > > rules-users at lists.jboss.org
> > > > https://lists.jboss.org/mailman/listinfo/rules-users
> > > >
> > > >
> > >
> > > _______________________________________________
> > > rules-users mailing list
> > > rules-users at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/rules-users
> > >
> > >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080114/3b456167/attachment.html 


More information about the rules-users mailing list