0 Replies Latest reply on Mar 23, 2012 5:40 PM by ian boyd

    InvalidConfigurationException with HornetQServlet

    ian boyd Newbie

      I just downloaded the hornetq-2.2.2.Final distribution, and I'm trying to run the HornetQServlet example on a JBoss 6.1 application server running in MAC OS.  When I run "build.sh deploy", it tries to access file, "/Users/ian/development/jboss-6.1.0.Final/server/servlet-transport-example-profile/conf", which does not exist (as shown below). Are the examples in hornetq-2.2.2 designed to operate in JBoss 6.1?  If so, what should I do about that missing file?

       

      Thanks for any help. 

       

      build.sh listing follows:

       

       

      deploy:

           [copy] Copying 2 files to /Users/iandow/development/jboss-6.1.0.Final/server/servlet-transport-example-profile/deploy/hornetq.sar

           [copy] Copying 1 file to /Users/iandow/development/jboss-6.1.0.Final/server/servlet-transport-example-profile/deploy

           [exec] =========================================================================

           [exec]

           [exec]   JBoss Bootstrap Environment

           [exec]

           [exec]   JBOSS_HOME: /Users/iandow/development/jboss-6.1.0.Final/

           [exec]

           [exec]   JAVA: java

           [exec]

           [exec]   JAVA_OPTS: -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh -Dlogging.configuration=file:./logging.properties -Djava.library.path=/Users/iandow/development/jboss-6.1.0.Final/bin/native/lib64

           [exec]

           [exec]   CLASSPATH: /Users/iandow/development/jboss-6.1.0.Final//bin/run.jar

           [exec]

           [exec] =========================================================================

           [exec]

           [exec] Failed to boot JBoss:

           [exec] org.jboss.bootstrap.api.config.InvalidConfigurationException: Could not get a connection to the jboss.server.config.url: file:/Users/iandow/development/jboss-6.1.0.Final/server/servlet-transport-example-profile/conf

           [exec]     at org.jboss.bootstrap.impl.as.config.JBossASBasedConfigurationValidator.require(JBossASBasedConfigurationValidator.java:217)

           [exec]     at org.jboss.bootstrap.impl.as.config.JBossASBasedConfigurationValidator.require(JBossASBasedConfigurationValidator.java:187)

           [exec]     at org.jboss.bootstrap.impl.as.config.JBossASBasedConfigurationValidator.validate(JBossASBasedConfigurationValidator.java:120)

           [exec]     at org.jboss.bootstrap.impl.as.config.JBossASBasedConfigurationValidator.validate(JBossASBasedConfigurationValidator.java:43)

           [exec]     at org.jboss.bootstrap.impl.base.server.AbstractServer.validate(AbstractServer.java:1010)

           [exec]     at org.jboss.bootstrap.impl.base.server.AbstractServer.doInitialize(AbstractServer.java:566)

           [exec]     at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.doInitialize(AbstractMCServerBase.java:230)

           [exec]     at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.doInitialize(AbstractJBossASServerBase.java:284)

           [exec]     at org.jboss.bootstrap.impl.base.server.AbstractServer.initialize(AbstractServer.java:524)

           [exec]     at org.jboss.Main.boot(Main.java:469)

           [exec]     at org.jboss.Main$1.run(Main.java:816)

           [exec]     at java.lang.Thread.run(Thread.java:680)

           [exec] Caused by: java.io.FileNotFoundException: /Users/iandow/development/jboss-6.1.0.Final/server/servlet-transport-example-profile/conf

           [exec]     at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)

           [exec]     at org.jboss.bootstrap.impl.as.config.JBossASBasedConfigurationValidator.require(JBossASBasedConfigurationValidator.java:213)

           [exec]     ... 11 more

           [exec] Posting Shutdown Request to the server...

           [exec] Server startup has not completed, so halting the process

           [exec] Result: 255