Menu

problem with starting hermes

Help
janosik
2004-06-25
2004-08-25
  • janosik

    janosik - 2004-06-25

    i've got problem with runnig hermes 1.6. after downloading i run script '$HERMES_HOME/bin/hermes.sh' and got this:

    --
    $ cd $HERMES_HOME/bin
    $ ./hermes.sh
    log4j:ERROR Could not read configuration file from URL [file:log4j.props].
    java.io.FileNotFoundException: log4j.props (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
            at java.net.URL.openStream(URL.java:913)
            at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:424)
            at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
            at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
            at org.apache.log4j.Logger.getLogger(Logger.java:94)
            at hermes.browser.HermesBrowser.<clinit>(HermesBrowser.java:97)
    log4j:ERROR Ignoring configuration file [file:log4j.props].
    log4j:WARN No appenders could be found for logger (hermes.browser.HermesBrowser).
    log4j:WARN Please initialize the log4j system properly.
    --

    so i changed '...-Dlog4j.configuration=file:log4j.props...' to '...-Dlog4j.configuration=log4j.props...'
    the result was:

    --
    $ cd $HERMES_HOME/bin
    $ ./hermes.sh
    log4j:WARN No appenders could be found for logger (hermes.browser.HermesBrowser).
    log4j:WARN Please initialize the log4j system properly.
    --

    and nothig was logged in hermes.log. i thought that could be some configuration problem with log4j and i asked for help www.google.com. 'the properties file should be placed  at the root of project structure'. so i copied log4j.props to hermes.jar

    -- content of hermes.jar
    /META-INF
    /com
    /hermes
    /log4j.props
    --

    i don't know if this copying is good but it seems to work. now i get no warnings on stdout but still no GUI appears.

    -- hermes.log --
    2004-06-25 16:21:35,331 [main] FATAL hermes.browser.HermesBrowser - cannot initialise hermes:
    javax.naming.NamingException:
            at hermes.HermesContext.load(HermesContext.java:142)
            at hermes.HermesInitialContextFactory.getInitialContext(HermesInitialContextFactory.java:74)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
            at javax.naming.InitialContext.init(InitialContext.java:219)
            at javax.naming.InitialContext.<init>(InitialContext.java:195)
            at hermes.browser.HermesBrowser.initHermes(HermesBrowser.java:348)
            at hermes.browser.HermesBrowser.main(HermesBrowser.java:1008)
    --

    i want to use hermes with  JBOSS 3.2.3. i appreciate every help.

     
    • Colin Crist

      Colin Crist - 2004-06-30

      Suspect you may have inadvertently messed up the install - easy to do. Try a re-install, if it persists then send me you hermes-config.xml along with the log4j output.

      Hermes works ok with pretty much all minor versions of JBoss 3.X as far as I've heard.

      Colin.

       
    • janosik

      janosik - 2004-07-03

      here is my 'hermes-config.xml':

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <config maxMessagesInBrowserPane="1000" auditDirectory="C:\temp" maxThreadPoolSize="5" messageFilesDir="./messages">
          <renderer className="hermes.renderers.DefaultMessageRenderer"/>
          <loader noFactories="true" jar="..\providers\activemq-1.0-SNAPSHOT\lib\concurrent-1.3.2.jar"/>
          <loader noFactories="true" jar="..\providers\activemq-1.0-SNAPSHOT\lib\geronimo-spec-j2ee-management-1.0-rc1.jar"/>
          <loader factories="org.codehaus.activemq.ActiveMQConnectionFactory,org.codehaus.activemq.ActiveMQConnectionFactory" jar="..\providers\activemq-1.0-SNAPSHOT\activemq-1.0-SNAPSHOT.jar"/>
          <factory>
              <provider className="hermes.providers.file.FileConnectionFactory">
                  <properties>
                      <property name="baseDirectory" value="messages"/>
                  </properties>
              </provider>
              <connection>
                  <session reconnects="0" audit="false" id="Files"/>
              </connection>
              <destination name="examples.xml" domain="1"/>
          </factory>
          <factory>
              <provider className="org.codehaus.activemq.ActiveMQConnectionFactory">
                  <properties>
                      <property name="useEmbeddedBroker" value="true"/>
                  </properties>
              </provider>
              <connection>
                  <session transacted="true" reconnects="0" audit="false" id="ActiveMQ"/>
              </connection>
              <destination name="testTopic" domain="2"/>
              <destination name="testQueue" className="org.codehaus.activemq.message.ActiveMQQueue" domain="1"/>
          </factory>
      </config>
      --

      i trying to run hermes on linux box so i changed "...auditDirectory="C:\temp" ..." -> "...auditDirectory="/temp" ..." and set rwx to all users but it didn't help.

      below is hermes.log:

      2004-07-03 13:13:26,796 [main] ERROR hermes.HermesContext -
      hermes.HermesException:
              at hermes.JAXBHermesLoader.load(JAXBHermesLoader.java:517)
              at hermes.HermesContext.load(HermesContext.java:113)
              at hermes.HermesInitialContextFactory.getInitialContext(HermesInitialContextFactory.java:74)
              at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
              at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
              at javax.naming.InitialContext.init(InitialContext.java:219)
              at javax.naming.InitialContext.<init>(InitialContext.java:195)
              at hermes.browser.HermesBrowser.loadConfig(HermesBrowser.java:390)
              at hermes.browser.HermesBrowser.main(HermesBrowser.java:1089)
      2004-07-03 13:13:26,806 [main] FATAL hermes.browser.HermesBrowser - cannot initialise hermes:
      javax.naming.NamingException:
              at hermes.HermesContext.load(HermesContext.java:142)
              at hermes.HermesInitialContextFactory.getInitialContext(HermesInitialContextFactory.java:74)
              at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
              at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
              at javax.naming.InitialContext.init(InitialContext.java:219)
              at javax.naming.InitialContext.<init>(InitialContext.java:195)
              at hermes.browser.HermesBrowser.loadConfig(HermesBrowser.java:390)
              at hermes.browser.HermesBrowser.main(HermesBrowser.java:1089)
      --
      this message appears after moving 'log4j.props' to 'hermes.jar' as i described previously.

      i downloaded also 1.5 version and got the same results :(
      i really don't know what could i did wrong.

       
    • Paul Keogh

      Paul Keogh - 2004-08-23

      I had exactly the same problems with 1.6 on RH 9.

      First, fix the log4j warnings by supplying a full pathname to the java command line; ie.

      -Dlog4j.configuration=file:$HERMES_HOME/bin/log4j.props

      Then Hermes started to log into $HERMES_HOME.

      It still was not starting though.

      I then changed the -Dhermes argument to be;

      -Dhermes=$HERMES_HOME/bin/hermes-config.xml

      and it started up just fine !

       
    • Colin Crist

      Colin Crist - 2004-08-25

      I've had some good feedback of late like this on the sorely needed revamp of the startup scripts that I'm dealing with for 1.7. Added this to the final solution.

      Fedora is now a test platform so you should see a difference.

      Thanks as always.

      Colin.

       

Log in to post a comment.