Tomcat Manager problem..
Hi there.. My tomcat was working perfectly and also my Tomcat manager.. Then I decide to switch from just 1 site to host (mine) to virtual hosting... Everything works except my tomcat manager... when I type http://domain.com/manager/html I get the username and password box and I enter it and it won't let me pass further... my server.xml is : ps. I changed my real domain to domain.com. Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Engine name=Catalina defaultHost=localhost debug=0 !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host Host name=www.domain.com appBase=webapps/www.domain.com unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliasdomain.com/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=www.domain_access. suffix=.log pattern=common resolveHosts=false/ /Host /Engine /Service /Server my website is in webapps which works... in the Catalina folder I have Catalina/localhost/manager.xml Catalina/www.domain.com/manager.xml manager.xml : Context path=/manager debug=0 privileged=true docBase=/opt/tomcat/webapps/manager /Context tomcat-users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=manager/ role rolename=tomcat/ role rolename=admin/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=both password=tomcat roles=tomcat,role1/ user username=admin password=adminpassword roles=admin,manager/ user username=role1 password=tomcat roles=role1/ /tomcat-users What AM I doing wrong??? -- View this message in context: http://www.nabble.com/Tomcat-Manager-problem..-tp20343461p20343461.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help configuring Tomcat
Now I get this error 11:29:40 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class ca.aximage.cms.init.CMSInitializator ca.aximage.servlet.framework.InitializationException: InitializationException: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory] at ca.aximage.cms.init.CMSInitializator.contextInitialized(CMSInitializator.java:32) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory] at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:81) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321) at org.apache.naming.NamingContext.lookup(NamingContext.java:793) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContext.lookup(NamingContext.java:781) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at ca.aximage.servlet.framework.database.Database.initDataSource(Database.java:34) at ca.aximage.cms.init.CMSInitializator.contextInitialized(CMSInitializator.java:30) ... 24 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:79) ... 31 more -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18613585.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help configuring Tomcat
ok I use eclipse with tomcat on my desktop and the site works ok on there I noticed that my tomcat on my xp machine had tomcat-dbcp.jar and copied it onto my linux server in the tomcat /lib/ folder and restarted tomcat and I still have the same error message Caldarale, Charles R wrote: From: slytheman [mailto:[EMAIL PROTECTED] Subject: RE: Help configuring Tomcat [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory] The message is pretty clear - your webapp (not Tomcat) is missing at least one critical component. Do you have a DBCP Resource configured for this webapp? If so, what's in it? If you want to use the standard commons-DBCP component, put commons-dbcp.jar in your webapp's WEB-INF/lib directory. If you want to use the renamed one that comes with Tomcat, change the class name in the Resource element (assuming you have one) to: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18616881.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help configuring Tomcat
I fixed the problem... I copied all of the jar files off my windows tomcat directory to the linux tomcat directory and it worked many thanks -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18617261.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help configuring Tomcat
I had a web site with my previous employer and when I quit my job I saved my web site... I installed Fedora core 9 with Tomcat 6 I just want to add my site to Tomcat that's all I can see the default Tomcat site with the http://localhost/ (I changed the port to 80) I have eclipse on my desktop with tomcat installed and I can see it with no problem.. I just want to transfer the site onto my linux server... Tomcat is installed on /opt/tomcat/ my site is installed on /var/www/html/ROOT/ everything is set to default I just need helpor advise... -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18591522.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help configuring Tomcat
Hi there I did the changes and now I get an error.. Jul 22, 2008 1:08:49 PM org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 111 column 42: Element type Host must be followed by either attribute specifications, or /. org.xml.sax.SAXParseException: Element type Host must be followed by either attribute specifications, or /. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.seekCloseOfStartTag(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:410) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) Jul 22, 2008 1:08:49 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: org.xml.sax.SAXParseException: Element type Host must be followed by either attribute specifications, or /. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:410) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) Caldarale, Charles R wrote: From: slytheman [mailto:[EMAIL PROTECTED] Subject: Help configuring Tomcat Tomcat is installed on /opt/tomcat/ my site is installed on /var/www/html/ROOT/ Edit the Host element in Tomcat's conf/server.xml file, changing appBase to /var/www/html. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18594162.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help configuring Tomcat
-- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn / -- !-- Access log processes all example. Documentation at: /docs/config/valve.html -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service /Server slytheman wrote: I had a web site with my previous employer and when I quit my job I saved my web site... I installed Fedora core 9 with Tomcat 6 I just want to add my site to Tomcat that's all I can see the default Tomcat site with the http://localhost/ (I changed the port to 80) I have eclipse on my desktop with tomcat installed and I can see it with no problem.. I just want to transfer the site onto my linux server... Tomcat is installed on /opt/tomcat/ my site is installed on /var/www/html/ROOT/ everything is set to default I just need helpor advise... -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18594173.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help configuring Tomcat
found the problem.. Host name=localhost appBase=/var/www/html syntax error... now I get a status 404.. I will try to troubleshoot it. -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18594566.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]