You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Bill <ch...@gmail.com> on 2011/01/17 09:02:34 UTC
Camel in JBOSS is return IOException
Hi,guys
I create a poject , and running it in the tomcat is work well.
and I want deply it in the jboss server.
first : I download the JBossPackageScanClassResolver from google
code.(http://code.google.com/p/camel-extra/) .because there is no jar to
download.
second: add <dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-vfs</artifactId>
<version>2.1.3.GA</version>
<scope>provided</scope>
</dependency>
to my pom.xml .
third: add <bean id="jbossResolver"
class="org.apache.camel.jboss.JBossPackageScanClassResolver" />
then ,when I run it.
the jboss throw a IOException:
15:54:01,121 INFO [STDOUT] 15:54:01,120 WARN
[JBossPackageScanClassResolver] Could not read entries in url:
vfszip:/D:/SomeComponent/jboss/server/default/deploy/toxind_camel_in_jboss.war/WEB-INF/lib/camel-core-2.5.0.jar/org/apache/camel/component/bean/
java.io.IOException: No context factory for
vfszip:/D:/SomeComponent/jboss/server/default/deploy/toxind_camel_in_jboss.war/WEB-INF/lib/camel-core-2.5.0.jar/org/apache/camel/component/bean/
at org.jboss.virtual.VFS.getVFS(VFS.java:129)
at org.jboss.virtual.VFS.getRoot(VFS.java:144)
at
org.apache.camel.jboss.JBossPackageScanClassResolver.find(JBossPackageScanClassResolver.java:47)
at
org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:209)
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-in-JBOSS-is-return-IOException-tp3344029p3344029.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel in JBOSS is return IOException
Posted by niconic <ni...@gmail.com>.
Hi,
jboss-vfs in you pom with the scope provided should be enough.
Nicolas
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-in-JBOSS-is-return-IOException-tp3344029p3344345.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel in JBOSS is return IOException
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
try to add jbossall-client.jar. This JBoss jar provide the JNP contact
factory.
Regards
JB
On 01/17/2011 09:02 AM, Bill wrote:
>
> Hi,guys
> I create a poject , and running it in the tomcat is work well.
> and I want deply it in the jboss server.
>
> first : I download the JBossPackageScanClassResolver from google
> code.(http://code.google.com/p/camel-extra/) .because there is no jar to
> download.
> second: add<dependency>
> <groupId>org.jboss</groupId>
> <artifactId>jboss-vfs</artifactId>
> <version>2.1.3.GA</version>
> <scope>provided</scope>
> </dependency>
> to my pom.xml .
> third: add<bean id="jbossResolver"
> class="org.apache.camel.jboss.JBossPackageScanClassResolver" />
>
> then ,when I run it.
> the jboss throw a IOException:
>
> 15:54:01,121 INFO [STDOUT] 15:54:01,120 WARN
> [JBossPackageScanClassResolver] Could not read entries in url:
> vfszip:/D:/SomeComponent/jboss/server/default/deploy/toxind_camel_in_jboss.war/WEB-INF/lib/camel-core-2.5.0.jar/org/apache/camel/component/bean/
> java.io.IOException: No context factory for
> vfszip:/D:/SomeComponent/jboss/server/default/deploy/toxind_camel_in_jboss.war/WEB-INF/lib/camel-core-2.5.0.jar/org/apache/camel/component/bean/
> at org.jboss.virtual.VFS.getVFS(VFS.java:129)
> at org.jboss.virtual.VFS.getRoot(VFS.java:144)
> at
> org.apache.camel.jboss.JBossPackageScanClassResolver.find(JBossPackageScanClassResolver.java:47)
> at
> org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:209)
>