Re: Tomcat 5.5.9 Connection Pool / JNDI / DBCP
I still can't make it work. My /opt/jakarta-tomcat-5.5.9/logs/catalina.out display this message 2005-04-23 08:48:21 org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=DataSource,path=/,host=192.168.1.251,class=javax.sql.DataSource,name=jdbc/testdatabase And maybe that is the problem. I have seen somewhere else that the Context part with the Resource is moved to a file called applicationname.xml. Some say to place in application/META-INF, some say to place it in $CATALINA_HOME/conf/Catalina/localhost. I have tried both but it does not work for me. When I remove the Context from my server.xml to a separate file - I see this when running Tomcat-Apache:No Host matches server name 192.168.1.251. Thanks Lars Nielsen Lind David Smith wrote: You should be doing this in your code: Context initContext = null; try { initContext = new InitialContext() ; } catch ( Exception e1 ) { //... do something with the trapped exception } try { DataSource ds = (DataSource)initContext.lookup(java:/comp/env/jdbc/testdatabase); } catch ( Exception e2) { //... do something -- log it } // Store a reference to ds someplace where it can be used over and over and over. Note the only thing I really changed is to make the type of initContext Context instead of InitialContext. This is mostly straight from the Tomcat 5.5 JNDI docs located here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html --David Lars Nielsen Lind wrote: Hi. I have some problems with Tomcat 5.5.9 Connection Pooling / JNDI / DBCP When running my java component (se below) I receive this NamingException: /NE: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial/ If I add this code: System.setProperty(java.naming.factory.initial, org.apache.naming.java.javaURLContextFactory); System.setProperty(java.naming.factory.pkgs, org.apache.naming); to the constructor in the java component, I receive this exception: /NE: Name java: is not bound in this Context/ What is wrong and what is the solution to the problem? Thanks Lars Nielsen Lind I have copied the PostgreSQL driver, commons-pool.jar, commons-collections.jar and commons-dbcp.jar to the $CATALINA_HOME/common/lib folder. I have done as specified in the JNDI Datasource HOW-TO. *Server.xml*: Context path=/ debug=1 docBase=/opt/jakarta-tomcat-5.5.9/webapps/application/test !-- PostgreSQL / JDBC / JNDI - ConnectionPooling -- Resource name=jdbc/testdatabase auth=Container type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://localhost/testdatabase username=dbmanager password=123456 maxActive=20 maxIdle=10 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true / /Context *Application Web.xml*: resource-ref descriptionPostgreSQL DataSource/description res-ref-namejdbc/testdatabase/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref *Java component*: import java.sql.*; import java.util.*; import javax.naming.*; import javax.sql.*; public class ConnectionPool { private Connection conn; public ConnectionPool() {} public Connection getConnectionFromPool() { try { InitialContext initContext = null; try { initContext = new InitialContext(); } catch (Exception ex) { System.out.println(IC: + ex); } try { DataSource ds = (DataSource)initContext.lookup(java:/comp/env/jdbc/testdatabase); conn = ds.getConnection(); } catch (SQLException se) { System.out.println(DS: + se); } } catch (NamingException ne) { System.out.println(NE: + ne.getMessage()); } return conn; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat connectors
Patty O'Reilly wrote: Thanks very much for responding. I'm still stuggling with an ever growing number of connections to the apache server and an ever growing number of threads on my tomcat server. I'm fairly certain it is not the application. I have all three timeouts set but no joy. worker.ifa-prod.jweb1.cachesize=1 worker.ifa-prod.jweb1.cache_timeout=600 worker.ifa-prod.jweb1.socket_keepalive=1 worker.ifa-prod.jweb1.socket_timeout=300 worker.ifa-prod.jweb1.recycle_timeout=300 You are probably using prefork mpm, so there is no way to control the number of connections to Tomcat in any way, trough mod_jk. You can limit it only by setting MaxClients in the httpd.conf to the maximum number desired. Because of pre-forking mechanism each child process will eventually establish a single connection to Tomcat, thus the number of connections will rise from StartServers to MaxClients. So there are two solutions for prefork. 1. Make maxThreads==MaxClients 2. Add connectionTimeout=2 to AJP connector. The leter one will recycle inactive connections, but degrade the performance. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 + Apache SOAP?
Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with JDBCRealm config on Tomcat 4.1
Well I've got JDBCRealm working for the entire server, but when I try to wrap the realm in a context for a specific webapp it stops working. Anyone have any ideas why? Is my Context specification not correct? Context path=/blojsom docBase=blojsom debug=99 Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost/mydatabase connectionName=xx connectionPassword=xx digest=MD5 userTable=users userNameCol=userid userCredCol=md5password userRoleTable=user_roles roleNameCol=role_name / /Context - Original Message - From: joelsherriff [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, April 22, 2005 3:56 PM Subject: Help with JDBCRealm config on Tomcat 4.1 Hope someone can help me - I'm still a relative newbie to tomcat, am baffled at this point and I can't even get it configured so that I can get debug info to find out what's wrong. I've added a context to my server.xml for the webapp I'm trying to set up JDBCRealm authentication for: Context path=/blojsom docBase=blojsom debug=99 Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_blojsom_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/mydatabase?user=xx;password=xx connectionName=xx connectionPassword=xx digest=MD5 userTable=users userNameCol=userid userCredCol=md5password userRoleTable=user_roles roleNameCol=role_name / /Context And, of course, added the supporting tables and roles to my database. When I attempt to access a page from the webapp, my login.jsp page is displayed, and when I attempt to login, my error.jsp page is displayed. I didn't expect this to work correctly the first time I configured it, and it's not, but my problem is that I can't figure out how to debug it at all. The Logger I have configured in the webapp's Context does nothing - doesn't create the log file and nothing is logged anywhere else either. How can I further debug it? Now, if I take the Realm out of the Context (applying it to the entire server), I get an exception in my catalina_log: 2005-04-22 15:26:10 JDBCRealm[Standalone]: Exception performing authentication java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:588) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:343) Though it doesn't say it precisely, I think this implies that it's not connecting to the DB, but the db, user and password values are all correct. Basically, I have three problems: why can't I get logging to work from within a specific context, am I doing something wrong in my attempt to get JDBCRealm authentication to work, and what is the right way to debug the problem further, if the solution isn't obvious? Also, I've added to my webapp's web.xml file: security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameusers/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameUsers/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config security-role description Some Stuff /description role-nameusers/role-name /security-role - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 + Apache SOAP?
Apache SOAP is the original apache SOAP implementation. I recommend you check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a year. Just make sure that the jar files that Axis needs are in the common/lib directory (if Tomcat needs them also). Not sure if HttpServlet is in that catagory, but worth a try. Kristian Rink wrote: Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not opening the page
Hi, I have installed Tomcat 5 I m starting tomcat at boot time using JSVC. It is working fine... I have deployed the WAR file in Tomcat I am able to access the home page. But in some situations, the page is not opening and showing the status in the browser as opening When i restart the Tomcat server also, its not opening. But when i restart the system, it is opening the pages and working fine please let me know how to identify the problem and give me the possible solution. Regards, Srikumar B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering application scope replication
Hey, with the next tomcat 5.5.10 release you can add a ClusterListener and LifecycleListener to your cluster config to realize those ServletContext attributes replication things. Look at the current cvs head and test it. ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className=your class / Listener className=your class / Your LifecycleListener receive the manager/context un/registration event. BEFORE_MANAGERREGISTER_EVENT AFTER_MANAGERREGISTER_EVENT BEFORE_MANAGERUNREGISTER_EVENT AFTER_MANAGERUNREGISTER_EVENT ClusterListener are receive the messages. (look at ClusterSessionListener or JvmRouteSessionIDBinderListener) You must define your own ClusterMessage implementation (SessionMessageImpl or SessionIDMessage) Your code contribution is very welcome :-) Peter Will Hartung schrieb: From: Joakim Ahlén [EMAIL PROTECTED] Sent: Friday, April 22, 2005 5:54 AM Hi! We have a cluster of two tomcat 5.5.9-machines using session replication. However, we also have data in application scope (set with getServletContext().setAttribute(...)) which as far as i have found in the docs, is not replicated. You need a cluster aware caching solution. Session replication is more for failover and such. Look at something like OSCache and its ilk to get the functionality that you need. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering application scope replication
I hope you have download and use my cluster patches for 5.5.9 http://issues.apache.org/bugzilla/show_bug.cgi?id=34389 when you implement the feature ServletContext attribute replication feature I support you. ( s. other mail) Peter Joakim Ahlén schrieb: Hi! We have a cluster of two tomcat 5.5.9-machines using session replication. However, we also have data in application scope (set with getServletContext().setAttribute(...)) which as far as i have found in the docs, is not replicated. Is there any way to accomplish this with tomcat? If not, is there any plan to develop support for it? Do other application servers have support for this? Hope you can help me. Regards Joakim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.7 Root.xml delete
All, I wanted to make sure there wasn't something I was missing, but on an installation of Tomcat 5.5.7, I watch the startup on Tomcat. If I have a Root.xml file that specifies an incorrect docBase it seems to delete the root.xml, but doesn't seem to say anything about doing so. I couldn't find any information about this through Google, the docs, or the threads for this month. Any help here would be great. Also, wouldn't it be a better response to just issue an error? Programs that go about randomly deleting configuration files seem a little odd. Thanks again for your help. Sincerely, Shaun Clark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 + Apache SOAP?
I also would recommend Axis, but if you put the jar files in common/lib you will not be able to reload your app. At least that happened to me with axis 1.1 under 5.0.28... That also breaks the rule that the app should be as self-contained as possible to make it as portable as possible. Trond Mark Leone wrote: Apache SOAP is the original apache SOAP implementation. I recommend you check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a year. Just make sure that the jar files that Axis needs are in the common/lib directory (if Tomcat needs them also). Not sure if HttpServlet is in that catagory, but worth a try. Kristian Rink wrote: Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 + Apache SOAP?
I agree with Trond. And since I wrote my reply rather quickly I want to make sure I'm clear. You only need to put in common/lib any jar files that both Tomcat and Axis need, which certainly does not include axis.jar and the other jars that come with the Axis distribution. I thought that maybe Axis needed access to the jar file that contains class HttpServlet, because I remember the installation instructions aaying that certian other jar files had to be on the classpath; but I checked and it doesn't look like axis needs to see HttpServlet. Other than needing access to an XML parser, I don't think there's much the Axis server needs beyond what you already have in Tomcat. You should be able to just drop Axis in to Tomcat and have it run almost immediately, unless you have a non-standard configuration. Maybe apache SOAP required it, but it seems doubtful. It seems like the reported error is more of a Tomcat problem. If you install Axis and get the same error, please report back to us. Trond G. Ziarkowski wrote: I also would recommend Axis, but if you put the jar files in common/lib you will not be able to reload your app. At least that happened to me with axis 1.1 under 5.0.28... That also breaks the rule that the app should be as self-contained as possible to make it as portable as possible. Trond Mark Leone wrote: Apache SOAP is the original apache SOAP implementation. I recommend you check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a year. Just make sure that the jar files that Axis needs are in the common/lib directory (if Tomcat needs them also). Not sure if HttpServlet is in that catagory, but worth a try. Kristian Rink wrote: Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tutorial open source application running on Tomcat
Hello, A group of students at UIUC have created an open source project at http://online-commons.tigris.org which we believe serves as a good demonstration and tutorial on putting together: HSQLdb, Hibernate, Tomcat, Struts, and Java. Developed using Eclipse. We are advertising at the closure of our semester, to a community that may be interested in joining our user community and using the Online Commons project as an example, and to anyone interested in joining our developer community to continue adding functionality to enhance the tutorial. Thank you for your time. -Brian Student at UIUC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not opening the page
well - the first place I would look at would be in the logs. Also instead of starting tomcat as a service, start it manually so that u have access to the tomcat console and note any unusual error messages - I think you can set the service as manual instead of automatic.. not sure abt JSVC though - but there shd be such an option available. start from there - and if you cant figure out what the logs mean get back to this group and someone or the other WILL help you.. HTH, Anoop On 4/23/05, srikumar [EMAIL PROTECTED] wrote: Hi, I have installed Tomcat 5 I m starting tomcat at boot time using JSVC. It is working fine... I have deployed the WAR file in Tomcat I am able to access the home page. But in some situations, the page is not opening and showing the status in the browser as opening When i restart the Tomcat server also, its not opening. But when i restart the system, it is opening the pages and working fine please let me know how to identify the problem and give me the possible solution. Regards, Srikumar B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error 400 no such host.
My system is tomcat 5.5.7 on linux mandrake 10.1 with sun java 1.5 my server.xml /webpps is the original webapps dir, moved to /, to test the absolute path in appBase.. I get 400 no such host Has anybody, here made it work with an absoulte path, on linux? How? ?xml version=1.0? Server port=8005 shutdown=SHUTDOWN Service name=Catalina Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3/ Engine name=Catalina defaultHost=localhost Host appBase=/webapps name=localhost unpackWARs=true autoDeploy=false /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error 400 no such host.
FWIW, I tried this on my Windows XP system, and it worked. I copied the webapps folder with one of its app folders to the system root directory, set appbase=c:\webapps, and it worked. One observation that may shed some light on your problem. When I first tried it, I only copied my axis webapp folder. When I went to http://localhost:8080/ I got a blank page (not a Host not found error). But I could navigate to http://localhost:8080/axis and see the axis web app. Then I copied the Root folder from the original webapps directory to the new location, and I got the usual Tomcat startup page when I went to http://localhost:8080/. Did you copy the Root folder over when you tried it? jesper wrote: My system is tomcat 5.5.7 on linux mandrake 10.1 with sun java 1.5 my server.xml /webpps is the original webapps dir, moved to /, to test the absolute path in appBase.. I get 400 no such host Has anybody, here made it work with an absoulte path, on linux? How? ?xml version=1.0? Server port=8005 shutdown=SHUTDOWN Service name=Catalina Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3/ Engine name=Catalina defaultHost=localhost Host appBase=/webapps name=localhost unpackWARs=true autoDeploy=false /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]