Using precompiled JSPs
Hi I am using tomcat 6. I compiled my JSPs (using tomcat’s org.apache.jasper.JspC) and located them at the same place as all my classes in the WAR (WEB-INF/classes). When running tomcat and browsing to some JSP files, I found out the tomcat translate the JSPs to servlets and compile them again under the “work” directory. What is the reason it doesn’t use the compiled JSP and recompile the JSP from scratch? What should be done to use precompiled JSP in tomcat? (I followed the tomcat instructions) Thanks in Advance, Moti My JSP seetings in the web.xml looks like that: servlet-nameJspServlet/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namedevelopment/param-name param-valuefalse/param-value /init-param init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namereloading/param-names param-valuefalse/param-value /init-param init-param param-nameclasspath/param-name init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecheckInterval/param-name param-valuefalse/param-value /init-param init-param param-nameclassdebuginfo/param-name param-valuetrue/param-value /init-param load-on-startup3/load-on-startup /servlet -- View this message in context: http://www.nabble.com/Using-precompiled-JSPs-tp21124710p21124710.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
/* AJP with one exceptions
I am trying to configure httpd-tomcat ajp bridge that will catch all requests except for one directory to be served from httpd. Ideally I'd like to map /* to the AJP except for one /staticcontent directory to be served from apache. Has anyone done this? Thanks, Yuval Perlov www.r-u-on.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat announce / tomcat security mailing list
Hello, did not find a tomcat announce and/or tomcat security mailing list. That would be fine, because there is so much noise on this users mailing list. What's about that? Best regards, Stephanie -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /* AJP with one exceptions
On 22.12.2008 13:27, Yuval Perlov wrote: I am trying to configure httpd-tomcat ajp bridge that will catch all requests except for one directory to be served from httpd. Ideally I'd like to map /* to the AJP except for one /staticcontent directory to be served from apache. Has anyone done this? When using mod_jk: JkUnMount /staticcontent/* * - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat and Radius server
Hi, So far, we used LDAP and the JNDIRealm to authenticate users of our web applications hosted in Tomcat 5.5. Now, we want to use a Radius server, instead of LDAP, to store the user logins/passwords. I would like to know if there is a kind of 'RadiusRealm' somewhere that I can use to do what JNDIRealm does to authenticate users through LDAP. I searched the web, without success. Thanks in advance. Stephane Roy Alcatel-Lucent - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat's Max Thread problem
From: sihan [mailto:si...@afrigis.co.za] Subject: Tomcat's Max Thread problem I tried tuning the number of threads (maxThreads) in tomcat's thread pool in server.xml. Actually, you didn't. You may have configured an Executor with a larger maxThreads attribute, but you failed to specify the executor name in either of the Connector elements you're using. Consequently, each Connector is running with its own thread pool, each having 200 threads. http://tomcat.apache.org/tomcat-6.0-doc/config/http.html http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /* AJP with one exceptions
I tried this - thought I was missing something so I asked. For some reason this does not work on mac. On Dec 22, 2008, at 3:37 PM, Rainer Jung wrote: On 22.12.2008 13:27, Yuval Perlov wrote: I am trying to configure httpd-tomcat ajp bridge that will catch all requests except for one directory to be served from httpd. Ideally I'd like to map /* to the AJP except for one /staticcontent directory to be served from apache. Has anyone done this? When using mod_jk: JkUnMount /staticcontent/* * - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /* AJP with one exceptions
On 22.12.2008 15:41, Yuval Perlov wrote: I tried this - thought I was missing something so I asked. For some reason this does not work on mac. If you use an older version of mod_jk than 1.2.27, you need to use the syntax JkUnMount /staticcontent/* MYWORKER instead, and MYWORKER is the name of the worker you want to unmount. The use of '*' to match all workers was only introduced recently. Also there is no more general pattern allowed in this place, only exactly '*' or a worker name. Make sure you put your JkMount and your JkUnMount in the same place. Version 1.2.27 allows nicely to check the resulting mounting in the status worker. If it still does not work, post versions and config. Regards, Rainer On Dec 22, 2008, at 3:37 PM, Rainer Jung wrote: On 22.12.2008 13:27, Yuval Perlov wrote: I am trying to configure httpd-tomcat ajp bridge that will catch all requests except for one directory to be served from httpd. Ideally I'd like to map /* to the AJP except for one /staticcontent directory to be served from apache. Has anyone done this? When using mod_jk: JkUnMount /staticcontent/* * - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat announce / tomcat security mailing list
From: Stephanie Wullbieter [mailto:swu...@gmx.de] Subject: tomcat announce / tomcat security mailing list did not find a tomcat announce and/or tomcat security mailing list. Because there isn't one. You can use one of the searchable lists to find announcements (e.g., http://marc.info/?l=tomcat-user, search for ANN), or look on the appropriate web page for security: http://tomcat.apache.org/security.html You can also use the searchable lists to hunt for SECURITY, but the above web page is better for that. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Using precompiled JSPs
From: motit [mailto:moti@expand.com] Subject: Using precompiled JSPs I compiled my JSPs (using tomcat's org.apache.jasper.JspC) Did you use the suggested ant script, or did you roll your own mechanism? and located them at the same place as all my classes in the WAR (WEB-INF/classes). Under the proper package name hierarchy? I found out the tomcat translate the JSPs to servlets and compile them again under the work directory. You likely did not update your WEB-INF/web.xml with the servlet mappings. (I followed the tomcat instructions) Exactly which instructions did you follow? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /* AJP with one exceptions
That did the trick. Thanks a bunch! Yuval On Dec 22, 2008, at 4:51 PM, Rainer Jung wrote: On 22.12.2008 15:41, Yuval Perlov wrote: I tried this - thought I was missing something so I asked. For some reason this does not work on mac. If you use an older version of mod_jk than 1.2.27, you need to use the syntax JkUnMount /staticcontent/* MYWORKER instead, and MYWORKER is the name of the worker you want to unmount. The use of '*' to match all workers was only introduced recently. Also there is no more general pattern allowed in this place, only exactly '*' or a worker name. Make sure you put your JkMount and your JkUnMount in the same place. Version 1.2.27 allows nicely to check the resulting mounting in the status worker. If it still does not work, post versions and config. Regards, Rainer On Dec 22, 2008, at 3:37 PM, Rainer Jung wrote: On 22.12.2008 13:27, Yuval Perlov wrote: I am trying to configure httpd-tomcat ajp bridge that will catch all requests except for one directory to be served from httpd. Ideally I'd like to map /* to the AJP except for one /staticcontent directory to be served from apache. Has anyone done this? When using mod_jk: JkUnMount /staticcontent/* * - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: server/classes directory in tomcat 6
hi, thank you so much it works. thanks again. Caldarale, Charles R wrote: From: adilturbo [mailto:z_t...@hotmail.com] Subject: server/classes directory in tomcat 6 in tomcat 6, there is no server/classes directory; so where should i put this class (valve) in tomcat 6. For performance and simplicity, the shared, common, and server libraries were merged into one in Tomcat 6; see: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html If your Valve is nested inside a Context you should be able to place the class file in the webapp's WEB-INF/classes directory; otherwise, put it in Tomcat's lib directory. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/server-classes-directory-in-tomcat-6-tp21108060p21129656.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Using precompiled JSPs
1. see my ant script below 2. I didn’t change the jasper’s package name hierarchy (e.g org.apache.jsp) 3. I did update my war’s web.xml with the jspservet mapping with *.jsp 4. I have assisted by http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html target name=compile.jsp taskdef classname=org.apache.jasper.JspC name=jasper classpath fileset dir=${tomcat.home}/lib include name=jasper.jar/ include name=jasper-el.jar/ include name=servlet-api.jar/ include name=jsp-api.jar/ include name=el-api.jar/ /fileset fileset dir=${tomcat.home}/bin include name=tomcat-juli.jar/ /fileset /classpath /taskdef jasper uriRoot={jsp.src} outputDir={temp}/ javac srcdir={temp} destdir=${tomcat.home}/${webapp.path}/WEB-INF/classes debug=on verbose=true classpath … /classpath /javac /target Thanks Moti -- View this message in context: http://www.nabble.com/Using-precompiled-JSPs-tp21124710p21129968.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Using precompiled JSPs
From: motit [mailto:moti@expand.com] Subject: RE: Using precompiled JSPs 1. see my ant script below You should be using the one from the Tomcat doc; yours fails to perform a couple of critical steps. 2. I didn't change the jasper's package name hierarchy (e.g org.apache.jsp) But did you use it when putting your class files under WEB-INF/classes? 3. I did update my war's web.xml with the jspservet mapping with *.jsp Unnecessary and a complete waste of time. It's inclusion of the mappings for the generated servlets that's critical. 4. I have assisted by http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html That's the correct doc, but since you didn't use the published script, you didn't generate the necessary servlet mappings. Use the correct script, and make sure you perform this part: Then, the declarations and mappings for the servlets which were generated during the precompilation must be added to the web application deployment descriptor. Insert the ${webapp.path}/WEB-INF/generated_web.xml at the right place inside the ${webapp.path}/WEB-INF/web.xml file. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 JDBC connection not found
here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) Does anybody know what I am doing wrong? Is there any way to check which resources Tomcat makes avaiable? I am having a really hard time understanding what I am doing wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using precompiled JSPs
http://people.apache.org/~fhanik/precompile.html Filip motit wrote: 1. see my ant script below 2. I didn’t change the jasper’s package name hierarchy (e.g org.apache.jsp) 3. I did update my war’s web.xml with the jspservet mapping with *.jsp 4. I have assisted by http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html target name=compile.jsp taskdef classname=org.apache.jasper.JspC name=jasper classpath fileset dir=${tomcat.home}/lib include name=jasper.jar/ include name=jasper-el.jar/ include name=servlet-api.jar/ include name=jsp-api.jar/ include name=el-api.jar/ /fileset fileset dir=${tomcat.home}/bin include name=tomcat-juli.jar/ /fileset /classpath /taskdef jasper uriRoot={jsp.src} outputDir={temp}/ javac srcdir={temp} destdir=${tomcat.home}/${webapp.path}/WEB-INF/classes debug=on verbose=true classpath … /classpath /javac /target Thanks Moti - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..
Problem1 : While starting tomcat6, sometimes it starts other times it simply hangs on the following message: INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34 AM received in 110 ms. Tomcat Log: INFO: Register manager /ivos to cluster element Engine with name Catalina Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager start INFO: Starting clustering manager at /ivos Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions WARNING: Manager [localhost#/ivos], requesting session state from org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 88, 8, 28}:4002,{10, 88, 8, 28},4002, alive=123501,id={27 -68 111 -64 -49 -117 68 38 -98 -27 -49 39 -22 6 -88 -38 }, payload={}, command={}, domain={}, ]. This operation will timeout if no session state has been received within 60 seconds. Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager waitForSendAllSessions INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34 AM received in 110 ms. -- View this message in context: http://www.nabble.com/Tomcat-6-does-not-start-in-a-cluster.--It-simply-hangs...-Any-Idea..-tp21130862p21130862.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
File Not Found in SSL
Hi, I've just got SSL working on tomcat 5.5.23 but for some reason some static files are not being served on the port 8443 but if I log in on port 8080 without SSL, they files are served up correctly. The files are in webapps/ROOT and do not move but using port 8443 I get the javax.servlet.ServletException: File not found response or a callback exception even though the files are where the options.xml files states that they are. The path is relative so I would have thought that it would see them. Thanks for any help, Iain Iain Emsley -- Scanned by iCritical.
Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..
When this happens, simply take a thread dump, and we can see why it is hanging Unix: kill -3 pid jstack -l pid Windows Ctrl+Break in the console jstack -l pid Filip jsandhu2204 wrote: Problem1 : While starting tomcat6, sometimes it starts other times it simply hangs on the following message: INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34 AM received in 110 ms. Tomcat Log: INFO: Register manager /ivos to cluster element Engine with name Catalina Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager start INFO: Starting clustering manager at /ivos Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions WARNING: Manager [localhost#/ivos], requesting session state from org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 88, 8, 28}:4002,{10, 88, 8, 28},4002, alive=123501,id={27 -68 111 -64 -49 -117 68 38 -98 -27 -49 39 -22 6 -88 -38 }, payload={}, command={}, domain={}, ]. This operation will timeout if no session state has been received within 60 seconds. Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager waitForSendAllSessions INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34 AM received in 110 ms. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Performance with Tomcat
We've been running into some issues lately with our Tomcat 6 instances where performance will slow to a crawl. Unfortunately, no error messages are present in the logs and we really don't know why this is happening. It does appear that the issue is happening when we get a lot of users on the system at one time. It would make sense, but we're only talking about 300 or so concurrent users. There must be a point of misconfiguration on our part but none of us really have any experience with Tomcat outside of simply setting it up and running it out of the box, which isn't much. So, that leads me to why I'm posting to the user list: 1. Are there any tools or utilities we can use to get an understanding of what Tomcat is doing while it's running (processes, memory per process, and more)? 2. I suspect there are some very large Tomcat installations out there. Has any information from those installations been published? Is there a guide or set of documentation on how to scale with Tomcat as a web server? Chris Stewart cstewart...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Performance with Tomcat
From: Chris Stewart [mailto:cstewart...@gmail.com] Subject: Performance with Tomcat 1. Are there any tools or utilities we can use to get an understanding of what Tomcat is doing while it's running (processes, memory per process, and more)? Your symptoms could have any number of causes: heap too small, heap too big, queueing points in the application, data base connection exhaustion, etc. For the first look, use JConsole. If possible, run it on the same platform as Tomcat; otherwise you'll have to set up for remote JMX access, which can be problematic behind firewalls and such. JConsole will give you a good overview of heap, CPU, and thread usage, and you can dig in deeper once you have a general idea of what's going wrong. If you're going through a lot of GCs, you'll probably need a bigger heap - but make sure you have enough RAM on the system to support the heap and the rest of the space needed by the Tomcat process. (Exceeding available RAM will get you into page thrashing.) If your threads are all blocking on the same object (e.g., DB connection pool), you'll need to increase concurrency somehow for that. The jstack tool is good for taking thread dumps on the fly. Both JConsole and jstack are in the Sun JDK. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
problem in getting large object in pooled database
hello I try to develop jsf application with pooled postgresql and tomcat 6. when I try to retrieve large object, I get exception. here is the code that creates exception: PGConnection pgCon = (PGConnection) ((DelegatingConnection)conn).getInnermostDelegate(); java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to org.apache.commons.dbcp.DelegatingConnection what changes should I made ? regards
RE: File Not Found in SSL
From: Emsley, I (Iain) [mailto:iain.ems...@stfc.ac.uk] Subject: File Not Found in SSL I've just got SSL working on tomcat 5.5.23 With or without APR? What platform are you running on? What JRE/JDK are you using? using port 8443 I get the javax.servlet.ServletException: File not found response or a callback exception Post the complete stack trace, not just a fragment of one line. even though the files are where the options.xml files states that they are. What options.xml are you talking about? Standard Tomcat does not include or reference such a file. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Performance with Tomcat
Dear Chris, We've been running into some issues lately with our Tomcat 6 instances where performance will slow to a crawl. Unfortunately, no error messages are present in the logs and we really don't know why this is happening. It does appear that the issue is happening when we get a lot of users on the system at one time. It would make sense, but we're only talking about 300 or so concurrent users. There must be a point of misconfiguration on our part but none of us really have any experience with Tomcat outside of simply setting it up and running it out of the box, which isn't much. So, that leads me to why I'm posting to the user list: 1. Are there any tools or utilities we can use to get an understanding of what Tomcat is doing while it's running (processes, memory per process, and more)? VisualVM, JConsole, Java-monitor.com, many commercial tools. 2. I suspect there are some very large Tomcat installations out there. Has any information from those installations been published? Is there a guide or set of documentation on how to scale with Tomcat as a web server? There is a lot of documentation, but more on tuning Java, rather than Tomcat. Tomcat has surprisingly few tunables that get mentioned on this list. It is pretty lightweight in the sense that there is not a whole lot of Tomcat going on between you and an incoming HTTP request. Most likely, if you tune the underlying VM to your workload, your problems go away (or move to a place that is not your jurisdiction). Perhaps we can help? What is your machine doing when Tomcat is slow? Network/disk I/O- bound? CPU-bound? What percentage is your machine spending in system time, as opposed to user time? -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 The secret of success lies in the stability of the goal. -- Benjamin Disraeli - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 5.5 error
hello all! I am currently using tomcat 5.5 on my labtop which is running on ubuntu. When I access http://localhost:8080/ , i get the default page, which is a good news( meaning tomcat is running) However when I try to place my own html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and then try to reload the page using http://localhost:8080/mms_test , i get this error: HTTP Status 404 - /mms_test -- *type* Status report *message* */mms_test* *description* *The requested resource (/mms_test) is not available.* any idea why? your help is very much appreciated! best regards On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) Does anybody know what I am doing wrong? Is there any way to check which resources Tomcat makes avaiable? I am having a really hard time understanding what I am doing wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 error
On 22 Dec 2008 at 15:43, zia mohades wrote: Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Mon, 22 Dec 2008 15:43:41 -0500 From: zia mohades zia.si...@gmail.com To: Tomcat Users List users@tomcat.apache.org Subject:Tomcat 5.5 error hello all! I am currently using tomcat 5.5 on my labtop which is running on ubuntu. When I access http://localhost:8080/ , i get the default page, which is a good news( meaning tomcat is running) However when I try to place my own html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and then try to reload the page using http://localhost:8080/mms_test , i get this error: HTTP Status 404 - /mms_test You can't put one webapp into another webapp. Put mms_test in /usr/local/tomcat/webapps -Steve O. -- *type* Status report *message* */mms_test* *description* *The requested resource (/mms_test) is not available.* any idea why? your help is very much appreciated! best regards On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how to.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(Data sourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProv ider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider( InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java :89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210 1) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.ja va:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annota tionConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Co nfiguration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hi bernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence .java:52) Does anybody know what I am doing wrong? Is there any way to check which resources Tomcat makes avaiable? I am having a really hard time understanding what I am doing wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe,
Re: Tomcat 6 JDBC connection not found
hey, sorry about that. The actual string I have in my app is workout_logger I just tried to replace my strings for my_jdbc_name for the posting. I guess I forgot to rename the in the error. other than that, do you see anything else wrong? Filip Hanik - Dev Lists wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) Does anybody know what I am doing wrong? Is there any way to check which resources Tomcat makes avaiable? I am having a really hard time understanding what I am doing wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Tomcat-6-JDBC-connection-not-found-tp21120259p21135803.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: problem in getting large object in pooled database
accessToUnderlyingConnectionAllowed=true see exact steps here http://commons.apache.org/dbcp/configuration.html Filip ahmet temiz wrote: hello I try to develop jsf application with pooled postgresql and tomcat 6. when I try to retrieve large object, I get exception. here is the code that creates exception: PGConnection pgCon = (PGConnection) ((DelegatingConnection)conn).getInnermostDelegate(); java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to org.apache.commons.dbcp.DelegatingConnection what changes should I made ? regards - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Performance with Tomcat
On Mon, Dec 22, 2008 at 7:05 PM, Chris Stewart cstewart...@gmail.com wrote: We've been running into some issues lately with our Tomcat 6 instances where performance will slow to a crawl. Unfortunately, no error messages are present in the logs and we really don't know why this is happening. It does appear that the issue is happening when we get a lot of users on the system at one time. It would make sense, but we're only talking about 300 or so concurrent users. There must be a point of misconfiguration on our part but none of us really have any experience with Tomcat outside of simply setting it up and running it out of the box, which isn't much. So, that leads me to why I'm posting to the user list: 1. Are there any tools or utilities we can use to get an understanding of what Tomcat is doing while it's running (processes, memory per process, and more)? there is only one true tool to measure application performance, and this is, ta-dam, moskito (everything else is for monitoring tomcat or jvm, but not the application). Have a look at http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers Btw, we had a similar issue some time ago, because one of the spaces of the gc was running full (old gen due to a memory leak - thanx to chuck for help). Moskito can now show you the space usage in a graphable way ootb, maybe you should try it. Otherwise feel free to contact, since the tool is rather bad documented and truly complex. 2. I suspect there are some very large Tomcat installations out there. Has any information from those installations been published? Is there a guide or set of documentation on how to scale with Tomcat as a web server? Well ... no? I don't know, one of my customers has a peak load of 7-8K requests per second, is that huge? Without knowing what the requests are doing - hard to tell. But there are few large systems out there and even less of them are well managed, and probably none documented... You should look for someone who has done it before and can understand your specific application... regards Leon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 error
Hello steve, thank you for your message! when I try to place mms_test in /usr/local/tomcat/webapps, I get the same error: HTTP Status 404 - /mms_test Any Idea why? thank you for your time! On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani ocha...@ncc.edu wrote: On 22 Dec 2008 at 15:43, zia mohades wrote: Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Mon, 22 Dec 2008 15:43:41 -0500 From: zia mohades zia.si...@gmail.com To: Tomcat Users List users@tomcat.apache.org Subject:Tomcat 5.5 error hello all! I am currently using tomcat 5.5 on my labtop which is running on ubuntu. When I access http://localhost:8080/ , i get the default page, which is a good news( meaning tomcat is running) However when I try to place my own html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and then try to reload the page using http://localhost:8080/mms_test , i get this error: HTTP Status 404 - /mms_test You can't put one webapp into another webapp. Put mms_test in /usr/local/tomcat/webapps -Steve O. -- *type* Status report *message* */mms_test* *description* *The requested resource (/mms_test) is not available.* any idea why? your help is very much appreciated! best regards On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how to.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(Data sourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProv ider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider( InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java :89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210 1) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.ja va:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annota tionConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Co nfiguration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hi bernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence .java:52) Does anybody know what I am doing wrong? Is there any
Re: Tomcat 6 JDBC connection not found
put this Resource name=jdbc/workout_logger auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ inside the GlobalNamingResources in server.xml Put this ResourceLink name=jdbc/workout_logger global=jdbc/workout_logger/ inside the Context elemement in conf/context.xml and try again Filip arturoguedez wrote: hey, sorry about that. The actual string I have in my app is workout_logger I just tried to replace my strings for my_jdbc_name for the posting. I guess I forgot to rename the in the error. other than that, do you see anything else wrong? Filip Hanik - Dev Lists wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) Does anybody know what I am doing wrong? Is there any way to check which resources Tomcat makes avaiable? I am having a really hard time understanding what I am doing wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 error
On 22 Dec 2008 at 18:28, zia mohades wrote: Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Mon, 22 Dec 2008 18:28:12 -0500 From: zia mohades zia.si...@gmail.com To: Tomcat Users List users@tomcat.apache.org Subject:Re: Tomcat 5.5 error Hello steve, thank you for your message! when I try to place mms_test in /usr/local/tomcat/webapps, I get the same error: HTTP Status 404 - /mms_test Any Idea why? Try restarting tomcat, then try to access the webapp again and look at the logs. thank you for your time! On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani ocha...@ncc.edu wrote: On 22 Dec 2008 at 15:43, zia mohades wrote: Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Mon, 22 Dec 2008 15:43:41 -0500 From: zia mohades zia.si...@gmail.com To: Tomcat Users List users@tomcat.apache.org Subject:Tomcat 5.5 error hello all! I am currently using tomcat 5.5 on my labtop which is running on ubuntu. When I access http://localhost:8080/ , i get the default page, which is a good news( meaning tomcat is running) However when I try to place my own html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and then try to reload the page using http://localhost:8080/mms_test , i get this error: HTTP Status 404 - /mms_test You can't put one webapp into another webapp. Put mms_test in /usr/local/tomcat/webapps -Steve O. -- *type* Status report *message* */mms_test* *description* *The requested resource (/mms_test) is not available.* any idea why? your help is very much appreciated! best regards On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how to.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource: jdbc/workout_logger javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(Data sourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProv ider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider( InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java :89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210 1) at
Re: Tomcat 5.5 error
hello steve, Thank you again. I have done the following 1) restarted the server 2) accessed the http://localhost:8080/mms_test again however once I tried to access the log at /usr/local/tomcat/logs , I realized that there is no log file for today, the last one is dated for localhost.2008-10-17.log. But the only thing that I have found for today's date( which doesn't show the correct time) is: -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out I have looked inside , there are bunch of errors for different dates, but again wasn't able to find any error for today's date(let me know if you want, I can copy paste the contents in the file). This is very strange, it seems like the tomcat is unable to register the errors Any ideas what's going on??? I have however using the default tomcat in the ubuntu, do i need to change something else, or reinstall another version?? Thank you kindly for all your help. Daniel On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani ocha...@ncc.edu wrote: On 22 Dec 2008 at 18:28, zia mohades wrote: Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Mon, 22 Dec 2008 18:28:12 -0500 From: zia mohades zia.si...@gmail.com To: Tomcat Users List users@tomcat.apache.org Subject:Re: Tomcat 5.5 error Hello steve, thank you for your message! when I try to place mms_test in /usr/local/tomcat/webapps, I get the same error: HTTP Status 404 - /mms_test Any Idea why? Try restarting tomcat, then try to access the webapp again and look at the logs. thank you for your time! On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani ocha...@ncc.edu wrote: On 22 Dec 2008 at 15:43, zia mohades wrote: Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Mon, 22 Dec 2008 15:43:41 -0500 From: zia mohades zia.si...@gmail.com To: Tomcat Users List users@tomcat.apache.org Subject:Tomcat 5.5 error hello all! I am currently using tomcat 5.5 on my labtop which is running on ubuntu. When I access http://localhost:8080/ , i get the default page, which is a good news( meaning tomcat is running) However when I try to place my own html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and then try to reload the page using http://localhost:8080/mms_test , i get this error: HTTP Status 404 - /mms_test You can't put one webapp into another webapp. Put mms_test in /usr/local/tomcat/webapps -Steve O. -- *type* Status report *message* */mms_test* *description* *The requested resource (/mms_test) is not available.* any idea why? your help is very much appreciated! best regards On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: here is the name you specify res-ref-namejdbc/my_jdbc_name/res-ref-name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasources for Tomcat 6.0.18 in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how to.html and nothing I have done has allowed my web application to view the datasource i have created. Here are some snippets of my web.xml, and my server.xml In the web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/my_jdbc_name/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In server.xml I have tried to place the following snip it anywhere I saw in the docs it could belong to (ei, in the GlobalNamingResources, inside the Host tag, or inside the Context tag in all possible locations (under META-INF/context.xml, under $CATALINA_BASE/conf/[engine]/[host]/[path].xml) and I haven't been successful. Resource name=jdbc/my_jdbc_name auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=user password=password driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/ I am using Entity Managers to get my connections opened, here is the snip it of my persistence.xml persistence-unit name=my_pu_name transaction-type=RESOURCE_LOCAL non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source /persistence-unit Here is what I get in my tomcat logs: 08/12/21
Re: RE: tomcat announce / tomcat security mailing list
Because there isn't one. You can use one of the searchable lists to find announcements (e.g., http://marc.info/?l=tomcat-user, search for ANN), or searching for a subject ann does not work for me on the above link. the results are from other lists. look on the appropriate web page for security: http://tomcat.apache.org/security.html I want to be informed passively because i have other things to than hunting. I use digest mailing list tomcat user so i cannot configure a subject filter. I would have to register a second mail account. That's all too complicated. Why don't You just create one more mailing list. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org