Hi there,
I wrote a service that has some dependencies on
another jar file. In order to address the dependency
issue, I added the reference to the jar file in my
classloader:
<classloader>
<classpath>
<repository>
<resource
id="avalon-framework:avalon-framework-api"
version="4.1.5"/>
<resource
id="avalon-framework:avalon-framework-impl"
version="4.1.5"/>
<resource id="ojb:ojb" version="1.0.rc4"/>
<resource id="commons-lang:commons-lang"
version="2.0"/>
<resource id="commons-lang:commons-lang"
version="2.0"/>
<resource id="jetspeed2:jetspeed"
version="2.0-a1-dev"/>
<resource id="jetspeed2:jetspeed-commons"
version="2.0-a1-dev"/>
</repository>
</classpath>
</classloader>
However, I am getting a class not found error.
See log below. Any clue on what's going?
David.
__________________________________
[DEBUG ] (jetspeed): deployment:
appliance:/jetspeed/persistence
[DEBUG ] (jetspeed.persistence.appliance): deployment
(singleton/conservative) [true]
[DEBUG ] (jetspeed.persistence.appliance): new
instance: 9874812
[DEBUG ] (jetspeed.persistence.appliance): applying
logger to: 9874812
[DEBUG ] (jetspeed.persistence.appliance): applying
configuration to: 9874812
[DEBUG ] (jetspeed.persistence): OJB.path:
C:\tools\eclipse\workspace\jakarta-jetspeed-2-prefs-merlin\components\persistence\target\classes\BLOCK-INF\ojb\
[INFO ] (jetspeed.persistence): URL to OJB
resources:
file:/C:/tools/eclipse/workspace/jakarta-jetspeed-2-prefs-merlin/components/persistence/target/classes/BLOCK-INF/ojb/
[INFO ] (jetspeed.persistence): Loading
OJB.properties from:
file:/C:/tools/eclipse/workspace/jakarta-jetspeed-2-prefs-merlin/components/persistence/target/classes/BLOCK-INF/ojb/OJB.properties
[INFO ] (jetspeed.persistence): overriding default
JDBC Connection Descriptor with jetspeed-test
0 [Thread-1] INFO
core.PersistenceBrokerFactoryDefaultImpl - Create
PersistenceBroker instance pool, pool configuration
was {whenExhaustedAction=0, maxIdle=-1, maxActive=100,
maxWait=2000, removeAbandoned=false,
numTestsPerEvictionRun=10, testWhileIdle=false,
minEvictableIdleTimeMillis=1000000, tes
tOnReturn=false, logAbandoned=false,
removeAbandonedTimeout=300,
timeBetweenEvictionRunsMillis=-1, testOnBorrow=false}
30 [Thread-1] INFO metadata.RepositoryPersistor - OJB
Descriptor Repository:
file:/C:/tools/eclipse/workspace/jakarta-jetspeed-2-prefs-merlin/components/persistence/target/classes/BLOCK-INF/ojb/repository.xml
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=grabSize, value=20) but I could
not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=autoNaming, value=true) but I
could not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=globalSequenceId, value=false)
but I could not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=globalSequenceStart,
value=10000) but I could not assign them to a
descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=grabSize, value=20) but I could
not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=autoNaming, value=true) but I
could not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=globalSequenceId, value=false)
but I could not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=globalSequenceStart,
value=10000) but I could not assign them to a
descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=grabSize, value=20) but I could
not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=autoNaming, value=true) but I
could not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=globalSequenceId, value=false)
but I could not assign them to a descriptor
70 [Thread-1] INFO metadata.RepositoryXmlHandler -
Found attribute (name=globalSequenceStart,
value=10000) but I could not assign them to a
descriptor
[DEBUG ] (kernel): state: initialized
---- exception report
----------------------------------------------------------
Exception: org.apache.avalon.merlin.KernelException
Message: Kernel startup failure.
---- cause
---------------------------------------------------------------------
Exception: org.apache.avalon.merlin.KernelException
Message: Application deployment failure.
---- cause
---------------------------------------------------------------------
Exception:
org.apache.avalon.activation.appliance.DeploymentException
Message: Composite deployment failure in block:
[block:/jetspeed]
---- cause
---------------------------------------------------------------------
Exception:
org.apache.avalon.activation.lifecycle.LifecycleException
Message: Unable to create a new component instance in
appliance [/jetspeed/persistence] due to a component
deployment failure.
---- cause
---------------------------------------------------------------------
Exception: java.lang.ExceptionInInitializerError
Message: null
---- cause
---------------------------------------------------------------------
Exception:
org.apache.ojb.broker.metadata.MetadataException
Message: Could not read repository class descriptor
data, using repository: repository.xml: Class
org.apache.jetspeed.capability.impl.MediaTypeEntryImpl
could not be found in the classpath. This could cause
unexpected behaviour of OJB, please remove or comment
out this class descriptor in the reposi
tory.xml file.:
org.apache.jetspeed.capability.impl.MediaTypeEntryImpl
---- cause
---------------------------------------------------------------------
Exception:
org.apache.ojb.broker.metadata.MetadataException
Message: Class
org.apache.jetspeed.capability.impl.MediaTypeEntryImpl
could not be found in the classpath. This could cause
unexpected behaviour of OJB, please remove or comment
out this class descriptor in the repository.xml file.:
org.apache.jetspeed.capability.impl.MediaTypeEntryImpl
---- cause
---------------------------------------------------------------------
Exception: java.lang.ClassNotFoundException
Message:
org.apache.jetspeed.capability.impl.MediaTypeEntryImpl
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]