try deleting your repository directory and doing it again. My guess is that you created that file when your class path wasn't right.
-----Original Message----- From: "Greg Akins" <angryg...@gmail.com> Sent: Wednesday, November 11, 2009 3:29pm To: dev@jackrabbit.apache.org Subject: Pain Trying FirstHop application I'm trying to work through the "First Hops" tutorial.. any help would be much appreciated. (Sent this to the users list yesterday, but thought this list might be more appropriate). After working through a lot of NoClassDefFound exceptions, I'm getting a ConfigurationException (stacktrace below) from transientRepository.login() 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