jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nopalin <ivan.pera...@gmail.com>
Subject Problems deploying on jboss
Date Mon, 18 Dec 2006 23:02:42 GMT

hi.

I am really really noob with jackrabbit and i am having some problems with
it under jboss.

i use jboss 4.0.3SP,  i followed jboss howto from 
http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss JackrabbitOnJBoss  and i
cant get jackrabbit working. First i tried with jackrabbit-jca-1.1.1.rar,
this is my ds file:

<?xml version="1.0" encoding="UTF-8"?>

<connection-factories>
    <tx-connection-factory>
        <jndi-name>jcrDS</jndi-name>
        <adapter-display-name>JCR Adapter</adapter-display-name>
        <rar-name>jackrabbit-jca-1.1.1.rar</rar-name>
        <connection-definition>javax.jcr.Repository</connection-definition>
        <xa-transaction/>

        <!-- Configuration properties. -->
        <config-property name="homeDir"
type="java.lang.String">/home/coop/jackrabbit/data</config-property>
        <!--<config-property name="configFile"
type="java.lang.String">/home/coop/jackrabbit/repository.xml</config-property>-->
        <config-property name="bindSessionToTrasaction"
type="java.lang.Boolean">true</config-property>
    </tx-connection-factory>
</connection-factories>

but it throws me an exception:
2006-12-18 21:20:18,497 WARN  [org.jboss.system.ServiceController] Problem
starting service
jboss.jca:service=RARDeployment,name='jackrabbit-jca-1.1.1.rar'
java.lang.ClassNotFoundException: No ClassLoaders found for:
org.apache.jackrabbit.jca.JCAResourceAdapter
        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
        at
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
        at
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

i found that JCAResourceAdapter is in package org.apache.jackrabbit.jca, but
those classes are not in the jars inside jackrabbit-jca-1.1.1.rar.

Well i tried to compile from the sources, i checked jackrabbit out the
lastest version and i did  mvn install, all went good, only 1 test problem :

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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:597)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
        at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more


however i tried to generate the rar file wit mvn rar:rar and i got the
following error:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.jackrabbit:jackrabbit-core:jar:1.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.jackrabbit
-DartifactId=jackrabbit-core \
          -Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.jackrabbit:jackrabbit-jca:rar:1.2-SNAPSHOT
        2) org.apache.jackrabbit:jackrabbit-core:jar:1.2-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.apache.jackrabbit:jackrabbit-jca:rar:1.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

I have been searching on the net for about 6 hours about the problem but i
cant find any answer.


Please i need your help. I know i am noob, but believe me, i already have
tried with all the things i could remember or i saw on net.
-- 
View this message in context: http://www.nabble.com/Problems-deploying-on-jboss-tf2842959.html#a7938397
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message