You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Greg Akins <an...@gmail.com> on 2009/11/11 05:25:36 UTC

Pain trying "First Hops"

I'm trying to work through the "First Hops" tutorial.. any help would
be much appreciated.

After working through a lot of NoClassDefFound exceptions, I'm getting
a ConfigurationException (stacktrace below).

The standalone server doesn't appear to be putting any errors in it's
logs, so it looks like there is a problem with repository.xml on the
client (though I'm not sure where/how/why that is on the client).

I'm running this on OS 10.6 and am using this on the command line to execute

CLASSPATH="."
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/org/slf4j/slf4j-api/1.5.3/slf4j-api-1.5.3.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/org/slf4j/slf4j-simple/1.5.2/slf4j-simple-1.5.2.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/org/apache/jackrabbit/jackrabbit-api/1.6.0/jackrabbit-api-1.6.0.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/org/apache/jackrabbit/jackrabbit-core/1.6.0/jackrabbit-core-1.6.0.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/org/apache/jackrabbit/jackrabbit-jcr-commons/1.6.0/jackrabbit-jcr-commons-1.6.0.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/org/apache/jackrabbit/jackrabbit-spi-commons/1.6.0/jackrabbit-spi-commons-1.6.0.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/javax/jcr/jcr/1.0/jcr-1.0.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/oswego-concurrent/concurrent/1.3.4/concurrent-1.3.4.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
CLASSPATH=$CLASSPATH:/Users/gakins/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar


java -cp $CLASSPATH:target/jcrApp-1.0-SNAPSHOT.jar com.gregakins.app.App

178 [main] WARN
org.apache.jackrabbit.core.config.ConfigurationErrorHandler - Fatal
error parsing the configuration at line -1 using system id null:
org.xml.sax.SAXParseException: Premature end of file.
Exception in thread "main" javax.jcr.RepositoryException: Invalid
repository configuration file: repository.xml: Configuration file
syntax error. (Line: -1 Column: -1): Premature end of file.:
Configuration file syntax error. (Line: -1 Column: -1): Premature end
of file.: Premature end of file.
	at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:236)
	at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:251)
	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:319)
	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:374)
	at com.gregakins.app.App.main(App.java:17)

-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net