Request for an Immediate Solution
Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline.
Re: Request for an Immediate Solution
which version of tomcat u installed? and which operating system u are using? Saeed - Original Message - From: Sridharan Rajagopalan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:55 AM Subject: Request for an Immediate Solution Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
Joel wrote: What are these BMP files coming from this guy? Well, Craig is not the kind of guy to let a virus run on his machine very long in the first place, and most viruses these days spoof the sender, so it's hard to tell where the compromised machine is. Zou can lookup IP address of the sender from the SMTP headers included in the mail. It might not give you what you want (the ID of the hacked sucker), but it will give you a basic idea where the guy is. But, since you ask, I just checked, and the file is only about 3Kb long, so I scanned it with the anti-virus (nothing) and then took a look at it. (No double-clicking, of course.) It looks like a number underlined, maybe intended for use as a graphic link. It is a damaged W32/Bagle-Zip virus variant. The functional version sends an encrypted ZIP file with the payload (to disable AV scanners) and a BMP with the code to unlock the ZIP. The code is generated each time the file is sent. Craig sure seems to be quiet on the users list these days. Maybe he is on some paradise tropical island, basking in the sun... (sigh). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
it's very simple, verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. the better thing is deploying the jar file is best way. Sridharan Rajagopalan [EMAIL PROTECTED] wrote: Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign!
Re: Request for an Immediate Solution
dear Shiv wish your good health. I have a question: when i run Tomcat4.1.3, the following error message comes, can you plz let me know where the things are wrong and how i can rectify: C:\Apache\Tomcat\bincatalina.bat run Using CATALINA_BASE: D:\Apache\Tomcat Using CATALINA_HOME: D:\Apache\Tomcat Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp Using JAVA_HOME: D:\JDK1.3 [ERROR] Digester - -Begin event threw exception sun.misc.InvalidJarIndexExcepti on: Invalid index!sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas sLoader.java:621) and more like that i am waiting your reply. Thanks in advance. Saeed Programmer - Original Message - From: shiv juluru [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:38 AM Subject: Re: Request for an Immediate Solution it's very simple, verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. the better thing is deploying the jar file is best way. Sridharan Rajagopalan [EMAIL PROTECTED] wrote: Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request for an Immediate Solution
From: Sayeed [mailto:[EMAIL PROTECTED] Subject: Re: Request for an Immediate Solution Using JAVA_HOME: D:\JDK1.3 [ERROR] Digester - -Begin event threw exception sun.misc.InvalidJarIndexExcepti on: Invalid index!sun.misc.InvalidJarIndexException: Invalid index! The Sun 1.3 JDK has known problems in handling indexed jar files. Best if you could move up to the current 1.4.2 level. If not, then at least get 1.3.1 installed on your machine. - Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
i think that is the problem with ur jdk1.3,better to install another jdk or jdk131_03, i think this may solve ur problem shiva Sayeed [EMAIL PROTECTED] wrote: dear Shiv wish your good health. I have a question: when i run Tomcat4.1.3, the following error message comes, can you plz let me know where the things are wrong and how i can rectify: C:\Apache\Tomcat\bincatalina.bat run Using CATALINA_BASE: D:\Apache\Tomcat Using CATALINA_HOME: D:\Apache\Tomcat Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp Using JAVA_HOME: D:\JDK1.3 [ERROR] Digester - -Begin event threw exception on: Invalid index!sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas sLoader.java:621) and more like that i am waiting your reply. Thanks in advance. Saeed Programmer - Original Message - From: shiv juluru To: Tomcat Users List Sent: Wednesday, July 21, 2004 11:38 AM Subject: Re: Request for an Immediate Solution it's very simple, verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. the better thing is deploying the jar file is best way. Sridharan Rajagopalan wrote: Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
Re: tomcat hangs, top displays 99%
Hi, sorry for the late reply, I've been allocated to other projects in the meantime. Nope it doesn't have the header included, but it was worth a shot. Does anybody know where can I find information on how tomcat will respond when the load gets to high? Will it start throwing exceptions, or is there no general response? Also it seems that during stresstesting, tomcat restarts, but I don't know for sure (I see deploy messages). Is it build into tomcat to restart periodically? grtz Hans At 03:04 PM 7/8/2004, Jon Wingfield wrote: Just a thought. Does your error page also have header.jsp included? Have you got yourself into an infinite loop of Session already invalidated IllegalStateExceptions? Jon Hans Wichman wrote: Hi, while stresstesting my application using tomcat 4.1.29, oracle, dbcp connection pooling and a stresstest tool, I see the amount of my connections in my pool fluctuate (as expected). At a certain while I still have plenty connections left in the pool, errors start occuring: org.apache.jasper.JasperException: setAttribute: Session already invalidated and after this has happened for a while (some processing proceeds normally), I get: org.apache.jasper.JasperException: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ... root cause ... javax.servlet.ServletException: at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.header_jsp._jspService(header_jsp.java:293) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at this point tomcat hangs. If I shutdown the stresstest tool, tomcat still displays at 99% when running top (freebsd). Does anybody know why these errors occur, and why after stopping the stresstest, tomcat is still at 99%? I don't see any out of memory errors or something like that, and don't really know where to start exploring the problem. thanks in advance Hans W - 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: Request for an Immediate Solution
Hi Sayeed, TomCat Version is 4.0.3 Operating System is Windows XP Professional Thanks for your Immediate Reply Rajagopalan Sayeed [EMAIL PROTECTED] wrote: which version of tomcat u installed? and which operating system u are using? Saeed - Original Message - From: Sridharan Rajagopalan To: Tomcat Users List Sent: Wednesday, July 21, 2004 10:55 AM Subject: Request for an Immediate Solution Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! India Careers: Over 65,000 jobsonline.
Tomcat suppport JMX ???
Hi all, I just want to know whether we can write JMX objects for the Tomcat Server.. (If so with what version of Tomcat.. ) Thanks Regards, Bimali Ponnamperuma. -- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message.
tomcat restarted
Hi, how can I see whether tomcat has restarted during the night? Is it possible that rotating logs cause tomcat to redeploy a webapplication? thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PersistentManager and Session Update
Hi, I have a problem with the configuration of the PersistentManager and session update times. I would like to share sessions across a cluster (managed outside of Tomcat) by having the PersistentManager write and read session data to and from a database. I tried to configure the PersistentManager to update the session data immediately, and with Tomcat 4.1.24, this works as I would have expected. In Tomcat 5 (the version we use on the production system), the PersistentManager seems to update the session entry every 60 seconds, no matter what I set in the configuration. I have tried this with Tomcat 5.0.19 and 5.0.27, and both with the JDBCStore and the FileStore. What am I missing? My configuration follows below (I have tried it with 0, 1 and -1 as parameters to the time intervals). Thanks for your help! Anna Verena --- Context path=/myapp docBase=D:/project/webapps/myapp debug=0 Manager className=org.apache.catalina.session.PersistentManager checkInterval=1 maxIdleBackup=0 maxIdleSwap=0 minIdleSwap=0 debug=1 Store className=org.apache.catalina.session.JDBCStore debug=1 connectionURL=jdbc:postgresql://mydbserver:5432/tomcat?user=tomcatsessionamp;password=tomcatsession driverName=org.postgresql.Driver sessionTable=tomcatsessions sessionAppCol=appname sessionDataCol=sessiondata sessionIdCol=sessionid sessionLastAccessedCol=lastaccess sessionMaxInactiveCol=maxinactive sessionValidCol=validsession / !-- Store className=org.apache.catalina.session.FileStore debug=4 checkInterval=0 directory=D:/Java/tomcat-temp / -- /Manager /Context Anna Verena Linder TNS Infratest Landsberger Str. 338 D-80687 München t +49 (0) 89 5600 - 1376 e anna-verena.linder mailto:[EMAIL PROTECTED] @tns-infratest.com www.tns-infratest.com http://www.tns-infratest.com/ www.tns-global.com http://www.tns-global.com/ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Re: tomcat restarted
This information should be included in the Catalina logs which are set up in the server.xml file. Mine are set up as so: Logger className=org.apache.catalina.logger.FileLogger directory=/var/log/tomcat prefix=catalina_log. suffix=.txt timestamp=true/ Is it actually possible for tomcat to restart itself? Ie. with no user input? I seem to remember it isn't. If somebody has restarted it, it should be fairly easy to spot in the log files. I'm very certain that rotating logs does not cause tomcat to redeploy, however I've never actually tried. Someone else may be able to back me up / show me up! ;-) Adam. On Wed, 2004-07-21 at 08:51, Hans Wichman wrote: Hi, how can I see whether tomcat has restarted during the night? Is it possible that rotating logs cause tomcat to redeploy a webapplication? thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway. Unit 1, Wear Valley Business Centre, 27 Longfield Road, South Church Enterprise Park, Bishop Auckland. DL14 6XB (01388) 778424 http://www.thegoldenfreeway.com http://www.golduk.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC:ODBC Error while using JNDI Lookup
Hi All, I am using tomcat-4.1.29 standalone with JDK 1.4. I tried to use jdbc:odbc driver to connect to local database using DataSource. But its giving this error: Need help, Regards, RK Singh HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Name jdbc is not bound in this Context at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:534) root cause javax.servlet.ServletException: Name jdbc is not bound in this Context at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.account_jsp._jspService(account_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
access JMX objec
Hi , Can any body tell me how to access a deployed JMX object in Tomcat. Thanks in advance. bimali. -- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5 Log4j non-meaningful thread names in loadbalanced environment vs. Tomcat4
Hi all, i have been using Tomcat 4.x for quite a while and was using log4j for logging purposes with a log4j pattern like this: log4j.appender.logfile.layout.ConversionPattern=%-10r [%t] %d{ISO8601} %-5p %c %x - %m%n In Tomcat4.x with mod_jk1.x the thread names for [%t] I got looked like: [Ajp13Processor[9506][18]] which is obviously quite meaningful, because you can not only see the thread number, but also which ajp processor was used as you can see the port 9506, too. This is quite helpful, if you have a loadbalanced environment and all your log messages are written to one single log file as you an see which Tomcat was involved. Since I'm running Tomcat 5.0.19 with mod_jk2.x, I only get for [%t]: [TP-Processor2] Thus I can only see the thread number, but have not clue which Tomcat was affected. Is this because the naming scheme for threads changed in Tomcat 5 or is it because I forgot to configure something in my Tomcat 5 setup? I have no idea how to get my favorable port:thread number information back in my logs. Anything I can do about this? Hope you can help! Thanks Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
Hi all, Thanks for your immediate reply. I will try the solutions u gave me and will get back to you. But if any other solutions or any suggestions. please mail me. Thanx once again Rajagopalan Sayeed [EMAIL PROTECTED] wrote: dear Shiv wish your good health. I have a question: when i run Tomcat4.1.3, the following error message comes, can you plz let me know where the things are wrong and how i can rectify: C:\Apache\Tomcat\bincatalina.bat run Using CATALINA_BASE: D:\Apache\Tomcat Using CATALINA_HOME: D:\Apache\Tomcat Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp Using JAVA_HOME: D:\JDK1.3 [ERROR] Digester - -Begin event threw exception on: Invalid index!sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas sLoader.java:621) and more like that i am waiting your reply. Thanks in advance. Saeed Programmer - Original Message - From: shiv juluru To: Tomcat Users List Sent: Wednesday, July 21, 2004 11:38 AM Subject: Re: Request for an Immediate Solution it's very simple, verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. the better thing is deploying the jar file is best way. Sridharan Rajagopalan wrote: Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me user name and Password. So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! India Careers: Over 65,000 jobsonline.
RE : RE : RE : RE : how to access Subject after authentification
The command line is ok ! But I have an exception : Caused by: java.io.IOException: Impossible de trouver une configuration de connexion at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) ... 33 more I set JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\conf \Sample_jaas.config The classe that instantiates the login context is located in common/classes The standard Catalina.policy containts this permission grant codeBase file:${catalina.home}/common/- { permission java.security.AllPermission; }; Any ideas ? Thanks in advance! -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 19:52 À : Tomcat Users List Objet : Re: RE : RE : RE : how to access Subject after authentification LERBSCHER Jean-Pierre wrote: Could you tell me what is the correct configuration to access the jaas login file with this security manager. You need to start Tomcat using the -security ./catalina.sh start -security -- Jeanfrancois Thanks -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:42 À : Tomcat Users List Objet : Re: RE : RE : how to access Subject after authentification Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 16:30 To: Tomcat Users List Subject: Re: RE : how to access Subject after authentification Two ways: httpSession.getAttribute(javax.security.auth.subject) or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role user to all of your application): security-constraint web-resource-collection web-resource-namemyApplication/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameuser/role-name /auth-constraint /security-constraint security-role role-nameuser/role-name /security-role see the tomcat docs for more info Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 14:42 To:
Re:
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spoofed emails
I picked up some of yesterdays conversation this morning. I don't know where the hacker is but the attachment usually comes as a white bar bmp file. He appears to be infected with at least the [EMAIL PROTECTED] worm variant, probably other trojans also. -- Adam Buglass, The Golden Freeway. Unit 1, Wear Valley Business Centre, 27 Longfield Road, South Church Enterprise Park, Bishop Auckland. DL14 6XB (01388) 776444 http://www.thegoldenfreeway.com http://www.golduk.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update virtual hosts when server is running
Hi. How do I update the lists of virtual hosts when the server is running (Apache Tomcat) - without restarting the servers? Lars Nielsen Lind
RE : RE : RE : RE : RE : how to access Subject after authentifica tion
In fact my java options are : JAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\conf\Sample_jaas .config -Message d'origine- De : LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 juillet 2004 12:13 À : 'Tomcat Users List' Cc : 'Jeanfrancois Arcand' Objet : RE : RE : RE : RE : how to access Subject after authentification The command line is ok ! But I have an exception : Caused by: java.io.IOException: Impossible de trouver une configuration de connexion at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) ... 33 more I set JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\conf \Sample_jaas.config The classe that instantiates the login context is located in common/classes The standard Catalina.policy containts this permission grant codeBase file:${catalina.home}/common/- { permission java.security.AllPermission; }; Any ideas ? Thanks in advance! -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 19:52 À : Tomcat Users List Objet : Re: RE : RE : RE : how to access Subject after authentification LERBSCHER Jean-Pierre wrote: Could you tell me what is the correct configuration to access the jaas login file with this security manager. You need to start Tomcat using the -security ./catalina.sh start -security -- Jeanfrancois Thanks -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:42 À : Tomcat Users List Objet : Re: RE : RE : how to access Subject after authentification Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 16:30 To: Tomcat Users List Subject: Re: RE : how to access Subject after authentification Two ways: httpSession.getAttribute(javax.security.auth.subject) or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role user to all of your application): security-constraint web-resource-collection web-resource-namemyApplication/web-resource-name url-pattern/*/url-pattern /web-resource-collection
System suggestions? Eclipse / Tomcat / JBoss
Hi everybody Short version: Anybody have suggestions for: IDE HTTP Server App Server (with EJB support) Long version: At work we use IBM Visual Age for Java (VAJ), Domino as an HTTP server (don't ask) and Websphere as an application server. We've been investigating the possibility of switching Eclipse for VAJ instead of upgrading to the next version. We imported our site into Eclipse and it compiled well, we deployed it to a test Domino/Websphere successfully. I've been investigating setting up a variation at home, an IDE, HTTP server, App server, that could be used for our developing/maintaining/running our site, for the purpose of learning more and perhaps coming up with better/cheaper alternatives to VAJ / Websphere. Beginning with Apache, I discovered Tomcat as an app server (as Apache is only an HTTP server). But I understand that Tomcat doesn't do EJB's and I've encountered JBoss. I'm looking for Open Source software, it's cheap. But also, software that's well established in the community, so that it's not likely to fade away. Anybody have suggestions for nice, robust, not too difficult, etc. software? Thanks Cornell Sternbergh PennDOT / BIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache mod_jk and Tomcat
Dear list, we use Apache 1.3, Tomcat 4.1 and mod_jk The first request to my jsp-page shows an Internal Server Error The second Request and all following requests are handled corretly. Is there a possibility to set a timeout for mod_jk? I tried some configurations with Apache.Timeout and Tomcat.Connector.timeout - but with no success. somebody an idea? regards Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Criteria for selecting DBCP settings
Hi, I'm using DBCP-based database connection pooling, via JNDI, with Tomcat 5. Can anyone give me some advice on how to establish the most appropriate values for the parameters: - maxActive - maxIdle - maxWait in the ResourceParams element of server.xml? Thanks, Frank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25
Hi all! I'm pretty new with all of this, so please bear with me on this one.. I currently have tomcat installed using JDK 1.3.1, and all is working well. Unfortunately I need to upgrade to JDK 1.4.2, since it has some features which we need. Somehow I got the idea that it would be enough to shutdown tomcat, set JAVA_HOME, CLASSPATH and PATH env. variables to the new jdk, and startup tomcat again. However this does not work. The catalina.sh script finishes ok, but tomcat hangs.. no http connections to it can be carried out. Both jdks and tomcat was built from the FreeBSD Ports Collection. Am I doing something wrong, or missing something? Kind Regards Steffen Schumacher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25
Hi, maybe a dumm question, but you do have linux compatibility enabled in order to run 1.4.2? In order words, you can execute a java 1.4.2 example program from the command line? greetz Hans At 01:14 PM 7/21/2004, you wrote: Hi all! I'm pretty new with all of this, so please bear with me on this one.. I currently have tomcat installed using JDK 1.3.1, and all is working well. Unfortunately I need to upgrade to JDK 1.4.2, since it has some features which we need. Somehow I got the idea that it would be enough to shutdown tomcat, set JAVA_HOME, CLASSPATH and PATH env. variables to the new jdk, and startup tomcat again. However this does not work. The catalina.sh script finishes ok, but tomcat hangs.. no http connections to it can be carried out. Both jdks and tomcat was built from the FreeBSD Ports Collection. Am I doing something wrong, or missing something? Kind Regards Steffen Schumacher - 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: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25
On 21.07.2004 13:20:54 +, Hans Wichman wrote: Hi, maybe a dumm question, but you do have linux compatibility enabled in order to run 1.4.2? In order words, you can execute a java 1.4.2 example program from the command line? I can run the compiler from the shell does that count? [EMAIL PROTECTED] java -version Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location java version 1.4.2_04 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) greetz Hans At 01:14 PM 7/21/2004, you wrote: Hi all! I'm pretty new with all of this, so please bear with me on this one.. I currently have tomcat installed using JDK 1.3.1, and all is working well. Unfortunately I need to upgrade to JDK 1.4.2, since it has some features which we need. Somehow I got the idea that it would be enough to shutdown tomcat, set JAVA_HOME, CLASSPATH and PATH env. variables to the new jdk, and startup tomcat again. However this does not work. The catalina.sh script finishes ok, but tomcat hangs.. no http connections to it can be carried out. Both jdks and tomcat was built from the FreeBSD Ports Collection. Am I doing something wrong, or missing something? Kind Regards Steffen Schumacher - 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: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
On Tue, Jul 20, 2004 at 04:55:36PM -0700, Wendy Smoak wrote: : My initial thought is that Apache 1.3 and Tomcat 5 are probably getting too : far apart to be compatible, but that's just a suspicion. Good hunch, but the JK plugin abstracts Tomcat from the remote Apache (or IIS, etc) server. Tomcat will talk to anything that speaks the JK protocol, be that mod_jk v1 or v2. : If someone's really bored, maybe a grid that shows what : OS/Apache/connector/Tomcat combinations are known to work would be a good : project. :) Here's a data point, for interested parties: RedHat 9 + Apache 2.x + mod_jk 1.2 + Tomcat 5 FC1 + Apache 2.x + mod_jk 1.2 + Tomcat 5 work like a charm. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with jdbc:odbc in Tomcat 5.025
Iván Escobedo wrote: Ok, thanks for replying, First, both tomcats are running on the same machine, but not at the same time, i just wanted to prove to myself that something's changed in Tomcat 5. Second, Tomcat 4 is running as a standalone, and the other one as a service, and at first I was using a user level DNS, but now i'm using a System DNS, and I have a new error. Third, they are using the exact same configuration. This is the new error: java.sql.SQLException: General error at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6987) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.crstore.admin.AdminDbBean.getDescriptors(AdminDbBean.java:50) at org.apache.jsp.jsp.Menu_jsp._jspService(Menu_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.jsp.Default_jsp._jspService(Default_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.crstore.core.Shopper.doPost(Shopper.java:95) at com.crstore.core.Shopper.doGet(Shopper.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at
Re: not getting connection leak stacktraces
On Tue, Jul 20, 2004 at 10:03:30PM -0400, E wrote: : Tomcat's reporting some connection leaks in my application...but I can't : figure out where they're coming from. Some quick detective work may spot the problem: set the pool's max connections to 1, then use the app. When you uncover all of the leaks, then set the max connections back to normal. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat restarted
On Wed, Jul 21, 2004 at 09:51:40AM +0200, Hans Wichman wrote: : how can I see whether tomcat has restarted during the night? Under a Unix-like OS, you can do a quick-n-dirty check for process info (e.g. ps -ef | grep {tomcat line(s)}) because that should show the process's start time. Wrap that in a shell script that calls an infinite while() loop and logs the info to file. Check it in the morning to see whether the process really restarted. : Is it possible that rotating logs cause tomcat to redeploy a webapplication? Never say never... so I'll say doubtful. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25
FreeBSD uses a OS-specific script (/usr/local/bin/tomcat50ctl) to start and stop tomcat. Its a hardcoded c-executable, but from a ps -ax | grep java, I was able to execute what it did, only using the new jdk instead. But it didn't work: [EMAIL PROTECTED] /usr/local/linux-sun-jdk1.4.2/bin/java -jar -Dcatalina.home=/usr/local/jakarta-tomcat5.0 bin/bootstrap.jar start Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location Jul 21, 2004 1:51:29 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8180 Jul 21, 2004 1:51:30 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1892 ms Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/admin.xml Jul 21, 2004 1:51:32 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Jul 21, 2004 1:51:32 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Jul 21, 2004 1:51:33 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Jul 21, 2004 1:51:35 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/balancer.xml Unexpected Signal : 11 occurred at PC=0x4A6D12C0 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 13232 Heap at VM Abort: Heap def new generation total 576K, used 30K [0x4c77, 0x4c81, 0x4cc5) eden space 512K, 5% used [0x4c77, 0x4c777a40, 0x4c7f) from space 64K, 0% used [0x4c80, 0x4c80, 0x4c81) to space 64K, 0% used [0x4c7f, 0x4c7f, 0x4c80) tenured generation total 4560K, used 2735K [0x4cc5, 0x4d0c4000, 0x5077) the space 4560K, 59% used [0x4cc5, 0x4cefbf48, 0x4cefc000, 0x4d0c4000) compacting perm gen total 6656K, used 6510K [0x5077, 0x50df, 0x5477) the space 6656K, 97% used [0x5077, 0x50dcba58, 0x50dcbc00, 0x50df) Local Time = Wed Jul 21 13:51:35 2004 Elapsed Time = 7 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode) # # An error report file has been saved as hs_err_pid13232.log. # Please refer to the file for further information. # Abort (core dumped) The file reads: Unexpected Signal : 11 occurred at PC=0x4A6D12C0 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 13232 Heap at VM Abort: Heap def new generation total 576K, used 30K [0x4c77, 0x4c81, 0x4cc5) eden space 512K, 5% used [0x4c77, 0x4c777a40, 0x4c7f) from space 64K, 0% used [0x4c80, 0x4c80, 0x4c81) to space 64K, 0% used [0x4c7f, 0x4c7f, 0x4c80) tenured generation total 4560K, used 2735K [0x4cc5, 0x4d0c4000, 0x5077) the space 4560K, 59% used [0x4cc5, 0x4cefbf48, 0x4cefc000, 0x4d0c4000) compacting perm gen total 6656K, used 6510K [0x5077, 0x50df, 0x5477) the space 6656K, 97% used [0x5077, 0x50dcba58, 0x50dcbc00, 0x50df) Local Time = Wed Jul 21 13:51:35 2004 Elapsed Time = 7 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode) # So now I'm trying a different build of the jdk, then the one I'm currently using.. On 21.07.2004 13:20:54 +, Hans Wichman wrote: Hi, maybe a dumm question, but you do have linux compatibility enabled in order to run 1.4.2? In order words, you can execute a java 1.4.2 example program from the command line? greetz Hans At 01:14 PM 7/21/2004, you
Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25
Hi, you might want to check this: http://www.mail-archive.com/[EMAIL PROTECTED]/msg60015.html Which is related to the error displayed: Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location greetz Hans At 02:23 PM 7/21/2004, Steffen Schumacher wrote: FreeBSD uses a OS-specific script (/usr/local/bin/tomcat50ctl) to start and stop tomcat. Its a hardcoded c-executable, but from a ps -ax | grep java, I was able to execute what it did, only using the new jdk instead. But it didn't work: [EMAIL PROTECTED] /usr/local/linux-sun-jdk1.4.2/bin/java -jar -Dcatalina.home=/usr/local/jakarta-tomcat5.0 bin/bootstrap.jar start Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location Jul 21, 2004 1:51:29 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8180 Jul 21, 2004 1:51:30 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1892 ms Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 21, 2004 1:51:30 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/admin.xml Jul 21, 2004 1:51:32 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Jul 21, 2004 1:51:32 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Jul 21, 2004 1:51:33 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Jul 21, 2004 1:51:35 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/balancer.xml Unexpected Signal : 11 occurred at PC=0x4A6D12C0 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 13232 Heap at VM Abort: Heap def new generation total 576K, used 30K [0x4c77, 0x4c81, 0x4cc5) eden space 512K, 5% used [0x4c77, 0x4c777a40, 0x4c7f) from space 64K, 0% used [0x4c80, 0x4c80, 0x4c81) to space 64K, 0% used [0x4c7f, 0x4c7f, 0x4c80) tenured generation total 4560K, used 2735K [0x4cc5, 0x4d0c4000, 0x5077) the space 4560K, 59% used [0x4cc5, 0x4cefbf48, 0x4cefc000, 0x4d0c4000) compacting perm gen total 6656K, used 6510K [0x5077, 0x50df, 0x5477) the space 6656K, 97% used [0x5077, 0x50dcba58, 0x50dcbc00, 0x50df) Local Time = Wed Jul 21 13:51:35 2004 Elapsed Time = 7 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode) # # An error report file has been saved as hs_err_pid13232.log. # Please refer to the file for further information. # Abort (core dumped) The file reads: Unexpected Signal : 11 occurred at PC=0x4A6D12C0 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: Can not get information for pid = 13232 Heap at VM Abort: Heap def new generation total 576K, used 30K [0x4c77, 0x4c81, 0x4cc5) eden space 512K, 5% used [0x4c77, 0x4c777a40, 0x4c7f) from space 64K, 0% used [0x4c80, 0x4c80, 0x4c81) to space 64K, 0% used [0x4c7f, 0x4c7f, 0x4c80) tenured generation total 4560K, used 2735K [0x4cc5, 0x4d0c4000, 0x5077) the space 4560K, 59% used [0x4cc5, 0x4cefbf48, 0x4cefc000, 0x4d0c4000) compacting perm gen total 6656K, used 6510K [0x5077, 0x50df, 0x5477) the space 6656K, 97% used [0x5077, 0x50dcba58, 0x50dcbc00, 0x50df) Local Time = Wed Jul 21 13:51:35 2004 Elapsed Time = 7 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode) # So now I'm trying a different build of the jdk, then the one I'm currently using.. On
Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25
Nope ;-) I didn't see you run it, I saw an error message about the initial thread stack location ;-) see my other mail I just sent At 01:42 PM 7/21/2004, Steffen Schumacher wrote: On 21.07.2004 13:20:54 +, Hans Wichman wrote: Hi, maybe a dumm question, but you do have linux compatibility enabled in order to run 1.4.2? In order words, you can execute a java 1.4.2 example program from the command line? I can run the compiler from the shell does that count? [EMAIL PROTECTED] java -version Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location java version 1.4.2_04 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) greetz Hans At 01:14 PM 7/21/2004, you wrote: Hi all! I'm pretty new with all of this, so please bear with me on this one.. I currently have tomcat installed using JDK 1.3.1, and all is working well. Unfortunately I need to upgrade to JDK 1.4.2, since it has some features which we need. Somehow I got the idea that it would be enough to shutdown tomcat, set JAVA_HOME, CLASSPATH and PATH env. variables to the new jdk, and startup tomcat again. However this does not work. The catalina.sh script finishes ok, but tomcat hangs.. no http connections to it can be carried out. Both jdks and tomcat was built from the FreeBSD Ports Collection. Am I doing something wrong, or missing something? Kind Regards Steffen Schumacher - 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]
Re: Update virtual hosts when server is running
If you are running on linux/unix systems, find the pid for the parent server process and send it a kill -USR1. This will force the parent server to reread the configuration file without actually shutting down or forcefully killing its children. - Dan Obregon - Hi. How do I update the lists of virtual hosts when the server is running (Apache Tomcat) - without restarting the servers? Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Max possible ram usage
Hi everyone, i want to run tomcat (version 5.0.25 and java j2sdk1.4.2_04) on my server with 5 GB RAM. The server is a hp proliant with 2x3.06 Intel Xeon. As i have enough ram i would allow him to use 3 GB at the max. My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. This is the output of my catalina.out logfile: Jul 21, 2004 2:28:12 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. Thank's in advance ... Marcus _ Marcus Albrecht OC-SYS / Systemadministration SYCOR GmbH Heinrich-von-Stephan-Straße 1-5 D - 37073 Göttingen Telefon+49 (0) 551 / 490 - 0 Telefax+49 (0) 551 / 490 - 2000 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.sycor.de http://www.sycor.de/ sycor plastics - die neue Branchenlösung für die Kunststoffindustrie www.sycor-plastics.de Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemäße Empfänger sind, löschen Sie bitte die E-Mail und deren Anhänge sofort und benachrichtigen Sie uns darüber. Die Firma sycor willigt in keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form.
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
I have been able to get the following to work too: Solaris 5.6 + Apache 1.3.x + mod_jk + Tomcat Had to search everywhere for the binaries that would run on Solaris, since I had no luck building them myself. So far, they work just fine - Dan Obregon - On Tue, Jul 20, 2004 at 04:55:36PM -0700, Wendy Smoak wrote: : My initial thought is that Apache 1.3 and Tomcat 5 are probably getting too : far apart to be compatible, but that's just a suspicion. Good hunch, but the JK plugin abstracts Tomcat from the remote Apache (or IIS, etc) server. Tomcat will talk to anything that speaks the JK protocol, be that mod_jk v1 or v2. : If someone's really bored, maybe a grid that shows what : OS/Apache/connector/Tomcat combinations are known to work would be a good : project. :) Here's a data point, for interested parties: RedHat 9 + Apache 2.x + mod_jk 1.2 + Tomcat 5 FC1 + Apache 2.x + mod_jk 1.2 + Tomcat 5 work like a charm. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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: Max possible ram usage
That is just java related. Tomcat has no upper limitations. The maximal memory depends on the vm implementation. You might try a newer version of the jdk or a jdk from a different vendor. -Original Message- From: Albrecht Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Max possible ram usage My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Max possible ram usage
Hi, I actually don't think any stable VM implementation at this time can address more than 2GB. But I'm sure they're all working on it and we'll have 16GB and more soon enough. Don't just use all this memory because you have it, though. Yoav Shapira Millennium Research Informatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 9:00 AM To: Tomcat Users List Subject: RE: Max possible ram usage That is just java related. Tomcat has no upper limitations. The maximal memory depends on the vm implementation. You might try a newer version of the jdk or a jdk from a different vendor. -Original Message- From: Albrecht Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Max possible ram usage My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. - 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 hangs, top displays 99%
Hi, No, it's not built into tomcat to restart without a user command to do so. That'd be pretty bad. How tomcat responds to load depends on where the stress is located. If you're throwing too many connections at it, you'll start getting Connection Refused http error messages from the Coyote connector. Yoav Shapira Millennium Research Informatics -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:56 AM To: Tomcat Users List Subject: Re: tomcat hangs, top displays 99% Hi, sorry for the late reply, I've been allocated to other projects in the meantime. Nope it doesn't have the header included, but it was worth a shot. Does anybody know where can I find information on how tomcat will respond when the load gets to high? Will it start throwing exceptions, or is there no general response? Also it seems that during stresstesting, tomcat restarts, but I don't know for sure (I see deploy messages). Is it build into tomcat to restart periodically? grtz Hans At 03:04 PM 7/8/2004, Jon Wingfield wrote: Just a thought. Does your error page also have header.jsp included? Have you got yourself into an infinite loop of Session already invalidated IllegalStateExceptions? Jon Hans Wichman wrote: Hi, while stresstesting my application using tomcat 4.1.29, oracle, dbcp connection pooling and a stresstest tool, I see the amount of my connections in my pool fluctuate (as expected). At a certain while I still have plenty connections left in the pool, errors start occuring: org.apache.jasper.JasperException: setAttribute: Session already invalidated and after this has happened for a while (some processing proceeds normally), I get: org.apache.jasper.JasperException: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ... root cause ... javax.servlet.ServletException: at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte xtIm pl.java:536) at org.apache.jsp.header_jsp._jspService(header_jsp.java:293) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at this point tomcat hangs. If I shutdown the stresstest tool, tomcat still displays at 99% when running top (freebsd). Does anybody know why these errors occur, and why after stopping the stresstest, tomcat is still at 99%? I don't see any out of memory errors or something like that, and don't really know where to start exploring the problem. thanks in advance Hans W - 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]
RE: tomcat restarted
Hi, I'll back you up ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Adam Buglass [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 4:13 AM To: Tomcat Users List Subject: Re: tomcat restarted This information should be included in the Catalina logs which are set up in the server.xml file. Mine are set up as so: Logger className=org.apache.catalina.logger.FileLogger directory=/var/log/tomcat prefix=catalina_log. suffix=.txt timestamp=true/ Is it actually possible for tomcat to restart itself? Ie. with no user input? I seem to remember it isn't. If somebody has restarted it, it should be fairly easy to spot in the log files. I'm very certain that rotating logs does not cause tomcat to redeploy, however I've never actually tried. Someone else may be able to back me up / show me up! ;-) Adam. On Wed, 2004-07-21 at 08:51, Hans Wichman wrote: Hi, how can I see whether tomcat has restarted during the night? Is it possible that rotating logs cause tomcat to redeploy a webapplication? thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway. Unit 1, Wear Valley Business Centre, 27 Longfield Road, South Church Enterprise Park, Bishop Auckland. DL14 6XB (01388) 778424 http://www.thegoldenfreeway.com http://www.golduk.net - 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]
AW: Max possible ram usage
It could be a matter of JAVA_OPTS=-Xms512m -Xmx3072m Or thomething like this. It seems to be a windows related problem (if you are using windows ;-) Cheers, Gunnar -Ursprüngliche Nachricht- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Juli 2004 15:00 An: Tomcat Users List Betreff: RE: Max possible ram usage That is just java related. Tomcat has no upper limitations. The maximal memory depends on the vm implementation. You might try a newer version of the jdk or a jdk from a different vendor. -Original Message- From: Albrecht Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Max possible ram usage My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. - 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 suppport JMX ???
Hi, Yes, in both tomcat 4 and 5, but the former is much more limited. Yoav Shapira Millennium Research Informatics -Original Message- From: Bimali Ponnamperuma [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:07 AM To: [EMAIL PROTECTED] Subject: Tomcat suppport JMX ??? Hi all, I just want to know whether we can write JMX objects for the Tomcat Server.. (If so with what version of Tomcat.. ) Thanks Regards, Bimali Ponnamperuma. --- --- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Max possible ram usage
Sorry, forgot to mention it. We are running Suse Linux Enterprise 8. -Ursprüngliche Nachricht- Von: Gunnar Pörschke [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Juli 2004 15:01 An: 'Tomcat Users List' Betreff: AW: Max possible ram usage It could be a matter of JAVA_OPTS=-Xms512m -Xmx3072m Or thomething like this. It seems to be a windows related problem (if you are using windows ;-) Cheers, Gunnar -Ursprüngliche Nachricht- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Juli 2004 15:00 An: Tomcat Users List Betreff: RE: Max possible ram usage That is just java related. Tomcat has no upper limitations. The maximal memory depends on the vm implementation. You might try a newer version of the jdk or a jdk from a different vendor. -Original Message- From: Albrecht Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Max possible ram usage My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. - 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] sycor plastics - die neue Branchenlösung für die Kunststoffindustrie www.sycor-plastics.de Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemäße Empfänger sind, löschen Sie bitte die E-Mail und deren Anhänge sofort und benachrichtigen Sie uns darüber. Die Firma sycor willigt in keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Max possible ram usage
In addition, you also need to ensure that there is enough RAM left for the OS to use when assigning native heap. AFAIK the general rul of thumb is to have the same anount of RAM you assign to the JAVA HEAP left to the OS for the native heap. Carl -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:00 PM To: Tomcat Users List Subject: RE: Max possible ram usage That is just java related. Tomcat has no upper limitations. The maximal memory depends on the vm implementation. You might try a newer version of the jdk or a jdk from a different vendor. -Original Message- From: Albrecht Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Max possible ram usage My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. - 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]
tomcat5 does not find properties file in webapp
Hi, what is the reason, that tomcat5 (5.0.25) does not read my properties file, which I placed in $WEBAPP/WEB-INF/classes/my.properties when I try to access it the following way: Properties p = new Properties(); p.load(MyServiceImpl.class.getResourceAsStream(/my.properties)); If I try to determing the position of the resource the following way: URL u = MyServiceImpl.class.getResource(/my.properties); u is null here. Thank you very much in advance Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System suggestions? Eclipse / Tomcat / JBoss
It sounds like you are on the right track. If you are doing EJBs, then you can use JBoss. Tomcat is just a servlet container. You may also want to consider (when its ready) Apache/Jakarta's J2EE app server. I think it is called Geronimo. JBoss comes in different flavors. We have used the one with Tomcat built in (to handle servlets).Eventually we will want to hook this up to Apache. We have NOT had much success in getting Tomcat to work well with Apache. I would advice against going down that path (especially if you are on Linux). Someday we will probably try to get JBoss to work with Apache and I dread the day. I am hoping the JBoss documentation and support people will be helpful. Unfortunately, the Jakarta Tomcat group is one of the worst open source efforts I have seen. My guess is that the do-ocracy has turned into a political mess there, with the most ineffective people providing the interface to the (developer) public. There are lots of commercial alternatives to JBoss. For developer purposes, you can download and utilize just about any J2EE app server for free. The following companies provide developer versions of their app servers: BEA (Weblogic), Macromedia (JRun), and Oracle (iAS). The appealing thing about using one of these, is that you can say that you have experience on them. Since they seem to be used by larger, more established companies, that may translate into some dollars for you when seeking a new job (unless JBoss can break into these markets). If you are doing EJBs, then you'll need more than Eclipse. We have used the MyEclipse plugin and it is very nice. It is a commercial product and we licensed it for something like $29 per user (about 1/100th the cost of JBuilder!). It includes all the stuff (XDoclet, etc...) for deploying a bean (setting up the deplopyment descriptors) and doing servlets/JSPs. I have heard good things about another J2EE pluging called Lomboz. You may want to check that out. The thing I like about Eclipse is that it hides a lot of Java technologies from you. Thinks like Ant and XDoclet are a feat to learn on their own. However, the development environment hides most of these items from you. Good luck. Mike Hi everybody Short version: Anybody have suggestions for: IDE HTTP Server App Server (with EJB support) Long version: At work we use IBM Visual Age for Java (VAJ), Domino as an HTTP server (don't ask) and Websphere as an application server. We've been investigating the possibility of switching Eclipse for VAJ instead of upgrading to the next version. We imported our site into Eclipse and it compiled well, we deployed it to a test Domino/Websphere successfully. I've been investigating setting up a variation at home, an IDE, HTTP server, App server, that could be used for our developing/maintaining/running our site, for the purpose of learning more and perhaps coming up with better/cheaper alternatives to VAJ / Websphere. Beginning with Apache, I discovered Tomcat as an app server (as Apache is only an HTTP server). But I understand that Tomcat doesn't do EJB's and I've encountered JBoss. I'm looking for Open Source software, it's cheap. But also, software that's well established in the community, so that it's not likely to fade away. Anybody have suggestions for nice, robust, not too difficult, etc. software? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat5 does not find properties file in webapp
Hi, No reason -- it should work, and it works for me ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Lorenz, Christoph [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 9:15 AM To: 'Tomcat Users List' Subject: tomcat5 does not find properties file in webapp Hi, what is the reason, that tomcat5 (5.0.25) does not read my properties file, which I placed in $WEBAPP/WEB-INF/classes/my.properties when I try to access it the following way: Properties p = new Properties(); p.load(MyServiceImpl.class.getResourceAsStream(/my.properties)); If I try to determing the position of the resource the following way: URL u = MyServiceImpl.class.getResource(/my.properties); u is null here. Thank you very much in advance Christoph - 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: tomcat5 does not find properties file in webapp
Hi, do you have rights to read the property file? Is the codebase for the MyServiceImpl class equal to $WEBAPP/WEB-INF/classes/? greetz Hans At 03:15 PM 7/21/2004, Lorenz, Christoph wrote: Hi, what is the reason, that tomcat5 (5.0.25) does not read my properties file, which I placed in $WEBAPP/WEB-INF/classes/my.properties when I try to access it the following way: Properties p = new Properties(); p.load(MyServiceImpl.class.getResourceAsStream(/my.properties)); If I try to determing the position of the resource the following way: URL u = MyServiceImpl.class.getResource(/my.properties); u is null here. Thank you very much in advance Christoph - 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: z/OSS-USS and -Dfile.encoding
Hi William, Thanks for the info. I will try what you did. We are also just getting started with Tomcat on z/OS. If I find out anything more I will let you know. Cindy _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:32 AM To: [EMAIL PROTECTED] Subject: RE: z/OSS-USS and -Dfile.encoding Hi Cindy, Compared to what I expected from the information on the MVS-OE list it was quite simple. I just unzipped the binary file and then re-unzipped the contents of the shell scripts in EBCDIC: unzip -q downloads/jakarta-tomcat-5.0.27.zip unzip -aa downloads/jakarta-tomcat-5.0.27.zip jakarta-tomcat-5.0.27/bin/*.sh Beyond that I only needed JAVA_HOME set; the startup.sh script sets CATALINA_HOME. As I said in my posting Tomcat seemed to work, but I could not get anthill to work; however we did get rant to work in a simple test. Beyond that I know next to nothing about Tomcat. In general this idiom of unzipping binaries and then unzipping any shell scripts as EBCDIC seems to work. Hope that helps, www -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 21:32 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: z/OSS-USS and -Dfile.encoding Hi William, We have just started trying to get Tomcat 5.0.27 to work on z/OS 1.4 ourselves. I have untarred the jakarta-tomcat-5.0.27.tar file and it created the jakarta-tomcat-5.0.27 directory structure. I have set up the JAVA_HOME and CATALINA_HOME environmental variables. I have looked at the scripts in the bin directory by moving them down to my PC since they are in ASCII and I can not view them in OMVS. I am interested in what script you run to startup Tomcat, did you change any scripts or other files into EBCDIC?? When I run startup.sh, left in ASCII, I get the following error: startup.sh 1: FSUM7729 missing closing ` Thanks Cindy The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Max possible ram usage
Albrecht Marcus wrote: Hi everyone, i want to run tomcat (version 5.0.25 and java j2sdk1.4.2_04) on my server with 5 GB RAM. The server is a hp proliant with 2x3.06 Intel Xeon. As i have enough ram i would allow him to use 3 GB at the max. My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. This is the output of my catalina.out logfile: Jul 21, 2004 2:28:12 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. Thank's in advance ... Marcus _ Marcus Albrecht OC-SYS / Systemadministration SYCOR GmbH Heinrich-von-Stephan-Straße 1-5 D - 37073 Göttingen Telefon+49 (0) 551 / 490 - 0 Telefax+49 (0) 551 / 490 - 2000 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.sycor.de http://www.sycor.de/ sycor plastics - die neue Branchenlösung für die Kunststoffindustrie www.sycor-plastics.de Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemäße Empfänger sind, löschen Sie bitte die E-Mail und deren Anhänge sofort und benachrichtigen Sie uns darüber. Die Firma sycor willigt in keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. Well, the real issue is with IA32. IA32 systems currently only support up to 4GB of RAM per process (there are some software patches that trick this, but I don't know if there are any for windows or not..there are some for linux, but I've only read about them). The OS kernel will use up the other 2GB and leaves you with 2GB (kernel has to be able to manage the memory...page and swap). So unless you get an AMD32/64 or an Intel Itanium this is the limit you will face with the system you have for all processes (on 32/64 you'll need a 64-bit JVM...I think Sun makes one). Of course a PowerPC64 or a Sparc64 would be able to do the same. You could use the nio package in your application if you need to and create yourself some shared memory buffers and under neith this use some special file maps or shared memory to get around the memory issues, but more than likely you'll never really need that much memory. If you really do then what you really need to do is to create some special memory class that will use a special shared memory resource for the operations that require huge amounts of memory and you will have to manage multiple chunks for shared memory pretty much. This will also require you to write some native code. basically you would make an implementation of java.nio.channels.FileChannel. Linux* The large memory kernel patch may or may not help you...depends on the 32-bit JVM and how it is written. I doubt it would address more space with a patch, though I would say that sooner or later there will be one that will when large memory addressing processes become more popular. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Max possible ram usage
Wade Chandler wrote: Albrecht Marcus wrote: Hi everyone, i want to run tomcat (version 5.0.25 and java j2sdk1.4.2_04) on my server with 5 GB RAM. The server is a hp proliant with 2x3.06 Intel Xeon. As i have enough ram i would allow him to use 3 GB at the max. My java options are JAVA_OPTS=-Xms512m -Xmx3072m The tomcat won't start with this options. This is the output of my catalina.out logfile: Jul 21, 2004 2:28:12 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Error occurred during initialization of VM Could not reserve enough space for object heap If i lower the max value i get it running with a max of 1792 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m). Can anyone tell me the max ram size that tomcat/java can use? I have't found that information anywhere on the net or mailing lists. Thank's in advance ... Marcus _ Marcus Albrecht OC-SYS / Systemadministration SYCOR GmbH Heinrich-von-Stephan-Straße 1-5 D - 37073 Göttingen Telefon+49 (0) 551 / 490 - 0 Telefax+49 (0) 551 / 490 - 2000 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.sycor.de http://www.sycor.de/ sycor plastics - die neue Branchenlösung für die Kunststoffindustrie www.sycor-plastics.de Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemäße Empfänger sind, löschen Sie bitte die E-Mail und deren Anhänge sofort und benachrichtigen Sie uns darüber. Die Firma sycor willigt in keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. Well, the real issue is with IA32. IA32 systems currently only support up to 4GB of RAM per process (there are some software patches that trick this, but I don't know if there are any for windows or not..there are some for linux, but I've only read about them). The OS kernel will use up the other 2GB and leaves you with 2GB (kernel has to be able to manage the memory...page and swap). So unless you get an AMD32/64 or an Intel Itanium this is the limit you will face with the system you have for all processes (on 32/64 you'll need a 64-bit JVM...I think Sun makes one). Of course a PowerPC64 or a Sparc64 would be able to do the same. You could use the nio package in your application if you need to and create yourself some shared memory buffers and under neith this use some special file maps or shared memory to get around the memory issues, but more than likely you'll never really need that much memory. If you really do then what you really need to do is to create some special memory class that will use a special shared memory resource for the operations that require huge amounts of memory and you will have to manage multiple chunks for shared memory pretty much. This will also require you to write some native code. basically you would make an implementation of java.nio.channels.FileChannel. Linux* The large memory kernel patch may or may not help you...depends on the 32-bit JVM and how it is written. I doubt it would address more space with a patch, though I would say that sooner or later there will be one that will when large memory addressing processes become more popular. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Almost forgot...you also need to leave room for the JVM in the memory you allocate for the max. Else it won't be able to peform properly it's own management tasks. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat5 does not find properties file in webapp
If MyServiceImpl.class was loaded by a common/lib classloader, would it be able to find resources in the WEB-INF/ classloader ? (Do classloaders work that way?) -Original Message- From: Lorenz, Christoph [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 8:15 AM To: 'Tomcat Users List' Subject: tomcat5 does not find properties file in webapp Hi, what is the reason, that tomcat5 (5.0.25) does not read my properties file, which I placed in $WEBAPP/WEB-INF/classes/my.properties when I try to access it the following way: Properties p = new Properties(); p.load(MyServiceImpl.class.getResourceAsStream(/my.properties)); If I try to determing the position of the resource the following way: URL u = MyServiceImpl.class.getResource(/my.properties); u is null here. Thank you very much in advance Christoph - 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: CRUD Operations using Tomcat
I have read a lot about Struts, Hibernate and DAO. But these aproachs are too verbose, I mean manually define XML configs, jsp pages, actions... I was looking for some tool which I point to my database schema and it produces the bunch of code. It would be good if it was tied to a data dictionary that could dynamically change checks and labels. Valter - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 8:25 PM Subject: Re: CRUD Operations using Tomcat From: Valter G. Nogueira Jr. [EMAIL PROTECTED] I am looking for good ways to implements CRUD ops using Tomcat Having handcrafted jsp/servlets almost identicals seems to be not only boring, but an error prone aproach. How are you doing it now? Do you have JDBC code inside your Servlets? I use Struts, and on that users list we often get the same sort of question, How do I read and write records using Struts? The answer is the same-- you don't. You do your data access in a separate layer of code so that nothing in the Action [or Servlet] even knows that a database exists. There are several options available if you're using JDBC-- I think Hibernate is one? I wrote my own and followed the J2EE Data Access Objects pattern. So in my Actions I have code along the lines of: Person person = personDAO.read( 12345 ); HTH, -- Wendy Smoak - 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]
iis, jk2, virtual hosts.
Greetings, Does the jk2 adapter, and workers2.properties support virtual hosts? I have a few domains which are configured as virt. hosts with iis, and i'd like them all to connect to a different context on the tomcat backend via jk2/ajp13. can virtual hosts be configured in the workers2.properties file? i don't want to create and deploy multiple dll's/workers2.properties file if it's not necessary. thanks. -sd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat5 does not find properties file in webapp
In the case, I think you would need to say: Thread.currentThread().getContextClassLoader().getResourceAsStream() -Tim Mike Curwen wrote: If MyServiceImpl.class was loaded by a common/lib classloader, would it be able to find resources in the WEB-INF/ classloader ? (Do classloaders work that way?) -Original Message- From: Lorenz, Christoph [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 8:15 AM To: 'Tomcat Users List' Subject: tomcat5 does not find properties file in webapp Hi, what is the reason, that tomcat5 (5.0.25) does not read my properties file, which I placed in $WEBAPP/WEB-INF/classes/my.properties when I try to access it the following way: Properties p = new Properties(); p.load(MyServiceImpl.class.getResourceAsStream(/my.properties)); If I try to determing the position of the resource the following way: URL u = MyServiceImpl.class.getResource(/my.properties); u is null here. Thank you very much in advance Christoph - 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: AW: Tomcat 4.1.24 + Security Manager + weird Exceptions
I'm experiencing this same issue. I've got Tomcat 5.0.27, Apache 2.0.46, and jk2 version 2.0.4. Has there been any solution? It occurs primarily under heavy load. -Joshua Szmajda We've got a similar issue, though this in on Linux and using channelUnix/JNI instead of normal tcp channelSocket. We're using Apache2/mod_jk2 (built from tomcat-connectors-1.1M1). On heavy load, there are over 3000 sockets open by one Tomcat/JVM, they don't seem to go down again too while Tomcat is running. (since File Descriptor limit on Solaris is lower normally (1024 or summat i think) this would cause us heavy problems there too) The Tomcats and Apache are restarted during the night to free up Memory, so socket count goes down then. However the application doesn't seem to be affected by this. In catalina.out there are many errors like this: org.apache.jk.common.ChannelUn receive SEVERE: receive error: 12 java.lang.Throwable at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:230) at org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:282) at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:350) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631) at java.lang.Thread.run(Thread.java:536) org.apache.jk.common.JniHandler nativeDispatch SEVERE: nativeDispatch: error -3 java.lang.Throwable at org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:312) at org.apache.jk.common.ChannelUn.send(ChannelUn.java:221) at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:306) at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:249) at org.apache.coyote.Response.doWrite(Response.java:530) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) . - 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]
mod_jk errors in Apache error log
Hey All, I googled for this problem, and found a few others asking the same question, but no answers. I think it has been asked here before, but I couldn't find the replies to the question. I'm getting the following in my apache error log: [Wed Jul 21 02:36:42 2004] [error] mod_jk child workerEnv in error state 3 As far as I can tell, everything is working ok. Also, the number at the end seems to change randomly. One day it says error state 1, the next it's error state 48, etc. This wouldn't be a big deal, but I get this message several hundred times a day. Any help would be greatly appreciated. Jason Martens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk errors in Apache error log
Sorry, forgot version information... Apache 2.0.50 Tomcat 4.1.29 mod_jk2 (not sure of version) RHEL 2.1 On Wed, 2004-07-21 at 09:16, Martens, Jason wrote: Hey All, I googled for this problem, and found a few others asking the same question, but no answers. I think it has been asked here before, but I couldn't find the replies to the question. I'm getting the following in my apache error log: [Wed Jul 21 02:36:42 2004] [error] mod_jk child workerEnv in error state 3 As far as I can tell, everything is working ok. Also, the number at the end seems to change randomly. One day it says error state 1, the next it's error state 48, etc. This wouldn't be a big deal, but I get this message several hundred times a day. Any help would be greatly appreciated. Jason Martens - 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]
list Tomcat 5.0 deployed applications with jsp.
Hi all, I'm using this way to list the deployed applications throw jsp. can anyone tell me if there is a better way to do that(without substring because that might cause some errors): Registry registry=Registry.getRegistry(); MBeanServer mBeanServer =Registry.getRegistry().getServer(); java.util.Set set = mBeanServer.queryNames(new ObjectName(Catalina:type=Manager,*), null); java.util.Iterator it = set.iterator(); while (it.hasNext()) { String kunde=it.next().toString(); kunde = kunde.substring((kunde.indexOf('/')+1),(kunde.lastIndexOf(','))); } the substring() catches only the name as for example: Catalina:type=Manager,path=/helloweb,host=localhost will list helloweb Thanks. Younes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Web apply re-deploy is removing symbolic links
Any ideas on symbolic links getting removed by Tomcat re-deploying the application? - Original Message - From: Brian Moynihan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 19, 2004 11:26 AM Subject: Web apply re-deploy is removing symbolic links Hi all, I have a tomcat web application which contains symbolic links to critical data contained in directories outside of tomcat. When I redeploy the tomcat web application the data contained in the folders outside of tomcat is getting removed. Is there any way to get Tomcat to remove these symbolic links automcatically before redeploying the web application, maybe using the web.xml file? Any help or links to articles etc would be very much appreciated. Regards, Brian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System suggestions? Eclipse / Tomcat / JBoss
Thanks IBM also provides, or did, single user versions of Websphere, free, for developer use, good for unit testing. But the production, and system test, servers would have to run full price software. -Original Message- From: Michael DiChiappari [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 09:18 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: System suggestions? Eclipse / Tomcat / JBoss It sounds like you are on the right track. If you are doing EJBs, then you can use JBoss. Tomcat is just a servlet container. You may also want to consider (when its ready) Apache/Jakarta's J2EE app server. I think it is called Geronimo. JBoss comes in different flavors. We have used the one with Tomcat built in (to handle servlets).Eventually we will want to hook this up to Apache. We have NOT had much success in getting Tomcat to work well with Apache. I would advice against going down that path (especially if you are on Linux). Someday we will probably try to get JBoss to work with Apache and I dread the day. I am hoping the JBoss documentation and support people will be helpful. Unfortunately, the Jakarta Tomcat group is one of the worst open source efforts I have seen. My guess is that the do-ocracy has turned into a political mess there, with the most ineffective people providing the interface to the (developer) public. There are lots of commercial alternatives to JBoss. For developer purposes, you can download and utilize just about any J2EE app server for free. The following companies provide developer versions of their app servers: BEA (Weblogic), Macromedia (JRun), and Oracle (iAS). The appealing thing about using one of these, is that you can say that you have experience on them. Since they seem to be used by larger, more established companies, that may translate into some dollars for you when seeking a new job (unless JBoss can break into these markets). If you are doing EJBs, then you'll need more than Eclipse. We have used the MyEclipse plugin and it is very nice. It is a commercial product and we licensed it for something like $29 per user (about 1/100th the cost of JBuilder!). It includes all the stuff (XDoclet, etc...) for deploying a bean (setting up the deplopyment descriptors) and doing servlets/JSPs. I have heard good things about another J2EE pluging called Lomboz. You may want to check that out. The thing I like about Eclipse is that it hides a lot of Java technologies from you. Thinks like Ant and XDoclet are a feat to learn on their own. However, the development environment hides most of these items from you. Good luck. Mike Hi everybody Short version: Anybody have suggestions for: IDE HTTP Server App Server (with EJB support) Long version: At work we use IBM Visual Age for Java (VAJ), Domino as an HTTP server (don't ask) and Websphere as an application server. We've been investigating the possibility of switching Eclipse for VAJ instead of upgrading to the next version. We imported our site into Eclipse and it compiled well, we deployed it to a test Domino/Websphere successfully. I've been investigating setting up a variation at home, an IDE, HTTP server, App server, that could be used for our developing/maintaining/running our site, for the purpose of learning more and perhaps coming up with better/cheaper alternatives to VAJ / Websphere. Beginning with Apache, I discovered Tomcat as an app server (as Apache is only an HTTP server). But I understand that Tomcat doesn't do EJB's and I've encountered JBoss. I'm looking for Open Source software, it's cheap. But also, software that's well established in the community, so that it's not likely to fade away. Anybody have suggestions for nice, robust, not too difficult, etc. software? - 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]
Problem deploying on Tomcat 5.0.27
I have Tomcat 5.0.27 installed and setup on SuSE Linux 9.0 running on an Intel based system. I am trying to deploy a war file that contains a context.xml file in its META-INF directory by placing the war file in the webapps directory and starting Tomcat. This same setup worked on Tomcat 5.0.25 on Windows, but on Tomcat 5.0.27 the application is deployed incorrectly. Instead of creating a XML file in $CATALINA_HOME/conf/Catalina/localhost it creates a directory named projectName.xml. I noticed that this was introduced in 5.0.26 as part of the fix to Bug 29038, are there any plans to integrate Peter Rossbach's patch? The original bug (which was unrelated) was resolved, so I don't know if there has been any action taken to correct this. Thanks, Victor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem deploying on Tomcat 5.0.27
Hi, A modified version of Senor Rossbach's patch will probably be integreated into 5.0.28. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:27 AM To: [EMAIL PROTECTED] Subject: Problem deploying on Tomcat 5.0.27 I have Tomcat 5.0.27 installed and setup on SuSE Linux 9.0 running on an Intel based system. I am trying to deploy a war file that contains a context.xml file in its META-INF directory by placing the war file in the webapps directory and starting Tomcat. This same setup worked on Tomcat 5.0.25 on Windows, but on Tomcat 5.0.27 the application is deployed incorrectly. Instead of creating a XML file in $CATALINA_HOME/conf/Catalina/localhost it creates a directory named projectName.xml. I noticed that this was introduced in 5.0.26 as part of the fix to Bug 29038, are there any plans to integrate Peter Rossbach's patch? The original bug (which was unrelated) was resolved, so I don't know if there has been any action taken to correct this. Thanks, Victor - 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: Problem deploying on Tomcat 5.0.27
On Wed, 21 Jul 2004 10:30 , Shapira, Yoav [EMAIL PROTECTED] sent: Hi, A modified version of Senor Rossbach's patch will probably be integreated into 5.0.28. Hi Yoav, Thanks for the quick reply. Is there a workaround for now, or should I just downgrade to 5.0.25? Victor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spoofed emails
I have seen a lot of these things lately. Glad I moved to OSX!! On 7/21/04 6:38 AM, Adam Buglass [EMAIL PROTECTED] wrote: I picked up some of yesterdays conversation this morning. I don't know where the hacker is but the attachment usually comes as a white bar bmp file. He appears to be infected with at least the [EMAIL PROTECTED] worm variant, probably other trojans also. -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
documentation on installing two instances of tomcat
Is there any documentation on running two instances of tomcat on the same Win2000 server and same IP but different ports? Joon Yoo Systems Administrator Ladas Parry LLC 26 West 61st Street New York, NY 10023 tel: (212) 708-1854 fax: (212) 246-8959
Re: System suggestions? Eclipse / Tomcat / JBoss
In case I gave you a rosy picture of websphere and MQSeries, there are known bugs with MQSeries jms client. It is one of the most scalable messaging systems, but it is not without bugs like all software. a good friend of mine has encountered several (3) bugs with IBM's jms client, which required a specific patch from IBM. the best way to know is obviously run a test for your needs and see if jboss meets the requirements :) peter On Wed, 21 Jul 2004 10:25:12 -0400, Sternbergh, Cornell [EMAIL PROTECTED] wrote: Thanks IBM also provides, or did, single user versions of Websphere, free, for developer use, good for unit testing. But the production, and system test, servers would have to run full price software. -Original Message- From: Michael DiChiappari [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 09:18 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: System suggestions? Eclipse / Tomcat / JBoss It sounds like you are on the right track. If you are doing EJBs, then you can use JBoss. Tomcat is just a servlet container. You may also want to consider (when its ready) Apache/Jakarta's J2EE app server. I think it is called Geronimo. JBoss comes in different flavors. We have used the one with Tomcat built in (to handle servlets).Eventually we will want to hook this up to Apache. We have NOT had much success in getting Tomcat to work well with Apache. I would advice against going down that path (especially if you are on Linux). Someday we will probably try to get JBoss to work with Apache and I dread the day. I am hoping the JBoss documentation and support people will be helpful. Unfortunately, the Jakarta Tomcat group is one of the worst open source efforts I have seen. My guess is that the do-ocracy has turned into a political mess there, with the most ineffective people providing the interface to the (developer) public. There are lots of commercial alternatives to JBoss. For developer purposes, you can download and utilize just about any J2EE app server for free. The following companies provide developer versions of their app servers: BEA (Weblogic), Macromedia (JRun), and Oracle (iAS). The appealing thing about using one of these, is that you can say that you have experience on them. Since they seem to be used by larger, more established companies, that may translate into some dollars for you when seeking a new job (unless JBoss can break into these markets). If you are doing EJBs, then you'll need more than Eclipse. We have used the MyEclipse plugin and it is very nice. It is a commercial product and we licensed it for something like $29 per user (about 1/100th the cost of JBuilder!). It includes all the stuff (XDoclet, etc...) for deploying a bean (setting up the deplopyment descriptors) and doing servlets/JSPs. I have heard good things about another J2EE pluging called Lomboz. You may want to check that out. The thing I like about Eclipse is that it hides a lot of Java technologies from you. Thinks like Ant and XDoclet are a feat to learn on their own. However, the development environment hides most of these items from you. Good luck. Mike Hi everybody Short version: Anybody have suggestions for: IDE HTTP Server App Server (with EJB support) Long version: At work we use IBM Visual Age for Java (VAJ), Domino as an HTTP server (don't ask) and Websphere as an application server. We've been investigating the possibility of switching Eclipse for VAJ instead of upgrading to the next version. We imported our site into Eclipse and it compiled well, we deployed it to a test Domino/Websphere successfully. I've been investigating setting up a variation at home, an IDE, HTTP server, App server, that could be used for our developing/maintaining/running our site, for the purpose of learning more and perhaps coming up with better/cheaper alternatives to VAJ / Websphere. Beginning with Apache, I discovered Tomcat as an app server (as Apache is only an HTTP server). But I understand that Tomcat doesn't do EJB's and I've encountered JBoss. I'm looking for Open Source software, it's cheap. But also, software that's well established in the community, so that it's not likely to fade away. Anybody have suggestions for nice, robust, not too difficult, etc. software? - 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: documentation on installing two instances of tomcat
Hi, Here's some: - Download tomcat .zip - Unpack first installation to a directory of your choice, ports will be 8080 and 8005 by default - Unpack second installation to a different directory of your choice - Edit conf/server.xml of the second installation to something other than 8005 and 8080, say 8006 and 8081. - That's it. Yoav Shapira Millennium Research Informatics -Original Message- From: Yoo, Joon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:55 AM To: ([EMAIL PROTECTED]) Subject: documentation on installing two instances of tomcat Is there any documentation on running two instances of tomcat on the same Win2000 server and same IP but different ports? Joon Yoo Systems Administrator Ladas Parry LLC 26 West 61st Street New York, NY 10023 tel: (212) 708-1854 fax: (212) 246-8959 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with configuration
I am having a problem with making TomCat work with an existing installation of Apache 1.3.26. I installed TomCat 4 with the self extraction.exe and followed the instructions on the JohnTurner.com website to install it. I then installed the Mod_jk connector, and configured the httpd.conf in apache as per the instructions. The problem is I cannot go anywhere on port 8080 or anything with tomcat at all when trying to access via web browser. I created a JSP sample and placed in the webspace, and all I am prompted for is to open or save the file. It does not parse it. The Server is an Windows 2000 box. I have 5 virtualhosts setup for web space (web1-5) on 5 IP's, plus the ip for the machine and local host. Below is the sections in httpd.conf which are for tomcat. Listen x.x.x.33:80 Listen x.x.x.1:80 Listen x.x.x.2:80 Listen x.x.x.3:80 Listen x.x.x.4:80 Listen x.x.x.5:80 Listen localhost:80 Listen localhost:8080 Listen localhost:8009 Listen localhost:8008 Listen 80 Listen 8080 Listen 8008 Listen 8009 LoadModule jk_module D:/IBserver/apache/modules/mod_jk.dll AddModule mod_jk.c DocumentRoot D:/IBserver/www VirtualHost localhost ServerAdmin [EMAIL PROTECTED] DocumentRoot D:/IBserver/www ServerName localhost ErrorLog logs/localhost.com-error_log CustomLog logs/localhost.com-access_log common /VirtualHost VirtualHost x.33 ServerAdmin [EMAIL PROTECTED] DocumentRoot D:/IBserver/www ServerName x.x.x.33 ErrorLog logs/x.33.com-error_log CustomLog logs/x.33.com-access_log common /VirtualHost VirtualHost x.x.x.1 ServerAdmin [EMAIL PROTECTED] DocumentRoot D:/IBserver/www/web1 ServerName x.x.x.1 ErrorLog logs/x.1.com-error_log CustomLog logs/x..1.com-access_log common /VirtualHost Include d:/IBserver/tomcat4/conf/auto/mod_jk.conf --- mod_jk.conf --- VirtualHost localhost ServerName localhost localhost:/admin # Static files Alias /admin D:/IBserver/tomcat4/webapps/../server/webapps/admin Directory D:/IBserver/tomcat4/webapps/../server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None deny from all /Location Location /admin/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory D:/IBserver/tomcat4/webapps/../server/webapps/admin/WEB-INF/ AllowOverride None deny from all /Directory Directory D:/IBserver/tomcat4/webapps/../server/webapps/admin/META-INF/ AllowOverride None deny from all /Directory Directory /web_app/tomcat/webapps Options Indexes FollowSymLinks /Directory JkMount /* ajp13 Location /WEB-INF/ AllowOverride None deny from all /Location JkMount /*.jsp ajp13 JkMount /*.do ajp13 localhost:/webdav # Static files Alias /webdav D:/IBserver/tomcat4/webapps/webdav Directory D:/IBserver/tomcat4/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory D:/IBserver/tomcat4/webapps/webdav/WEB-INF/ AllowOverride None deny from all /Directory Directory D:/IBserver/tomcat4/webapps/webdav/META-INF/ AllowOverride None deny from all /Directory JkMount /webdav/*.jsp ajp13 localhost:/examples # Static files Alias /examples D:/IBserver/tomcat4/webapps/examples Directory D:/IBserver/tomcat4/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory D:/IBserver/tomcat4/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory D:/IBserver/tomcat4/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
On 20 Jul 2004 at 16:33, Michael Mehrle michael-at-datasaur.com |T wrote: In case I didn't make this clear before: 1) I'm running Apache 1.3 (NOT APACHE2) on RedHat 9.0 2) I cannot find the right mod_jk module In my recent reply to your posting I pointed to this link which I had found .. (although I'm trying to setup Apache 2.0 / Tomcat 5.0) .. http://apache.rmplc.co.uk/dist/jakarta/tomcat-connectors/jk/binaries/win32/ in here it says .. . mod_jk_1.2.5_1.3.28 is for Apache 1.3.x. Rename to mod_jk.dll before putting it in your Apache/modules directory ..
RE: documentation on installing two instances of tomcat
You could also check out item (4) in RUNNING.txt under your Tomcat install: Advanced Configuration - Multiple Tomcat 5 Instances. Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:03 AM To: Tomcat Users List Subject: RE: documentation on installing two instances of tomcat Hi, Here's some: - Download tomcat .zip - Unpack first installation to a directory of your choice, ports will be 8080 and 8005 by default - Unpack second installation to a different directory of your choice - Edit conf/server.xml of the second installation to something other than 8005 and 8080, say 8006 and 8081. - That's it. Yoav Shapira Millennium Research Informatics -Original Message- From: Yoo, Joon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:55 AM To: ([EMAIL PROTECTED]) Subject: documentation on installing two instances of tomcat Is there any documentation on running two instances of tomcat on the same Win2000 server and same IP but different ports? Joon Yoo Systems Administrator Ladas Parry LLC 26 West 61st Street New York, NY 10023 tel: (212) 708-1854 fax: (212) 246-8959 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: RE : RE : RE : RE : RE : how to access Subject after authentifica tion
LERBSCHER Jean-Pierre wrote: In fact my java options are : JAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\conf\Sample_jaas .config -Message d'origine- De : LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 juillet 2004 12:13 À : 'Tomcat Users List' Cc : 'Jeanfrancois Arcand' Objet : RE : RE : RE : RE : how to access Subject after authentification The command line is ok ! But I have an exception : Caused by: java.io.IOException: Impossible de trouver une configuration de connexion Hehe :-) Pas mal comme message d'erreur ;-) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) ... 33 more I set JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\conf \Sample_jaas.config I never used JAAS this way so I cannot help you. Are you trying to load the file from your webapp? Hav eyou try to put the file inside the war? -- Jeanfrancois The classe that instantiates the login context is located in common/classes The standard Catalina.policy containts this permission grant codeBase file:${catalina.home}/common/- { permission java.security.AllPermission; }; Any ideas ? Thanks in advance! -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 19:52 À : Tomcat Users List Objet : Re: RE : RE : RE : how to access Subject after authentification LERBSCHER Jean-Pierre wrote: Could you tell me what is the correct configuration to access the jaas login file with this security manager. You need to start Tomcat using the -security ./catalina.sh start -security -- Jeanfrancois Thanks -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:42 À : Tomcat Users List Objet : Re: RE : RE : how to access Subject after authentification Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 16:30 To: Tomcat Users List Subject: Re: RE : how to access Subject after authentification Two ways: httpSession.getAttribute(javax.security.auth.subject) or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container
Tomcat 5.0.27 deploy problem
Hello Everybody, I am installing Tomcat 5.0.27 on Fedora Linux. I have make one new application for testing in tomcatroot/webapps/mytest. I am using 'ant' to deploy my application mytest. Here is the srceenshot: [EMAIL PROTECTED] mytest]# ant install Buildfile: build.xml prepare: [mkdir] Created dir: /usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build/WEB-INF [mkdir] Created dir: /usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build/WEB-INF/classes [copy] Copying 1 file to /usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build/WEB-INF/lib compile: [javac] Compiling 1 source file to /usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build/WEB-INF/classes install: [deploy] OK - Deployed application at context path /mytest BUILD SUCCESSFUL Total time: 2 seconds [EMAIL PROTECTED] mytest]# From Tomcat web application manager, I can see mytest application, but I can not start it, the error is : FAIL - Application at context path /mytest could not be started when I click mytest from web application manager page: The requested resource (/mytest/) is not available. I am new to Tomcat, could anybody points out where I am wrong? Thanks a lot, Gu - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
RE: Tomcat 5.0.27 deploy problem
Hi, Check $CATALINA_HOME/logs for any errors and post them if found. Yoav Shapira Millennium Research Informatics -Original Message- From: bioinfo Gu [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:05 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.27 deploy problem Hello Everybody, I am installing Tomcat 5.0.27 on Fedora Linux. I have make one new application for testing in tomcatroot/webapps/mytest. I am using 'ant' to deploy my application mytest. Here is the srceenshot: [EMAIL PROTECTED] mytest]# ant install Buildfile: build.xml prepare: [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/classes [copy] Copying 1 file to /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/lib compile: [javac] Compiling 1 source file to /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/classes install: [deploy] OK - Deployed application at context path /mytest BUILD SUCCESSFUL Total time: 2 seconds [EMAIL PROTECTED] mytest]# From Tomcat web application manager, I can see mytest application, but I can not start it, the error is : FAIL - Application at context path /mytest could not be started when I click mytest from web application manager page: The requested resource (/mytest/) is not available. I am new to Tomcat, could anybody points out where I am wrong? Thanks a lot, Gu - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WebSphere suuports servlets in /welcome-list does Tomcat?
When entering a servlet(action) in the /welcome-list tag, Tomcat returns a directory listing. Does it support servlets in the /welcome-list tags? - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign!
RE: WebSphere suuports servlets in /welcome-list does Tomcat?
Hi, Tomcat 5 supports servlets in the welcome-list. That's required by the Servlet Specification v2.4. Tomcat 4, which implements the Servlet Spec v2.3, does not support welcome-list servlets. Yoav Shapira Millennium Research Informatics -Original Message- From: R A [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:07 PM To: [EMAIL PROTECTED] Subject: WebSphere suuports servlets in /welcome-list does Tomcat? When entering a servlet(action) in the /welcome-list tag, Tomcat returns a directory listing. Does it support servlets in the /welcome-list tags? - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebSphere suuports servlets in /welcome-list does Tomcat?
Tomcat 5 does because the 2.4 spec says so. Tomcat 4.X does not. -Tim R A wrote: When entering a servlet(action) in the /welcome-list tag, Tomcat returns a directory listing. Does it support servlets in the /welcome-list tags? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : RE : RE : RE : RE : how to access Subject after authenti fica tion
instead of using something like JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\conf \Sample_jaas.config to locate your jaas config file, you could edit the java.security file of the jre used by Tomcat instead, you are likely to find this file somewhere like: %java_home%\jre\lib\security\java.security add the following line in this file login.config.url.1=file:///%CATALINA_HOME%\conf\Sample_jaas.config (you might have to type the full path, rather than use %catalina_home%, I dont know) or make it .2 if there is a .1 entry etc Matt -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 21 July 2004 16:58 To: Tomcat Users List Subject: Re: RE : RE : RE : RE : RE : how to access Subject after authentifica tion LERBSCHER Jean-Pierre wrote: In fact my java options are : JAVA_OPTS=-Djava.security.auth.login.config=%CATALINA_HOME%\c onf\Sample_jaas .config -Message d'origine- De : LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 juillet 2004 12:13 À : 'Tomcat Users List' Cc : 'Jeanfrancois Arcand' Objet : RE : RE : RE : RE : how to access Subject after authentification The command line is ok ! But I have an exception : Caused by: java.io.IOException: Impossible de trouver une configuration de connexion Hehe :-) Pas mal comme message d'erreur ;-) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) ... 33 more I set JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config=%CATA LINA_HOME%\conf \Sample_jaas.config I never used JAAS this way so I cannot help you. Are you trying to load the file from your webapp? Hav eyou try to put the file inside the war? -- Jeanfrancois The classe that instantiates the login context is located in common/classes The standard Catalina.policy containts this permission grant codeBase file:${catalina.home}/common/- { permission java.security.AllPermission; }; Any ideas ? Thanks in advance! -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 19:52 À : Tomcat Users List Objet : Re: RE : RE : RE : how to access Subject after authentification LERBSCHER Jean-Pierre wrote: Could you tell me what is the correct configuration to access the jaas login file with this security manager. You need to start Tomcat using the -security ./catalina.sh start -security -- Jeanfrancois Thanks -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:42 À : Tomcat Users List Objet : Re: RE : RE : how to access Subject after authentification Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 16:30 To: Tomcat Users List Subject: Re: RE : how to access Subject after authentification Two ways: httpSession.getAttribute(javax.security.auth.subject) or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt
RE: Tomcat 5.0.27 deploy problem
Hello Shapira, Thank you very much for prompt reply. I just change web.xml file in $CATLINA_HOME/webapps/mytest/WEB-INF dir. and then use 'ant all' , 'ant remove' and 'ant install' to reinstall mytest app. There still have some error in $CATALINE_HOME/logs/catalina.out: I also list my web.xml file: Thank you very much. Gu [EMAIL PROTECTED] WEB-INF]# more web.xml ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE web-app (View Source for full doctype...) - web-app - !-- General description of your web application -- display-nameMy Web Application/display-name descriptionThis is version X.X of an application to perform a wild and wonderful task, based on servlets and JSP pages. It was written by Dave Developer ([EMAIL PROTECTED]), who should be contacted for more information./description - !-- Context initialization parameters that define shared String constants used within your application, which can be customized by the system administrator who is installing your application. The values actually assigned to these parameters can be retrieved in a servlet or JSP page by calling: String value = getServletContext().getInitParameter(name); where name matches the param-name element of one of these initialization parameters. You can define any number of context initialization parameters, including zero. -- - context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value descriptionThe EMAIL address of the administrator to whom questions and comments about this application should be addressed./d escription /context-param - !-- Servlet definitions for the servlets that make up your web application, including initialization parameters. With Tomcat, you can also send requests to servlets not listed here with a request like this: http://localhost:8080/{context-path}/servlet/{classname} but this usage is not guaranteed to be portable. It also makes relative references to images and other resources required by your servlet more complicated, so defining all of your servlets (and defining a mapping to them with a servlet-mapping element) is recommended. Servlet initialization parameters can be retrieved in a servlet or JSP page by calling: String value = getServletConfig().getInitParameter(name); where name matches the param-name element of one of these initialization parameters. You can define any number of servlets, including zero. -- - servlet servlet-nameHello/servlet-name descriptionmy test/description servlet-classmypackage.Hello/servlet-class load-on-startup5/load-on-startup /servlet - !-- Define mappings that are used by the servlet container to translate a particular request URI (context-relative) to a particular servlet. The examples below correspond to the servlet descriptions above. Thus, a request URI like: http://localhost:8080/{contextpath}/graph will be mapped to the graph servlet, while a request like: http://localhost:8080/{contextpath}/saveCustomer.do will be mapped to the controller servlet. You may define any number of servlet mappings, including zero. It is also legal to define more than one mapping for the same servlet, if you wish to. -- - servlet-mapping servlet-namecontroller/servlet-name url-pattern*.do/url-pattern /servlet-mapping - servlet-mapping servlet-namegraph/servlet-name url-pattern/graph/url-pattern /servlet-mapping - !-- Define the default session timeout for your application, in minutes. From a servlet or JSP page, you can modify the timeout for a particular session dynamically by using HttpSession.getMaxInactiveInterval(). -- - session-config session-timeout30/session-timeout - !-- 30 minutes -- /session-config /web-app Jul 21, 2004 12:31:09 PM org.apache.catalina.core.ContainerBase log INFO: Removing web application at context path /mytest Jul 21, 2004 12:31:16 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /mytest from URL file:/usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build Jul 21, 2004 12:31:16 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 8: The processing instruction target matching [xX][mM][lL] is not allowed. org.xml.sax.SAXParseException: The processing instruction target matching [xX][mM][lL] is not allowed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at
505 error ( HTTP 1.1 protocol not supported)
Hello, i had seting up jakarta 4.1.24 and i have the following error HTTP 1.1 protocol not supported 505 someone know this problem and an issue? thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address is already in use
hi, i found the error, there is in server.xml, two services had the same listen port. Now, it's good. thx to all Le mar 20/07/2004 07:52, Mehmet Kutlu NAN a crit : hi can you send me log file? - Original Message - From: Damien July [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 19, 2004 7:45 PM Subject: address is already in use Hello, i try to start tomcat 4.1.24 and when i start it , i have the address already in use error message. the is , i don't have some webserver or other thant listen on port 8 or 8080. I don't why i have this error. If someone could help Me. thx. Damien - 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]
Schema in jsp:root cannot be resolved by Tomcat 4.1.29
Tomcat 4.1.29 does not seem to handle schema's in the jsp:root tag. It throws the following error: - Root Cause - org.apache.jasper.JasperException: This absolute uri (http://www.w3.org/2001/XMLSchema-instance) cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:159) at org.apache.jasper.compiler.JspDocumentParser.addCustomTagLibraries(JspDocumentParser.java:459) at org.apache.jasper.compiler.JspDocumentParser.startElement(JspDocumentParser.java:189) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) ... Is this something that it is expected to support? Thanks, Brian P.S. Here is my JSP file ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; jsp:root xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/JSP/Page file:/d:/eclipse/plugins/com.oxygenxml.editor_4.2_E3/samples/jsp/jspxsd.xsd xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp= http://java.sun.com/JSP/Page; xmlns:html=urn:jsptld:/WEB-INF/struts-bean-el.tld xmlns:c=urn:jsptld:/WEB-INF/c.tld version=1.2 html body jsp:texttesting/jsp:text c:out value=${3+5}/ /body /html /jsp:root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.27 deploy problem
Hello Shapira, I solve the deploy problem. I change the web.xml file. When I use 'ant install', now there is no error any more. But the problem I have only one servlet program 'Hello.java' in 'mypackage' package. After I deployed mytest, how can I access my servlet mypackage.Hello. Here is my simple web.xml: [EMAIL PROTECTED] WEB-INF]# more web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- -- web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description !-- JSPC servlet mappings start -- servlet servlet-namehello/servlet-name servlet-classmypackage.Hello/servlet-class /servlet !-- servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping -- !-- JSPC servlet mappings end -- /web-app Thank you very much, Gu Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Check $CATALINA_HOME/logs for any errors and post them if found. Yoav Shapira Millennium Research Informatics -Original Message- From: bioinfo Gu [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:05 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.27 deploy problem Hello Everybody, I am installing Tomcat 5.0.27 on Fedora Linux. I have make one new application for testing in tomcatroot/webapps/mytest. I am using 'ant' to deploy my application mytest. Here is the srceenshot: [EMAIL PROTECTED] mytest]# ant install Buildfile: build.xml prepare: [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/classes [copy] Copying 1 file to /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/lib compile: [javac] Compiling 1 source file to /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/classes install: [deploy] OK - Deployed application at context path /mytest BUILD SUCCESSFUL Total time: 2 seconds [EMAIL PROTECTED] mytest]# From Tomcat web application manager, I can see mytest application, but I can not start it, the error is : FAIL - Application at context path /mytest could not be started when I click mytest from web application manager page: The requested resource (/mytest/) is not available. I am new to Tomcat, could anybody points out where I am wrong? Thanks a lot, Gu - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!
RE: Tomcat 5.0.27 deploy problem
Hi, You need to declare your servlet and a servlet-mapping for it in your web.xml. See the guide at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html for more help. Yoav Shapira Millennium Research Informatics -Original Message- From: bioinfo Gu [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 1:13 PM To: Tomcat Users List Subject: RE: Tomcat 5.0.27 deploy problem Hello Shapira, I solve the deploy problem. I change the web.xml file. When I use 'ant install', now there is no error any more. But the problem I have only one servlet program 'Hello.java' in 'mypackage' package. After I deployed mytest, how can I access my servlet mypackage.Hello. Here is my simple web.xml: [EMAIL PROTECTED] WEB-INF]# more web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- -- web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description !-- JSPC servlet mappings start -- servlet servlet-namehello/servlet-name servlet-classmypackage.Hello/servlet-class /servlet !-- servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping -- !-- JSPC servlet mappings end -- /web-app Thank you very much, Gu Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Check $CATALINA_HOME/logs for any errors and post them if found. Yoav Shapira Millennium Research Informatics -Original Message- From: bioinfo Gu [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:05 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.27 deploy problem Hello Everybody, I am installing Tomcat 5.0.27 on Fedora Linux. I have make one new application for testing in tomcatroot/webapps/mytest. I am using 'ant' to deploy my application mytest. Here is the srceenshot: [EMAIL PROTECTED] mytest]# ant install Buildfile: build.xml prepare: [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/classes [copy] Copying 1 file to /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build [mkdir] Created dir: /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/lib compile: [javac] Compiling 1 source file to /usr/local/jakarta-tomcat- 5.0.27/webapps/mytest/build/WEB-INF/classes install: [deploy] OK - Deployed application at context path /mytest BUILD SUCCESSFUL Total time: 2 seconds [EMAIL PROTECTED] mytest]# From Tomcat web application manager, I can see mytest application, but I can not start it, the error is : FAIL - Application at context path /mytest could not be started when I click mytest from web application manager page: The requested resource (/mytest/) is not available. I am new to Tomcat, could anybody points out where I am wrong? Thanks a lot, Gu - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 505 error ( HTTP 1.1 protocol not supported)
Hi, What Connector declaration are you using in server.xml? Yoav Shapira Millennium Research Informatics -Original Message- From: Damien July [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:46 PM To: Tomcat Users List Subject: 505 error ( HTTP 1.1 protocol not supported) Hello, i had seting up jakarta 4.1.24 and i have the following error HTTP 1.1 protocol not supported 505 someone know this problem and an issue? thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT Re: CRUD Operations using Tomcat
From: Valter G. Nogueira Jr. [EMAIL PROTECTED] I have read a lot about Struts, Hibernate and DAO. But these aproachs are too verbose, I mean manually define XML configs, jsp pages, actions... Cross Struts off that list, it has nothing to do with accessing your data. DAO is a pattern-- some of the existing frameworks implement it, or you can do it yourself. I haven't used Hibernate, but of the three I think it's the closest to what you want. It should get you out of having to worry about when/where to store the information. I was looking for some tool which I point to my database schema and it produces the bunch of code. It would be good if it was tied to a data dictionary that could dynamically change checks and labels. JDO might be what you're looking for: http://jdocentral.com/ http://java.sun.com/products/jdo/index.jsp You're still going to have to do some work up front to configure whatever you choose. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure main web app to skip URL application context
The gist of it is that I will forgo Apache altogether and run Tomcat on port 80. Now, in order to do that I need to: a) Serve index.jsp directly like this http://www.hostname.com/index.jsp (or http://www.hostname.com) instead of having to go to: http://www.hostname.com/myapp/ b) Serve the rest of my application directly in the same fashion without having to specify the webapp context I've seen this done with a Tomcat demo installation of Roller, so I know it's possible. Any input would be appreciated. Thanks! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure main web app to skip URL application context
Hi, Set path= in your Context declaration. Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:05 PM To: Tomcat Users List Subject: How to configure main web app to skip URL application context The gist of it is that I will forgo Apache altogether and run Tomcat on port 80. Now, in order to do that I need to: a) Serve index.jsp directly like this http://www.hostname.com/index.jsp (or http://www.hostname.com) instead of having to go to: http://www.hostname.com/myapp/ b) Serve the rest of my application directly in the same fashion without having to specify the webapp context I've seen this done with a Tomcat demo installation of Roller, so I know it's possible. Any input would be appreciated. Thanks! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
custom login to tomcat realm
I am looking for some direction as to what APi I should be using for doing a custom login to tomcat 4.x 5.x, I don't want to use the j2ee container authentication, any suggestion on where I could find some info or sample code, I need to also do things like, get user list, get Roles, groups . Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure main web app to skip URL application context
Which context declaration? In web.xml? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:05 PM Subject: RE: How to configure main web app to skip URL application context Hi, Set path= in your Context declaration. Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:05 PM To: Tomcat Users List Subject: How to configure main web app to skip URL application context The gist of it is that I will forgo Apache altogether and run Tomcat on port 80. Now, in order to do that I need to: a) Serve index.jsp directly like this http://www.hostname.com/index.jsp (or http://www.hostname.com) instead of having to go to: http://www.hostname.com/myapp/ b) Serve the rest of my application directly in the same fashion without having to specify the webapp context I've seen this done with a Tomcat demo installation of Roller, so I know it's possible. Any input would be appreciated. Thanks! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
request.getInputStream/getReader bug in 4.1.30 and beyond ?
Hi: Jsp's unders tomcat 4.1.30 return an emtpy request.getInputStream. If you _don't_ call request.getInputStream in your jsp but call request.getReader(), an invalid state exception saying that the input stream has already been opened. Clearly, the engine is opening the inputstream behind the scenes and reading all it's input. That's wrong, non-spec behavior. For example: --- hello.jsp - hello world h2POST PARAMS/h2 % java.io.Reader in = request.getReader(); int c = -1; while ( (c = in.read()) != -1) { out.print((char)c); } % -- If any form is posted to hello.jsp (i.e, the action of some form is set to hello.jsp), then when the form is posted, hello.jsp will crap out. [if you replaces getReader() in the above code with getInputStream, the returned input stream will be empty]. This is ridiculous. Am I missing something ? --j __ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure main web app to skip URL application context
Howdy, You might want to RTFM on tomcat configuration. This context declaration: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html. Not in web.xml. Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:21 PM To: Tomcat Users List Subject: Re: How to configure main web app to skip URL application context Which context declaration? In web.xml? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:05 PM Subject: RE: How to configure main web app to skip URL application context Hi, Set path= in your Context declaration. Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:05 PM To: Tomcat Users List Subject: How to configure main web app to skip URL application context The gist of it is that I will forgo Apache altogether and run Tomcat on port 80. Now, in order to do that I need to: a) Serve index.jsp directly like this http://www.hostname.com/index.jsp (or http://www.hostname.com) instead of having to go to: http://www.hostname.com/myapp/ b) Serve the rest of my application directly in the same fashion without having to specify the webapp context I've seen this done with a Tomcat demo installation of Roller, so I know it's possible. Any input would be appreciated. Thanks! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing the classloader to load encrypted classes
Dear sirs, I need to change the web application classloader that Tomcat uses, because I need to load signed and/or encrypted class files for my application. (It's my client's requirement; he does not want obfuscation or native-code compilation.) Is it feasible? I've read some of the Tomcat source code (in fact using grep and some educated guesses; but not the entire source code), but it has lots of references to the Classloader class, so I need a clue for finding exactly what I must change. Thanks for your attention, Edson W. ___ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the classloader to load encrypted classes
Hi, Yes, it's feasible: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/loader.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Edson Watanabe [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:43 PM To: [EMAIL PROTECTED] Subject: Changing the classloader to load encrypted classes Dear sirs, I need to change the web application classloader that Tomcat uses, because I need to load signed and/or encrypted class files for my application. (It's my client's requirement; he does not want obfuscation or native-code compilation.) Is it feasible? I've read some of the Tomcat source code (in fact using grep and some educated guesses; but not the entire source code), but it has lots of references to the Classloader class, so I need a clue for finding exactly what I must change. Thanks for your attention, Edson W. ___ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/ - 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: Changing the classloader to load encrypted classes
To add a little: you would extend the webapp loader with your own one, and use a Loader className=yourClassLoaderName / element inside your context declaration, be it in server.xml or in its own file. Yoav Shapira Millennium Research Informatics -Original Message- From: Shapira, Yoav Sent: Wednesday, July 21, 2004 3:43 PM To: Tomcat Users List Subject: RE: Changing the classloader to load encrypted classes Hi, Yes, it's feasible: http://jakarta.apache.org/tomcat/tomcat-5.0- doc/config/loader.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Edson Watanabe [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:43 PM To: [EMAIL PROTECTED] Subject: Changing the classloader to load encrypted classes Dear sirs, I need to change the web application classloader that Tomcat uses, because I need to load signed and/or encrypted class files for my application. (It's my client's requirement; he does not want obfuscation or native-code compilation.) Is it feasible? I've read some of the Tomcat source code (in fact using grep and some educated guesses; but not the entire source code), but it has lots of references to the Classloader class, so I need a clue for finding exactly what I must change. Thanks for your attention, Edson W. ___ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/ - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the classloader to load encrypted classes
Thank you for your fast and kind answer. I'll try subclassing Loader. Edson W. --- Shapira, Yoav [EMAIL PROTECTED] escreveu: Hi, Yes, it's feasible: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/loader.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Edson Watanabe [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 3:43 PM To: [EMAIL PROTECTED] Subject: Changing the classloader to load encrypted classes Dear sirs, I need to change the web application classloader that Tomcat uses, because I need to load signed and/or encrypted class files for my application. (It's my client's requirement; he does not want obfuscation or native-code compilation.) Is it feasible? I've read some of the Tomcat source code (in fact using grep and some educated guesses; but not the entire source code), but it has lots of references to the Classloader class, so I need a clue for finding exactly what I must change. Thanks for your attention, Edson W. ___ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/ - 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] ___ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0
Hello- I'm trying to get a demo up and running with Tomcat 5.0 running on windows xp sp1 and no matter what I do, I only get the following directory structure listing for my context directory instead of getting the .jsp I intending on serving up. Is the execution of my .jsp failing and such the directory is displayed or is it even correctly executing my jsp? I'm using the deployment approach of dropping in the already expanded context directory. I have tried putting a .war file out there that I generated with Studio Creator and it had the same affect. The listing page that is served looks like: Directory Listing For / _ Filename Size Last Modified http://localhost:8080/household/.nbattrs .nbattrs 1.1 kb Tue, 13 Jul 2004 17:22:24 GMT http://localhost:8080/household/HouseDetail.jsp HouseDetail.jsp 4.7 kb Tue, 20 Jul 2004 19:20:25 GMT http://localhost:8080/household/Household.jsp Household.jsp 12.7 kb Tue, 20 Jul 2004 19:15:59 GMT http://localhost:8080/household/criteria/ criteria/ Sat, 17 Jul 2004 03:24:08 GMT http://localhost:8080/household/criteria.jar criteria.jar 3.1 kb Thu, 15 Jul 2004 17:09:46 GMT http://localhost:8080/household/criteria.jarContent criteria.jarContent 1.3 kb Mon, 12 Jul 2004 16:49:48 GMT http://localhost:8080/household/criteria.js criteria.js 5.3 kb Tue, 20 Jul 2004 19:20:25 GMT http://localhost:8080/household/house.css house.css 2.5 kb Thu, 16 Aug 2001 15:52:02 GMT http://localhost:8080/household/house.war house.war 25.5 kb Thu, 15 Jul 2004 17:09:59 GMT http://localhost:8080/household/images/ images/ Sat, 17 Jul 2004 03:24:08 GMT _ Apache Tomcat/5.0.27 The page I intended to serve and the name of my context is Household.jsp. http://localhost:8080/household/ I'm fairly new to Tomcat and so don't have much experience with the prior versions. Any help / or advice would be appreciated. Bill Reynolds [EMAIL PROTECTED]
RE: Tomcat 5.0
Hi, You might want to restart the server after dropping in the context directory. Yoav Shapira Millennium Research Informatics -Original Message- From: Bill Reynolds [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 4:00 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.0 Hello- I'm trying to get a demo up and running with Tomcat 5.0 running on windows xp sp1 and no matter what I do, I only get the following directory structure listing for my context directory instead of getting the .jsp I intending on serving up. Is the execution of my .jsp failing and such the directory is displayed or is it even correctly executing my jsp? I'm using the deployment approach of dropping in the already expanded context directory. I have tried putting a .war file out there that I generated with Studio Creator and it had the same affect. The listing page that is served looks like: Directory Listing For / _ Filename Size Last Modified http://localhost:8080/household/.nbattrs .nbattrs 1.1 kb Tue, 13 Jul 2004 17:22:24 GMT http://localhost:8080/household/HouseDetail.jsp HouseDetail.jsp 4.7 kb Tue, 20 Jul 2004 19:20:25 GMT http://localhost:8080/household/Household.jsp Household.jsp 12.7 kb Tue, 20 Jul 2004 19:15:59 GMT http://localhost:8080/household/criteria/ criteria/ Sat, 17 Jul 2004 03:24:08 GMT http://localhost:8080/household/criteria.jar criteria.jar 3.1 kb Thu, 15 Jul 2004 17:09:46 GMT http://localhost:8080/household/criteria.jarContent criteria.jarContent 1.3 kb Mon, 12 Jul 2004 16:49:48 GMT http://localhost:8080/household/criteria.js criteria.js 5.3 kb Tue, 20 Jul 2004 19:20:25 GMT http://localhost:8080/household/house.css house.css 2.5 kb Thu, 16 Aug 2001 15:52:02 GMT http://localhost:8080/household/house.war house.war 25.5 kb Thu, 15 Jul 2004 17:09:59 GMT http://localhost:8080/household/images/ images/ Sat, 17 Jul 2004 03:24:08 GMT _ Apache Tomcat/5.0.27 The page I intended to serve and the name of my context is Household.jsp. http://localhost:8080/household/ I'm fairly new to Tomcat and so don't have much experience with the prior versions. Any help / or advice would be appreciated. Bill Reynolds [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]