[jboss-jira] [JBoss JIRA] (JBRULES-3520) CamelServerApp.class missing, camel-client.xml wrong for Drools and jBPM integration camel server war on Tomcat

Damon Horrell (JIRA) issues at jboss.org
Wed Feb 5 22:58:29 EST 2014


    [ https://issues.jboss.org/browse/JBRULES-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12941703#comment-12941703 ] 

Damon Horrell commented on JBRULES-3520:
----------------------------------------

This is still not working out of the box in 5.6.0.Final.

The steps to make it work are:

1. Download drools-camel-server-example-5.6.0.Final.war
2. Download CamelServerApp.java from http://grepcode.com/file/repo1.maven.org/maven2/org.drools/drools-camel-server/5.4.0.CR1/org/drools/server/CamelServerApp.java
3. Compile this and add CamelServerApp.class to war at path WEB-INF\classes\org\drools\server
4. Add camel-client.xml (below) to the war at path WEB-INF\classes
5. Deploy to Tomcat and browse to http://localhost:8080/drools-camel-server-example-5.6.0.Final/test.jsp

camel-client.xml:
---------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf"
	xmlns:jaxrs="http://cxf.apache.org/jaxrs"
	xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
    ">
	<bean id="droolsPolicy" class="org.drools.camel.component.DroolsPolicy" />
	<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
		<route>
			<from uri="direct://kservice/rest" />
			<policy ref="droolsPolicy">
				<to uri="cxfrs://http://localhost:8080/drools-camel-server-example-5.6.0.Final/kservice/rest" />
			</policy>
		</route>
	</camelContext>
</beans>

                
> CamelServerApp.class missing, camel-client.xml wrong for Drools and jBPM integration camel server war on Tomcat
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3520
>                 URL: https://issues.jboss.org/browse/JBRULES-3520
>             Project: JBRULES
>          Issue Type: Release
>      Security Level: Public(Everyone can see) 
>          Components: drools-camel
>    Affects Versions: 5.4.0.CR1, 5.4.0.Final
>         Environment: Tomcat 6.x
>            Reporter: Ryley Gahagan
>            Assignee: Geoffrey De Smet
>            Priority: Minor
>             Fix For: 5.4.0.CR1, 5.4.0.Final
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> The CamelServerApp.class file is missing from the war. Also, the camel-client.xml has, as default:
> <to uri="cxfrs://http://localhost:8080/drools-server/kservice/rest"/>
> <to uri="cxfrs://http://localhost:8080/drools-server/kservice/soap"/>
> Which Tomcat deploys out of the box as
> <to uri="cxfrs://http://localhost:8080/drools-camel-server-5.4.0.Final/kservice/rest"/>
> <to uri="cxfrs://http://localhost:8080/drools-camel-server-5.4.0.Final/kservice/soap"/>
> (...5.4.0.CR1 for that dist)
> Has existed for awhile, apparently. Documentation indicates test.jsp working out of the box.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list