Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
I got the following error message when I try to start tomcat in Eclipse

I got the following error message when I try to start tomcat in Eclipse

2007-11-04       - By peri

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  


I look  at server.xml. It is written like that :

<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database that can
be updated and saved" />
- <ResourceParams name="UserDatabase">
- <parameter>
 <name>factory</name>
 <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
 </parameter>
- <parameter>
 <name>pathname</name>
 <value>conf/tomcat-users.xml</value>
 </parameter>
 </ResourceParams>

As you see factory and path name are described in Resource Param tag. And
also there is "-" sign in Resource Param and parameter tags. Is it okay, or
shuld I change like your description?
Thank you very much
Perihan



mgainty wrote:
>
> display UserDatabase entry from $TOMCAT_HOME/conf/server.xml
>
> it should look something like
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>              
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.xml" />
>
> M--
> -- -- Original Message -- --
> Wrom: LHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB
> To: <users@(protected)>
> Sent: Sunday, November 04, 2007 3:27 PM
> Subject: I got the following error message when I try to start tomcat in
> Eclipse
>
>
>>
>> Hi,
>> I try to start tomcat  version 4.1 in eclipse version 3.3.0. I use Windos
>> Vista operating system. I installed launcher plug-in so i can start and
> stop
>> tomcat for eclipse. I use JDK 1.4.16  by the way.
>> When I try to start tomcat in eclipse I got the following error:
>> (P.S. I used tomcat 4.1 in windows XP before and i didn't get this error)
>>
>> GlobalResourcesLifecycleListener: Exception processing Global JNDI
> Resources
>> javax.naming.NamingException: Cannot rename original file to C:\Program
>> Files\Apache Software Foundation\Tomcat 4.1\conf\tomcat-users.xml.old
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:799)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:135)
>> at
>>
> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(Namin
> gContextBindingsEnumeration.java:121)
>> at
>>
> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBinding
> sEnumeration.java:80)
>> at
>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo
> balResourcesLifecycleListener.java:157)
>> at
>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo
> balResourcesLifecycleListener.java:128)
>> at
>>
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(G
> lobalResourcesLifecycleListener.java:96)
>> at
>>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:120)
>> at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:2206)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
>> 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:151)
>> Starting service Tomcat-Standalone
>> Apache Tomcat/4.1.36-LE-jdk14
>> javax.naming.NamingException: Cannot rename original file to C:\Program
>> Files\Apache Software Foundation\Tomcat 4.1\conf\tomcat-users.xml.old
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:799)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:148)
>> at
>>
> org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:220
> )
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311)
>> at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>> at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:2213)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
>> 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:151)
>> 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:227
> )
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311)
>> at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>> at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:2213)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:459)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
>> 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:151)
>> 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:1382)
>> at
>> org.apache.catalina.core.StandardService.stop(StandardService.java:499)
>> at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2248)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:490)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
>> 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:151)
>>
>>
>> Can anybody help me to solve this problem
>> Thank you very much
>>
>> --
>> View this message in context:
> http://www.nabble.com/I-got-the-following-error-message-when-I-try-to-start-
> tomcat-in-Eclipse-tf4748298.html#a13577447
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> To start a new topic, e-mail: users@(protected)
>> To unsubscribe, e-mail: users-unsubscribe@(protected)
>> For additional commands, e-mail: users-help@(protected)
>>
>>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>

--
View this message in context: http://www.nabble.com/I-got-the-following-error
-message-when-I-try-to-start-tomcat-in-Eclipse-tf4748298.html#a13578695
Sent from the Tomcat - User mailing list archive at Nabble.com.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.