Results 1 to 2 of 2
  1. #1
    Felissa is offline Member
    Join Date
    Jun 2007
    Posts
    95
    Rep Power
    0

    Exclamation Running Tomcat in Linux from Eclipse.

    I have a problem to make run the tomcat server from eclipse in my new SO SUSE Linux 10 ... I don't know ...
    It's very strange to me because I do the exactly thing in windows and works fine (Eclipse 3.2 Lomboz + jdk 1.5 + jre 1.5 + Tomcat 5.5... + plugins)
    This is what it throws the console to me of the server... t it seems to be a problem of permissions ...

    Felissa :o

    Error:

    Java Code:
    Mar 28, 2007 9:31:05 PM org.apache.coyote.http11.Http11Protocol init
        INFO: Initializing Coyote HTTP/1.1 on http-8080
        GlobalResourcesLifecycleListener: Exception processing Global JNDI
        Resources
        javax.naming.NamingException:
        /usr/local/bin/jakarta-tomcat-4.1.31/conf/tomcat-users.xml.new
        (Permission denied)
              at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
              at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
              at
        org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:167)
              at
        org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:134)
              at
        org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:102)
              at
        org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at
        org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
              at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
              at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
        Starting service Tomcat-Standalone
        Apache Tomcat/4.1.31
        javax.naming.NamingException:
        /usr/local/bin/jakarta-tomcat-4.1.31/conf/tomcat-users.xml.new
        (Permission denied)
              at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
              at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
              at
        org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:250)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
              at
        org.apache.catalina.core.StandardService.start(StandardService.java:450)
              at
        org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
              at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
              at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
        Catalina.start: LifecycleException:  No UserDatabase component found
        under key UserDatabase
        LifecycleException:  No UserDatabase component found under key
        UserDatabase
              at
        org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:257)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
              at
        org.apache.catalina.core.StandardService.start(StandardService.java:450)
              at
        org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
              at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
              at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
        Stopping service Tomcat-Standalone
        Catalina.stop: LifecycleException:  Coyote connector has not been started
        LifecycleException:  Coyote connector has not been started
              at
        org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
              at
        org.apache.catalina.core.StandardService.stop(StandardService.java:499)
              at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
              at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
              at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

  2. #2
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default RE: Running Tomcat in Linux from Eclipse.

    Hi felissa,
    that is the tomcat-users.xml that works:

    Java Code:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
    
    <role rolename="admin"/>
    <role rolename="manager"/>
    <role rolename="tomcat"/>
    <role rolename="role1"/>
    <user username="admin" password="secret"
    
    roles="manager,admin"/>
    <user username="tomcat" password="tomcat"
    roles="tomcat"/>
    <user username="role1" password="tomcat"
    roles="role1"/>
    
    <user username="both" password="tomcat"
    roles="tomcat,role1"/>
    </tomcat-users>
    The admin's rol I think that is necessary

    Please check if you user's suse has an access to this file

    ls -l

    If you have to change the permissions: chmod u+rwx tomcat-users.xml
    Or maybe you could be that your user must belong to a special group of your o.s. to do something in tomcat

    Daniel

Similar Threads

  1. Tomcat In Eclipse - Sysdeo Tomcat Plug-in
    By JavaForums in forum Eclipse
    Replies: 1
    Last Post: 02-13-2008, 10:33 AM
  2. Tomcat 5 for Eclipse
    By gapper in forum Eclipse
    Replies: 1
    Last Post: 02-07-2008, 06:08 AM
  3. Tomcat plugin for Eclipse
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-16-2008, 10:42 AM
  4. eclipse in linux
    By bbq in forum Eclipse
    Replies: 1
    Last Post: 07-04-2007, 08:59 AM
  5. error Tomcat in eclipse
    By Marty in forum Eclipse
    Replies: 1
    Last Post: 05-06-2007, 04:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •