if you are able to create your packages, then you do not need the guvnor, since guvnor merely automates it for you.<br>create a xxx.properties file in your classes folder ( where xxx is the package name )<br><br>This is documented in the guvnor documentation --> search for drools-server<br>
or look at the properties file attached in the JIRA provided.<br><br>then, you are all set when you make a web service call to the URL as shown in the rb file i had attached.<br><br clear="all">Regards,<br>Prem<br>
<br><br><div class="gmail_quote">On Tue, Jun 23, 2009 at 5:15 AM, tanzu <span dir="ltr"><<a href="mailto:tanu421@rediffmail.com">tanu421@rediffmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Michael<br>
<br>
<br>
I added the el-api 1.2 to tomcat 5.5.7/common/lib ,and then the<br>
drools-server started working.But then my web-client ,built on struts and<br>
using jsp not jsf ,started giving the same el-api error.<br>
<br>
I am also working with tomcat 6.0.3 .I had added the jsf jars from jboss<br>
,but drools server and later my web - client application started to work<br>
,but guvnor gave el-api version error.Because tomcat 6.0.3 had el-api and<br>
guvnor contained el-api 1.2 .So at last i removed the el-api 1.2 from<br>
guvnor ,and replaced it in tomcat lib with el-api.<br>
<br>
Bingo now all 3 guvnor ,drools-server ,and my web-client application are<br>
deployed in tomcat 6 and working fine.<br>
<br>
Still in need of a document describing ,the complete working of the rest api<br>
along with the web client to call drools server.<br>
<br>
Thanks<br>
<br>
Tanzu<br>
<div><div></div><div class="h5"><br>
Anstis, Michael (M.) wrote:<br>
><br>
> Did you replace the EL jar with that available from JBOSS?<br>
><br>
> You will still need an EL jar somewhere if you are using JSF.<br>
><br>
> Do you have Java security enabled in your Tomcat instance? I've<br>
> previously had to put the EL jar in Tomcat's lib folder to fix other<br>
> issues relating to the use of JSF and EL on Tomcat (not when trying to<br>
> use Drools on Tomcat, but other standalone applications).<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of tanzu<br>
> Sent: 22 June 2009 12:28<br>
> To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> Subject: [rules-users] Link for drools-server module<br>
><br>
><br>
> Hi<br>
><br>
> Can anyone please provide me with the following<br>
><br>
> Tutorials about the detailed working and usage of the drools execution<br>
> server.<br>
><br>
> I have exported the drools-server in the drools 5 download, as a war and<br>
> deployed on the application server to be used in conjuction with<br>
> guvnor.But<br>
> I am getting the following errrors.<br>
><br>
><br>
> java.lang.IllegalStateException: Attempted to invoke a Seam component<br>
> outside an initialized application<br>
> at<br>
> org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)<br>
> at<br>
> org.jboss.seam.contexts.Lifecycle.mockApplication(Lifecycle.java:111)<br>
> at org.jboss.seam.Seam.componentForName(Seam.java:298)<br>
> at<br>
> org.jboss.seam.intercept.RootInterceptor.getComponent(RootInterceptor.ja<br>
> va:224)<br>
> at<br>
> org.jboss.seam.intercept.JavaBeanInterceptor.callPostActivate(JavaBeanIn<br>
> terceptor.java:151)<br>
> at<br>
> org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.<br>
> java:72)<br>
> at<br>
> org.drools.guvnor.server.security.RoleBasedPermissionManager_$$_javassis<br>
> t_0.sessionDidActivate(RoleBasedPermissionManager_$$_javassist_0.java)<br>
> at<br>
> org.apache.catalina.session.StandardSession.activate(StandardSession.jav<br>
> a:804)<br>
> at<br>
> org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:<br>
> 397)<br>
> at<br>
> org.apache.catalina.session.StandardManager.load(StandardManager.java:32<br>
> 1)......................<br>
><br>
> and<br>
><br>
> java.lang.NoClassDefFoundError: javax/el/ExpressionFactory<br>
> at java.lang.Class.getDeclaredConstructors0(Native Method)<br>
> at java.lang.Class.privateGetDeclaredConstructors(Unknown<br>
> Source)<br>
> at java.lang.Class.getConstructor0(Unknown Source)<br>
> at java.lang.Class.newInstance0(Unknown Source)<br>
> at java.lang.Class.newInstance(Unknown Source)<br>
> at<br>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j<br>
> ava:3713)<br>
> at<br>
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4216<br>
> )<br>
> at<br>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja<br>
> va:760)<br>
> at<br>
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)<br>
> at<br>
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)<br>
> at<br>
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)<br>
> at<br>
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)..<br>
> .........<br>
><br>
><br>
> I am working on tomcat 5.5.7 and eclipse 3.4. I have guvnor 5.0<br>
> runnning<br>
> with this configuration.I have already copied the jsf jars in tomcat lib<br>
> folder.As it is tomcat 5.5.7 and not 6.x , I havent removed el-api jar<br>
> from<br>
> drools-guvnor.war for depolyment.<br>
><br>
> Please help I need the drools-server up and working.<br>
><br>
><br>
><br>
> Thanks<br>
> tanzu<br>
> --<br>
> View this message in context:<br>
> <a href="http://www.nabble.com/Link-for-drools-server-module-tp24142668p24142668" target="_blank">http://www.nabble.com/Link-for-drools-server-module-tp24142668p24142668</a>.<br>
> html<br>
> Sent from the drools - user mailing list archive at Nabble.com.<br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/Link-for-drools-server-module-tp24142668p24162551.html" target="_blank">http://www.nabble.com/Link-for-drools-server-module-tp24142668p24162551.html</a><br>
<div><div></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>