Re: Odd deployment problem
Check your unpackWars attribute- it could be set to false. Try setting it to true. --- Poorav Sheth <[EMAIL PROTECTED]> wrote: > I am using Tomcat 4.1.30 with a SQL Server 7.0 > database. Since I needed a > DataSource, I modified the Tomcat server.xml as > follows: > > debug="1" > reloadable="true"> > className="org.apache.catalina.logger.FileLogger" > prefix="localhost_StrutsTest_log." suffix=".txt" > timestamp="true"/> > type="javax.sql.DataSource" /> > > > factory > org.apache.commons.dbcp.BasicDataSourceFactory > > > user > lab > > > password > lab > > > driverClassName > net.sourceforge.jtds.jdbc.Driver > > > url > jdbc:jtds:sqlserver://192.xxx.xx.xx:1433/Development;User=lab;Password=lab > > > > > With this configuration, I can get my data source to > work! But the only > thing is that the war file is not unpacked under > webapps folder but directly > under > %TOMCAT_HOME%/work/Standalone/localhost. I know that > all deployed apps get > listed here subsequently, but why does it not put it > in webapps folder as > well? This is causing the paths in my various > properties files to fail. > > _ > Stop worrying about overloading your inbox - get MSN > Hotmail Extra Storage! > http://join.msn.click-url.com/go/onm00200362ave/direct/01/ > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jar and jad with httpd
For JAD files.. .jad = text/vnd.sun.j2me.app-descriptor For JAR files... .jar = application/java-archive and / or .jar = application/x-java-archive kalin mintchev wrote: hi all sorry if this isn't the right place for this question... i just couldn't find a better place to ask... i'm trying to figure out if it's possible to serve .jar and .jad files with the apache httpd to java enabled cell phones. if so what excatly are the mime types i should map to the extentions... thanks... - 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: jar and jad with httpd
If you mean "do i need Tomcat to serve java files" then the answer is no you dont need Tomcat, serving jad and jar files works just fine without any java vm at all on the webserver. kalin mintchev wrote: For JAD files.. .jad = text/vnd.sun.j2me.app-descriptor For JAR files... .jar = application/java-archive and / or .jar = application/x-java-archive thanks a lot... does that mean i can use the httpd?! kalin mintchev wrote: hi all sorry if this isn't the right place for this question... i just couldn't find a better place to ask... i'm trying to figure out if it's possible to serve .jar and .jad files with the apache httpd to java enabled cell phones. if so what excatly are the mime types i should map to the extentions... thanks... - 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] -- (¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯) The early bird gets the worm, but the second mouse gets the cheese... ICQ 1202948 (¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)
Re: Any Resource talking abt how Tomcat intergrated to Apache
You can use mine http://www.gregoire.org/howto/virtualhost.jk2.html just make sure you rename the "worker=" to "group=" in the workers2.properties file Salvador Santander Gutierrez wrote: >http://johnturner.com/howto/apache-tomcat-howto.html > >I hope this helkp you > >- Original Message - >From: "Eric YH WONG" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, May 20, 2004 12:09 PM >Subject: Any Resource talking abt how Tomcat intergrated to Apache > > >Hello, > >Does anyone have good resources which talking about how Tomcat v5.X >integrated with Apache v2.0.49 ? > >Thx > >Eric > > > >- >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: Apache startup errors
I experienced this problem on FreeBSD.. i cant remember what the fix was "exactly" but i can tell you to work around it you will have to make a change in your httpd.conf. I found my fix by pasteing the error into Google.. good luck Shapira, Yoav wrote: Hi, Maybe ask on the Apache httpd mailing list? Yoav Shapira Millennium Research Informatics -Original Message- From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 12:17 PM To: Tomcat Users List Subject: Apache startup errors Guys, Any one has any idea on these errors When i startup Apache 2.0.43 on Solaris2.8, I have got these errors. [Tue May 25 15:45:50 2004] [notice] Digest: generating secret for digest authentication ... [Tue May 25 15:45:50 2004] [crit] (2)No such file or directory: Digest: error generating secret: No such file or directory Configuration Failed What must i do here?? ___ ___ For information about the Standard Bank group visit our web site ___ ___ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ - 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] -- (¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯) The early bird gets the worm, but the second mouse gets the cheese... ICQ 1202948 (¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SynchronizerToken pattern
We recently brought a Tapestry app into operation, about 80 pages and components. My colleague Bernhard Woditschka implemented the SynchronizerToken there from "Core J2EE Patterns" by Alur, Crupi and Malks (http://www.refactoring.com/catalog/introduceSynchronizerToken.html), addressing the following issues: - prevent use of browser "Back" button - prevent multiple concurrent submissions of a form - prevent operation in multiple browser windows using the same HTTP session The implementation is 100% server side, and it is somewhat strict in that upon detecting disallowed action on any page, an error page is activated in any case. Design summary: --- The Visit object holds a FlowSynchronizer object responsible for generating and comparing a unique token. On every protected page, a hidden field is included in the form: This field holds a token which is generated by the FlowSynchronizer when the page is rendered. Upon form submission, the token parameter passed with the form is compared to the token recently generated. A discrepancy triggers a FlowSequenceException resulting in the Exception page rendered. A match consumes the token so a subsequent duplicate submission fails. The Exception page renders, depending on the exception thrown, either the general error text, or an error text specific to the FlowSequenceException. Feel free to utilise or comment on this posting. Paul Ivancsics -- Anecon Software Design und Beratung G.m.b.H. Vienna, Austria FlowSynchronizer.java: -- import java.io.Serializable; /** * Implementation of Synchronizer Token J2EE Patterns for Tapestry. * * Inclusion in Tapestry page template: * * <input jwcid="@Hidden" value="ognl:visit.flowSynchronizer.token"/> * * * In case of a 2nd form in the same page: * * <input jwcid="@Hidden" value="ognl:visit.flowSynchronizer.tokenCopy"/> * * * @author Bernhard Woditschka */ public class FlowSynchronizer implements Serializable { private long sequence; private String token; public FlowSynchronizer() { // initialize the sequence randomly sequence = (long) (Math.random() * Long.MAX_VALUE / 2l); } public String getToken() { // generate a new token token = Long.toHexString(++sequence); return token; } public String getTokenCopy() { return token; } public void setToken(String token) throws FlowSequenceException { // first compare the token if (this.token == null || ! this.token.equals(token)) throw new FlowSequenceException(); // reset token on match -> subsequent duplicate submission will fail this.token = null; } public void setTokenCopy(String tokenCopy) throws FlowSequenceException { setToken(token); } } FlowSequenceException.java: --- /** * Signals a page flow exception. * * @author Bernhard Woditschka */ public class FlowSequenceException extends Exception { public FlowSequenceException() { } } Exception.html: --- General error text bla bla You have been using your browser's "Back" button, or jadda jadda ExceptionPage.java: --- import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.event.PageEvent; import org.apache.tapestry.event.PageRenderListener; import org.apache.tapestry.html.BasePage; import org.apache.tapestry.util.exception.ExceptionAnalyzer; import org.apache.tapestry.util.exception.ExceptionDescription; /** * The Tapestry Exception page. * * @author Bernhard Woditschka */ public class ExceptionPage extends BasePage implements PageRenderListener { // Causing exception private Throwable exception; // Flag signaling a FlowSequenceException private boolean flowSequenceError = false; public void pageBeginRender(PageEvent event) { IRequestCycle cycle = getRequestCycle(); if (! cycle.isRewinding() && getException() != null) { // find the root cause ExceptionDescription[] ed = new ExceptionAnalyzer().analyze(getException()); String rootCauseExceptionName = ed[ed.length - 1].getExceptionClassName(); // check for FlowSequenceException flowSequenceError = FlowSequenceException.class.getName().equals(rootCauseExceptionName); } } public boolean isFlowSequenceError() { return flowSequenceError; } public Throwable getException() { return exception; } public void setException(Throwable exception) { this.exception = exception; } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SynchronizerToken pattern
Sorry, wrong list Paul Ivancsics schrieb: We recently brought a Tapestry app into operation, about 80 pages and components... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
registering Tomcat as service
Hello, I installed Tomcat, formally run from the console. I am now trying to get it to run as a service. I have in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameters: JVM Option Count REG_DWORD0X0004 (4) JVM Option Number 0 REG_SZ-Xms256m JVM Option Number 1 REG_SZ-Xmx512m JVM Option Number 2 REG_SZ -Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eComme rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar JVM Option Number 3 REG_SZ -Dcatalina.home=C:\eCommerce\Tomcat-4.1.30 the paths are correct (JDK/Tomcat) but when I try to start Tomcat from the service window, I get a popup: "The Tomcat Service on a Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service" The service does not subsequently run. Now my service may not have any work to do, but I most certainly do. Any info is much appreciated. Paul.
Connection timeout when using OutputStream
Hello, I am running into problems with downloading unusually big files within my application using the ServletOutputStream. >From what I read on the documentation I set the Coyote Connector attribute connectionTimeout="-1" and still the problem persists. Any ideas/advice anyone ? Thanks, Paul. __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection timeout when using OutputStream
I forgot to mention - I am running Tomcat 4.1.27 on Win2K. Thanks. --- Paul Mitchell <[EMAIL PROTECTED]> wrote: > Hello, > I am running into problems with downloading unusually big files within my > application using the ServletOutputStream. > From what I read on the documentation I set the Coyote Connector attribute > connectionTimeout="-1" and still the problem persists. > Any ideas/advice anyone ? > > Thanks, > Paul. > > > > > __ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Remote Start / Stop of tomcat
Can one achieve this (Tomcat restart) using a mobile device? WAP? I suppose that violates all manner of security protocols? Paul. On Mon, May 31, 2004 at 09:49:38AM +0530, [EMAIL PROTECTED] wrote: : Once in a week I need to restart Tomcat due to "OutofMemoryError". But I do : not have access to the server for doing this. So, I am looking for a : mechanism (if possible) to start / stop Tomcat remotely. Is this possible? Something of this nature was recently discussed on the list. I have a written a tool to do just this, called ListenExec. It's a socket listener that performs some rudimentary authentication and executes commands. You can telnet to the listener's port and have it restart your Tomcat process. You can download it from: http://downloads.brandxdev.net/tomcat-479785/ Note that this version is still pretty rough; I will soon have time to clean it up. The basic functionality is there, though. Run it with commons-daemon. -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: contextInitialized being called exactly twice
Hi Yoav, On the same note, I was experiencing the same frustration, but I was not deploying any WAR. Could this be the reason for my 2 * execution, even though I had not packaged my classes into a WAR? Many thanks Paul. Hi I bet it's being called once for each time the context is deployed, and the context is deployed twice because you have autoDeploy on AND an explicit context declaration in your server.xml/conf directory/WAR. Turn autoDeploy off and see what happens. (This would explain the static counter being 1: the counter is static once per classloader repository, you have two of the same context at different paths with different classloader repositories). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Graham Smith [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 10, 2004 12:32 PM >To: [EMAIL PROTECTED] >Subject: contextInitialized being called exactly twice > >Hi, > >I am absolutely stumped by this problem. For some reason that I can't >fathom the contextInitialized method on a ServletContextListener I have >in one of my web applications is being called twice. Normally this isn't >a problem since it only causes the load process to take longer but I >have recently added a new section that starts a daemon thread and it >this double call is causing two threads to be created. What is even more >bizarre is that I have tried using a static int to count the number of >times the method is called but it always returns one. I suspected that >it therefore must be created by a different class loader but a call to >getClass().getClassLoader and a dump (see below) of information would >seem to indicate that it is in fact the same class loader loading the >class. I am using tomcat 5.0.25 on Linux with Java 1.4.2_04. I have also >performed a thread dump in order to check that it is _really_ being run >twice and sure enough there are two copies of my thread running (again >see extract below). > >Any help would be greatly appreciated. > >Graham > >ClassLoader dump: > >First time it is loaded > >ClassLoader: WebappClassLoader > delegate: false > repositories: >--> Parent Classloader: >StandardClassLoader > delegate: true > repositories: > file:/home/gms/dump/tomcat/shared/classes/ >--> Parent Classloader: >StandardClassLoader > delegate: true > repositories: > file:/home/gms/dump/tomcat/common/classes/ > file:/home/gms/dump/tomcat/common/endorsed/xercesImpl.jar > file:/home/gms/dump/tomcat/common/endorsed/xmlParserAPIs.jar > file:/home/gms/dump/tomcat/common/lib/ant.jar > file:/home/gms/dump/tomcat/common/lib/commons-collections.jar > file:/home/gms/dump/tomcat/common/lib/commons-dbcp-1.1.jar > file:/home/gms/dump/tomcat/common/lib/commons-el.jar > file:/home/gms/dump/tomcat/common/lib/commons-pool-1.1.jar > file:/home/gms/dump/tomcat/common/lib/jasper-compiler.jar > file:/home/gms/dump/tomcat/common/lib/jasper-runtime.jar > file:/home/gms/dump/tomcat/common/lib/jsp-api.jar > file:/home/gms/dump/tomcat/common/lib/naming-common.jar > file:/home/gms/dump/tomcat/common/lib/naming-factory.jar > file:/home/gms/dump/tomcat/common/lib/naming-java.jar > file:/home/gms/dump/tomcat/common/lib/naming-resources.jar > file:/home/gms/dump/tomcat/common/lib/servlet-api.jar >--> Parent Classloader: >[EMAIL PROTECTED] > > > >Second time it is loaded > > >ClassLoader: WebappClassLoader > delegate: false > repositories: >--> Parent Classloader: >StandardClassLoader > delegate: true > repositories: > file:/home/gms/dump/tomcat/shared/classes/ >--> Parent Classloader: >StandardClassLoader > delegate: true > repositories: > file:/home/gms/dump/tomcat/common/classes/ > file:/home/gms/dump/tomcat/common/endorsed/xercesImpl.jar > file:/home/gms/dump/tomcat/common/endorsed/xmlParserAPIs.jar > file:/home/gms/dump/tomcat/common/lib/ant.jar > file:/home/gms/dump/tomcat/common/lib/commons-collections.jar > file:/home/gms/dump/tomcat/common/lib/commons-dbcp-1.1.jar > file:/home/gms/dump/tomcat/common/lib/commons-el.jar > file:/home/gms/dump/tomcat/common/lib/commons-pool-1.1.jar > file:/home/gms/dump/tomcat/common/lib/jasper-compiler.jar > file:/home/gms/dump/tomcat/common/lib/jasper-runtime.jar > file:/home/gms/dump/tomcat/common/lib/jsp-api.jar > file:/home/gms/dump/tomcat/common/lib/naming-com
setting up multiple realms for apps deployed using ant install task?
How do you set up multiple realms for different webapps that are installed using ant? We don't have any context tags in the server.xml file other than for the manager app. Our applications are installed using install from our build.xml in ant: http://localhost:8080/manager"; username="manager" password="manager" path="/" war="file://${build.home}"/> Then that app becomes the root application running on Tomcat. In our server.xml : But we've got other applications that run as /appOne /appTwo etc. How would we have these other applications look to their own realm database for authentication w/o using tags? And if we do need to use tags for each application, how do we install using ANT? Thanks Paul __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
please explain behavior of Requestdispatcher.forward()
Hi all, I have problem in using RequestDispatcher.forward() from servlets. My knowledge is that even after calling this method servlet continues processing the request and thus executes rest of the service method. But I have seen that if a servlet is forwarding to same servlet it stops responding unable to get a database connection from pool. (I have set maxconncections to 1). Database connection is closed in service method in the finally block which is coming after the forward() statement. What is wrong ?. I am using Tomcat 4.1.27 and JDK 1.3.1. Another question how to remove a query string from a request before forwarding it. Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: please explain behavior of Requestdispatcher.forward()
Actually I have to remove a textbox element from a form. Antony Paul - Original Message - From: "Antony Paul" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, November 15, 2003 5:33 PM Subject: please explain behavior of Requestdispatcher.forward() > Hi all, > I have problem in using RequestDispatcher.forward() from servlets. My > knowledge is that even after calling this method servlet continues > processing the request and thus executes rest of the service method. But I > have seen that if a servlet is forwarding to same servlet it stops > responding unable to get a database connection from pool. (I have set > maxconncections to 1). Database connection is closed in service method in > the finally block which is coming after the forward() statement. What is > wrong ?. I am using Tomcat 4.1.27 and JDK 1.3.1. > Another question how to remove a query string from a request before > forwarding it. > > Antony Paul > > - > 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: Query..
http://mirrors.midco.net/pub/apache.org/jakarta/tomcat-connectors/ Antony Paul - Original Message - From: "Krishna Kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 18, 2003 10:53 AM Subject: Query.. > Hi, > Can u please send me the link to download isapi_redirect.dll > Tx & Reg > Krishna > > > - > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to find Tomcat RPMs?
Check this http://marc.theaimsgroup.com/?l=tomcat-user&m=106639528807348&w=2 Antony Paul - Original Message - From: "Jens Ove Lillegraven" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 1:03 PM Subject: Where to find Tomcat RPMs? Hello I cannot find any more rpm packets for Tomcat installation. I usually found them at http://jakarta.apache.org I've got 4.1.24. Is there any newer rpms for Tomcat 4.x, maybe for Tomcat 5.x? rpm are more suitable for our use than tar. Thanks Jens Ove - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dead threads
I got this code by searching one list (I think it is tomcat-dev). code is given below. // to print the number of threads in tomcat. ThreadGroup systemthreadgroup; ThreadGroup parentthreadgroup; systemthreadgroup = Thread.currentThread().getThreadGroup(); while ((parentthreadgroup = systemthreadgroup.getParent()) != null) systemthreadgroup = parentthreadgroup; out.println(Thread.currentThread().getName() + " : activeCount = " + systemthreadgroup.activeCount()+""); Thread[] array = new Thread[systemthreadgroup.activeCount()]; int count = systemthreadgroup.enumerate(array); for(int i=0;i"); hope this helps. Antony Paul. - Original Message - From: "Laurent Michenaud" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 9:16 PM Subject: RE : Dead threads I can't find it. Could u or anybody else post the code ? Thanks -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : jeudi 20 novembre 2003 14:42 À : Tomcat Users List Objet : RE: Dead threads Howdy, If a thread is dead it will have been GCed. Use a thread dump (kill -s QUIT ) to get the current list of threads and what they're doing on stdout. There are also programmatic ways to go about this: I've posted at least three times in the past the complete code for a thread-crawler type of class that will display all the threads in the JVM, what they're doing, their state, etc: you can search the list archives for it. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Walter do Valle [mailto:[EMAIL PROTECTED] >Sent: Thursday, November 20, 2003 6:52 AM >To: Tomcat Users List >Subject: Dead threads > >How to know what Tomcat threads are dead (or hanged, os blocked, or >inoperative, or... ) in an Tomcat running on Linux? >Any help is welcome. 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Severity less - DBCP not closing connection.
I hope it is not posted twice. I wrote this mail in forenoon and when tried to send internet connection lost. I am retyping everything. I have seen DBCP not closing a connection if the request is forwarded to same page in the try block before the request is forwarded. With sendRedirect no problem. This occurs when the connection is obtained through JNDI look up datasource. I tested the same code in stand alone java application using manual pooling which works fine. I am using Tomcat 4.1.27 and DBCP 1.1 (I upgraded it today), JDK 1.3.1 and Oracle 8i. My configuration and code is given below. --- factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 1 maxIdle 1 maxWait 10 username scott password tiger driverClassName oracle.jdbc.driver.OracleDriver url jdbc:oracle:thin:@localhost:1521:DB removeAbandoned true removeAbandonedTimeout 30 -- <%@ page import="java.sql.*"%> <%@ page import="javax.sql.*"%> <%@ page import="javax.naming.*"%> <%@ page import="org.apache.commons.dbcp.datasources.SharedPoolDataSource"%> <%@ page import="org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS"%> <% /*DriverAdapterCPDS cpds = new DriverAdapterCPDS(); cpds.setDriver("oracle.jdbc.driver.OracleDriver"); cpds.setUrl("jdbc:oracle:thin:@localhost:1521:DB"); cpds.setUser("scott"); cpds.setPassword("tiger"); SharedPoolDataSource tds = new SharedPoolDataSource(); tds.setConnectionPoolDataSource(cpds); tds.setMaxActive(1); tds.setMaxIdle(1); tds.setMaxWait(3000); */ Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)initContext.lookup("java:/comp/env/jdbc/Test"); PreparedStatement pstmt = null; ResultSet rs = null; Connection conn = null; String action = request.getParameter("action"); if("1".equals(action)){ long time = 0; try{ conn = tds.getConnection(); conn = ds.getConnection(); pstmt = conn.prepareStatement("select empno,ename from scott.emp where empno=?"); pstmt.setString(1,"7369"); rs = pstmt.executeQuery(); while(rs.next()){ System.out.println("Ename - "+rs.getString(1)+" - "+rs.getString(2)); } time = System.currentTimeMillis(); System.out.println("Before forward - 0");time=System.currentTimeMillis(); application.getRequestDispatcher("/TestDB.jsp?action=2").forward(request,r esponse); System.out.println("After forward - "+(System.currentTimeMillis()-time)); }catch(SQLException sqle){ System.out.println("1 " +sqle); }finally{ if(rs!=null)rs.close(); if(pstmt!=null) pstmt.close(); if(conn!=null)conn.close(); } }else if("2".equals(action)){ long time = 0; System.out.println("In Two start - time = 0");time=System.currentTimeMillis(); try{ conn = tds.getConnection(); conn = ds.getConnection(); pstmt = conn.prepareStatement("select empno,ename from scott.emp where empno=?"); pstmt.setString(1,"7499"); rs = pstmt.executeQuery(); while(rs.next()){ System.out.println("Ename - "+rs.getString(1)+" - "+rs.getString(2)); } }catch(SQLException sqle){ System.out.println("2 "+sqle); }finally{ if(rs!=null)rs.close(); if(pstmt!=null) pstmt.close(); if(conn!=null)conn.close(); } System.out.println("In Two end - "+(System.currentTimeMillis()-time)); } %> I work with one connection to test for connection leak and any bottlenecks in code. It works fine if I put the forward() after the end of finally block. I want to know whether it is bug or config error or Tomcat behaves so. Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Synchronising database access
Hi, I want to synchronise all database access. There are lots of situations where first first a select query is performed to get the results and then insert/update data. I dont want to implement row level locking or optimistic locking. I just want to synchronise the whole process. Only after a thread completes the entire process other threads can execute the code. How to do it. Do I have to synchronise on Connection or on this or implement SingleThreadModel. I also want to know how much extra time a synchronised block requires than an unsynchronised block. Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Synchronising database access
thanks for the reply synchrosing servlet code dont work ? Antony Paul - Original Message - From: "Peter Guyatt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 5:28 PM Subject: RE: [OT] Synchronising database access > Hi There, > > Use a singleton class to manage the database transactions. > > Then implement a owner mechanism. E.g. > > class DbTxMgr { > > String owner = null; > > public synchronized boolean lockMgr (String threadId) { > if (owner == null) { > owner = threadId; > return true; > } else { > if (owner.equals(threadId)) { > return true > } > return false; > } > } > > public synchronized void releaseMgr (String threadId) { > if (owner != null) { > if (owner.equals(threadId)) { > owner = null; > } > } > } > > public synchronized boolean insert (String statement, String threadId) { > if (owner == null) { > owner = threadId; > } > if (owner.equals(threadId)) { > file://do the transaction > } > } > } > > your code > > class tester { > file://name of your thread > Thread t = new Thread("testerThread") > ... > > if (lockMgr(t.getName())) { > file://do database code > } > lockMgr.releaseLock(t.getName()); > > } > > This way olny the owner of the lock can perform transactions and all other > threads must wait for the lock to be released > > Thanks > > Pete > > > -Original Message- > From: Antony Paul [mailto:[EMAIL PROTECTED] > Sent: 21 November 2003 11:51 > To: Tomcat Users List > Subject: [OT] Synchronising database access > > > Hi, > I want to synchronise all database access. There are lots of situations > where first first a select query is performed to get the results and then > insert/update data. I dont want to implement row level locking or optimistic > locking. I just want to synchronise the whole process. Only after a thread > completes the entire process other threads can execute the code. How to do > it. Do I have to synchronise on Connection or on this or implement > SingleThreadModel. I also want to know how much extra time a synchronised > block requires than an unsynchronised block. > > Antony Paul. > > - > 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: Severity less - DBCP not closing connection.
I tested it using a sample code which is posted. All resultsets,prepared statements and connections are closed in finally block. I dont have a real problem yet. The app is still in developing stage. Antony Paul - Original Message - From: "Edson Alves Pereira" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 7:21 PM Subject: RE: Severity less - DBCP not closing connection. > You must ensure that your connection manager is closing all > ResultSets, Statements, PreparedStatement and finally all connection. With > that you DBCP will work. Store a copy of all those objets in Vectors and > when you close the connectionm manager, it will close all objetcts stored > also. > > > -- > > De: Antony Paul[SMTP:[EMAIL PROTECTED] > > Responder: Tomcat Users List > > Enviada: sexta-feira, 21 de novembro de 2003 8:34 > > Para: Tomcat Users List > > Assunto: Severity less - DBCP not closing connection. > > > > I hope it is not posted twice. I wrote this mail in forenoon and when > > tried > > to send internet connection lost. I am retyping everything. > > > > I have seen DBCP not closing a connection if the request is forwarded > > to > > same page in the try block before the request is forwarded. With > > sendRedirect no problem. This occurs when the connection is obtained > > through > > JNDI look up datasource. I tested the same code in stand alone java > > application using manual pooling which works fine. I am using Tomcat > > 4.1.27 > > and DBCP 1.1 (I upgraded it today), JDK 1.3.1 and Oracle 8i. > > My configuration and code is given below. > > -- > > -- > > --- > > > debug="0" reloadable="true" crossContext="true"> > > > >> prefix="test_log." suffix=".txt" > > timestamp="true"/> > > > >>auth="Container" > >type="javax.sql.DataSource"/> > > > > > > > > factory > > org.apache.commons.dbcp.BasicDataSourceFactory > > > > > > > > maxActive > > 1 > > > > > > > > maxIdle > > 1 > > > > > > > > maxWait > > 10 > > > > > > > > username > > scott > > > > > > password > > tiger > > > > > > > >driverClassName > >oracle.jdbc.driver.OracleDriver > > > > > > > > url > > jdbc:oracle:thin:@localhost:1521:DB > > > > > > > > removeAbandoned > > true > > > > > > removeAbandonedTimeout > > 30 > > > > > > > > > > -- > > -- > > -- > > > > > > <%@ page import="java.sql.*"%> > > <%@ page import="javax.sql.*"%> > > <%@ page import="javax.naming.*"%> > > <%@ page > > import="org.apache.commons.dbcp.datasources.SharedPoolDataSource"%> > > <%@ page import="org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS"%> > > <% > > /*DriverAdapterCPDS cpds = new DriverAdapterCPDS(); > > cpds.setDriver("oracle.jdbc.driver.OracleDriver"); > > cpds.setUrl("jdbc:oracle:thin:@localhost:1521:DB"); > > cpds.setUser("scott"); > > cpds.setPassword("tiger"); > > > > SharedPoolDataSource tds = new SharedPoolDataSource(); > > tds.setConnectionPoolDataSource(cpds); > > tds.setMaxActive(1); > > tds.setMaxIdle(1); > > tds.setMaxWait(3000); */ > > > > Context initContext = new InitialContext(); > > Context envContext = (Context)initContext.lookup("java:/comp/env"); > > DataSource ds = > > (DataSource)initContext.lookup("java:/comp/env/jdbc/Test"); > > > > PreparedStatement pstmt = null; > > ResultSet rs = null; > > Connection conn = null; > > > > String action = request.getParameter("action"); > > if("1".equals(action)){ > > long time = 0; > > > > try{ > > conn = tds.getConnection(); > > conn
Re: Severity less - DBCP not closing connection.
Thanks a lot for the info. I need more explanation. I thought that Tomcat creates a new thread to serve the new request and continues execution of the current servlet thread after a forward() or redirect(). Now you mean that only after the forward() method is completed the control returns to the calling servlet.. If the servlet to which it is forwareded takes lot of time to complete then what will happen ?. This is not mentioned in any articles or books that I have read. Antony Paul. - Original Message - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 7:12 PM Subject: Re: Severity less - DBCP not closing connection. > Antony, > > I have seen DBCP not closing a connection if the request is forwarded to > > same page in the try block before the request is forwarded. With > > sendRedirect no problem. > > If you execute a "forward", then it acts just like a method call -- your > connection will still be absent from the pool. When you forward, you > exit your try/catch block before the browser makes the next request. > > You have to do your code like this: > > try > { > conn = ...; > } > catch (...) > { > } > finally > { > conn.close(); > } > > requestDispatcher.forward(...); > > > Otherwise you might deadlock your application. > > > I work with one connection to test for connection leak and any bottlenecks > > in code. > > This is a very good idea. > > > It works fine if I put the forward() after the end of finally > > block. I want to know whether it is bug or config error or Tomcat behaves > > so. > > This is a logic error - not a Tomcat bug or config error. You just have > to write more careful code. > > -chris > > > - > 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: HTTP Status 404.
If you created a new context try restarting Tomcat and look at the work directory of Tomcat usually at D:\ApacheTomcat4\work\Standalone\localhost\ to see whether the directory pg_mdp is created. If not you have to add a context in conf\server.xml. Antony Paul - Original Message - From: "Anunay Ashish" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 11:53 AM Subject: HTTP Status 404. Hi, I have Apache Tomcat 4.0.3 on my system. I am trying to access a file index.htm in the folder D:\ApacheTomcat4\webapps\pg_mdp through the url http://p223.tis.co.in:8080/pg_mdp/index.htm but is showing HTTP Status 404. What is the problem? Thanks in advance. Regards, Anunay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any jsp examples that pull from a local db?
Check this link. It have downloadable code. For more code do Googling. http://www.onjava.com/pub/a/onjava/2003/01/08/tomcat4.html Antony Paul - Original Message - From: "SL" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 11:12 AM Subject: Any jsp examples that pull from a local db? > Hey Guys, > > I know this maybe off the wall question, but I am learning JSPs and I > just installed tomcat to run my JSPs...so i was wondering if anyone had > any sample code that displays a jsp by pulling information from a local > db (access, mysql or oracle). > > thanks all! > sl > > __ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > - > 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]
JK2 in server.xml with 4.1.29
Hi, I am trying configure Tomcat 4.1.27 + IIS on win2k. In server.xml there are two entries namely and which one is to uncommented. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector
Hi Bhavdeep Sharma, I tested the sample given at the link http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm. I downloaded the zip file and configured IIS as specified in the docs. It works fine. But I dont know it is JK2 or JK. One thing to remember is you have to put the DLL in the bin directory. Putting it at other places wont work. After this I configured as per the docs in http://localhost/tomcat-docs/jk2/jk/iishowto.html. Again here you have to put the DLL in win32\i386 directory. Antony Paul - Original Message - From: "Bhavdeep Sharma" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 6:06 PM Subject: RE: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector Thanks all (especially Walter do Valle, Wendell Holmes, Stéphane Brogi) for the help. I will check on the link and try what they suggest. Just an update that now I am getting the following error. /jakarta/isapi_redirect_1.2.5.dll type Status report message /jakarta/isapi_redirect_1.2.5.dll description The requested resource (/jakarta/isapi_redirect_1.2.5.dll) is not available. regards, Bhavdeep -Original Message- From: Stéphane Brogi [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 9:29 PM To: Tomcat Users List Subject: RE: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector You will find more infos here. http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html Remember to restart iis and tomcat after modify properties files (workers.properties; uriworkermap.properties) Stéphane Brogi -Message d'origine- De : Walter do Valle [mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 novembre 2003 12:48 À : Tomcat Users List Objet : Re: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector Try this It helps me a lot. http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm - Original Message - From: Bhavdeep Sharma To: Tomcat Users List Sent: Tuesday, November 25, 2003 11:21 AM Subject: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector Hi all, I am running tomcat 4.0 as service on Win 2K I am trying to connect IIS to tomcat on AJP 13 connector using JK1.2 (isapi_redirect_1.2.5.dll) I try to access the sample JSP page using IIS and get the error "Page cannot be displayed" The same JSP page works fine if I access it directly from Tomcat. I have AJP 1.3 entry in server.xml file as un-commented. To verify that IIS is connecting to Tomcat or not I stopped the Tomcat service and then try to access the JSP page from IIS. I still get exactly the same error. Even the ISAPI log is also same irrespective of that Tomcat service is running or not. The content of the ISAPI log is pasted bellow. [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /bhsharma/examples/jsp/num/numguess.jsp [Tue Nov 25 17:21:18 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Nov 25 17:21:18 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/bhsharma/examples/jsp/num/numguess.jsp' [Tue Nov 25 17:21:18 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default redirection of /examples/jsp/num/numguess.jsp [Tue Nov 25 17:21:18 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Nov 25 17:21:18 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/jsp/num/numguess.jsp' [Tue Nov 25 17:21:18 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> *.jsp [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (775)]: HttpFilterProc [/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to ajp13 [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (838)]: HttpFilterProc check if [/examples/jsp/num/numguess.jsp] is points to the web-inf directory [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (878)]: HttpExtensionProc started [Tue Nov 25 17:21:18 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Tue Nov 25 17:21:18 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Tue Nov 25 17:21:18 2003] [jk_isapi_plugin.c (913)]: HttpExtensionProc got a worker for name ajp13 [Tue Nov 25 17:21:18 2003] [jk_ajp12_worker.c (242)]: Into jk_worker_t::get_endpoint [Tue Nov 25 17:21:18 2003] [jk_ajp12_worker.c (137)]: Into jk_endpoint_t::service [Tue Nov 25 17:21:18 2003] [jk_connect.c (158)]: Into jk_open_socket [T
Re: Preload JSP when it's startup
I use the following Ant build file to precompile all jsps to work dir. I prepared this based on another post in this list. All the jsps are converted to java and then to class files. Rgds Antony Paul. - Original Message - From: <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, November 28, 2003 12:25 PM Subject: Re: Preload JSP when it's startup > Can you please tell me exact instruction? > Script?? > store it in where? > how? > > > > > > Deepak Parbhoo <[EMAIL PROTECTED]> > 11/28/2003 01:12 PM > Please respond to "Tomcat Users List" > > > To: Tomcat Users List <[EMAIL PROTECTED]> > cc: > Subject:Re: Preload JSP when it's startup > > > Write a script that calls the jsp's with '?jsp_precompile=true' as a > parameter. > So if the page is called start.jsp you will make a request to: > "http://:/start.jsp?jsp_precompile=true". > > [EMAIL PROTECTED] wrote: > > >As we know, first time when JSP is called, it's complied into Servlet > >and > >the next time you call the same jsp, the respond time will be faster. > > > >Thus, anywar for Tomcat to set to preload the JSP page when it's > >starting > >up the server? > > > >Thanks. > > > > > > > > > > - > 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]
JK2 DLL not loaded.
Hi, I successfully installed JK(isapi_redirect.dll) and is working fine with Tomcat 4.1.27 and IIS5 on Win2k. I tried JK2(isapi_redirector2.dll).(I dont know which is JK and JK2) Followed all steps given at the connectors page but the DLL is not loaded. A red arrow is shown at the left. And no log file output. Does JK2 requires jk2.properties. No setting is made for this in the registry. Also I want akk the static content to be servled by IIS. For this I added a virtual directory in IIS which points to the webapp context docbase. All jsps are served by Tomcat and images served by IIS. But no servlets are working. It is giving a 404 error. The uriworkermap content is given below. How to make servlets work ?. default.worker=ajp13 /app/=$(default.worker) /app/*.jsp=$(default.worker) /app/servlet/*=$(default.worker) Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preload JSP when it's startup
I use the following Ant build file to precompile all jsps to work dir. I prepared this based on another post in this list. All the jsps are converted to java and then to class files. Rgds Antony Paul. - Original Message - From: <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, November 28, 2003 12:25 PM Subject: Re: Preload JSP when it's startup > Can you please tell me exact instruction? > Script?? > store it in where? > how? > > > > > > Deepak Parbhoo <[EMAIL PROTECTED]> > 11/28/2003 01:12 PM > Please respond to "Tomcat Users List" > > > To: Tomcat Users List <[EMAIL PROTECTED]> > cc: > Subject:Re: Preload JSP when it's startup > > > Write a script that calls the jsp's with '?jsp_precompile=true' as a > parameter. > So if the page is called start.jsp you will make a request to: > "http://:/start.jsp?jsp_precompile=true". > > [EMAIL PROTECTED] wrote: > > >As we know, first time when JSP is called, it's complied into Servlet > >and > >the next time you call the same jsp, the respond time will be faster. > > > >Thus, anywar for Tomcat to set to preload the JSP page when it's > >starting > >up the server? > > > >Thanks. > > > > > > > > > > - > 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: trouble with servelts
Hello Girish, You have to set the CLASSPATH environment varaible to include the tomcat install directory\common\lib\servlet.jar in order to compile servlets. Have you run the example application available at http://localhost/examples/servlets/index.html. rgds Antony Paul - Original Message - From: "kandathil girish" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 9:00 PM Subject: trouble with servelts > i am a student and we use Tomcat as our server. I have been trying to run a basic servlet program but have been unsucessful as of yet. My tomact runs perfect, gives me the index page and stuff. > > Bu my servelt comiples with following errors > > C:\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\HelloWWW.java:2: package javax.servlet does not exist > import javax.servlet.*; > ^ > C:\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\HelloWWW.java:3: package javax.servlet.http does not exist > import javax.servlet.http.*; > ^ > C:\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\HelloWWW.java:13: cannot resolve symbol > symbol : class HttpServlet > location: class HelloWWW > public class HelloWWW extends HttpServlet { > ^ > C:\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\HelloWWW.java:14: cannot resolve symbol > symbol : class HttpServletRequest > location: class HelloWWW > public void doGet(HttpServletRequest request, > ^ > C:\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\HelloWWW.java:15: cannot resolve symbol > symbol : class HttpServletResponse > location: class HelloWWW > HttpServletResponse response) > ^ > C:\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\HelloWWW.java:16: cannot resolve symbol > symbol : class ServletException > location: class HelloWWW > throws ServletException, IOException { > ^ > 6 errors > Tool completed with exit code > > > > the code for the same is as follow: > > import java.io.*; > import javax.servlet.*; > import javax.servlet.http.*; > /** Simple servlet that generates HTML. > * > * Taken from Core Servlets and JavaServer Pages > * from Prentice Hall and Sun Microsystems Press, > * http://www.coreservlets.com/. > * © 2000 Marty Hall; may be freely used or adapted. > */ > public class HelloWWW extends HttpServlet { > public void doGet(HttpServletRequest request, > HttpServletResponse response) > throws ServletException, IOException { > response.setContentType("text/html"); > PrintWriter out = response.getWriter(); > String docType = > " "Transitional//EN\">\n"; > out.println(docType + > "\n" + > "Hello WWW\n" + > "\n" + > "Hello WWW\n" + > ""); > } > } > > > > > - > Do you Yahoo!? > Free Pop-Up Blocker - Get it now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Writing methods in servlets
Hi all, Is there any issues associated with writing methods in servlets other than the morality of it( I dont use methods in JSP pages). My application uses controller servlets for redirecting requests to different pages based on the parameter(action) passed to it. Application is designed in a way that it will have one controller servlet for a group of actions on same entity. Earlier I used to check the action in if else blocks. Now the servlet is becoming cluttered with lots of if else blocks. So I want to move this to methods and I must do it in Servlets itself (The application design dont allow to move this to another class). I know that container creates multiple threads of servlce method of (I dont know how) same servlet to service multiple requests. Then what about other custom methods in servlets. I dont use any instance variables. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Some questions on Java,Servlet, JSP and Tomcat.
Hi all , I have some questions for which I was unable to find answers by Googling. So I am asking it here. It is quite long. 1, Is there any security threat for Tomcat 4.1 series. I am using Tomcat 4.1.27 for development. What is the history of Tomcat in this regard. Is Tomcat vulnerable to any remote exploitation issues provided that the application is well written. I want to collect some arguments to favour Java and Tomcat. 2, Any documentation on how servlet container is creating multiple instances of same HttpServlet without implementing Runnable interface. At least provide some links to docs or books which teaches threading issues in servlet. It is only for a curiousity. I am only an application developer. I want to improve my knowledge in servlet technology. 3, How to test a servlet for threading issues. 3, Is there anything wrong in implementing logic in service method in a class which extends HttpServlet. What will happen if a doHead and other requests are send to it. How to simulate a doHead,doTrace etc.. request ?. I got some info at http://www.jguru.com/faq/view.jsp?EID=8824 4, Is it possible to synchronise a block of code in a servlet. I mean only one thread of the same servlet execute the same portion of code at a time and completes execution. I dont want to implement SingleThreadModel and there is only one name in web.xml pointing to same servlet class. I have an idea. Is this right. Create a synchronised block which synchronised on the class. synchronized(AlertServlet.class){ --- } My purpose is to synchronize database access. The application dont have a heavy load. 5, Is it secure to transfer a request and response to another object which is created in the service method of a servlet ?. I believe it is a safe approach. I think Struts is doing this. 6, I have seen that Tomcat not shutting down the threads which are active when shut down command is issued. I used to kill Tomcat in such conditions. Does Tomcat will ever kill this threads if they are not completed execution. What criteria is used in such cases. 7, In Tomcat 4.0.x series there is one file catalina.out which prints the number of active Httpprocessor active(I think it is number of threads) ut it is not found in 4.1 series. Is there any way to get this log file in 4.1. I also want to writing to this log mailed to me when the no. of HttpProcessors exceeds a limit without tweaking Tomcat code. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Quality of open source code - not a survey.
Hi, I am not questioning quality of opens source projects. My intention is to learn from looking at the source code of open source projects. I want to know whether it is good to learn from looking at the source code of this kind of projects. I want to develop best coding practices and know how things work and how to implement it. To learn it, the cheap way available to me is looking at code written by some experts. I believe people who wrote Tomcat,JSTL and other have godd knowledge of Java. Is there anything wrong in doing such things ? rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copying files from Tomcat 4.1.x to Tomcat 5.x
Hi all, Is there any compatibility issues in putting the jsp/servlet files developed in Tomcat 4.1.x series to Tomcat 5.x. Application uses only Servlets 2.3 and JSP 1.2. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Testing servlet for thread safety.
Hi, I asked this question as part of another mail but Mr. Tim Funk left it unanswered. How to test a servlet for thread safety. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Testing servlet for thread safety.
My intention was not to blame anybody for not answering it. I just want to mention that he answered all other questions. I am not writing more because I dont know whether it may damage any one else. And sorry for my poor communication and I am not fluent in English. Thanks for answering. I want to know any special component is available in these testing frameworks. I want open source. rgds Antony Paul . - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 3:47 PM Subject: Re: Testing servlet for thread safety. > On 12/09/2003 07:16 AM Antony Paul wrote: > > Hi, > > I asked this question as part of another mail but Mr. Tim Funk left it > > unanswered. > > How to test a servlet for thread safety. > > Antony, > it might be the case that he didn't have time to answer, you know. > Nobody on this list is obliged to answer any questions. Attempting to > 'name and shame' someone into answering your questions is not going to > make you popular and might backfire on you. > > In answer to your question, the best approach would be check first that > you are not abusing any singletons, static methods or member variables > in your servlets. > > Then you should set up tests using one of the testing frameworks > available that allows you to submit real data and check the results. > > HTH > Adam > > - > 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: Need some Tomcat Configuration help badly
Is your problem solved. I have noted one thing about Tomcat. If the compiled classes modification date is less than that of the machine running Tomcat, Tomcat will never know that the file is changed and never reload it. Only a reload can load the new class. This is true for servlets,beans nad JSP. I faced this problem when workstation machine time is behind server time. You can overcome this by syncing all machines clocks. Or advise students to perform a reload through the manager task. Or write an Ant script to reload it. rgds Antony Paul. - Original Message - From: "Dick Steflik" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 5:24 AM Subject: Re: Need some Tomcat Configuration help badly > I had the same question. In all of the years I've worked with Java I've > always thought it was free of memory leaks. If you use a different > compiler does the problem go away. Is that how people like JRun > (Macromedia) and WebSphere (IBM) avoid the problem? > > Dick Steflik > > Nikola Milutinovic wrote: > > >>>>BTW, there is a bug with Tomcat which will cause it to run out of > >>>>memory after a number of restarts. You will probably run into this > >>>>with 30 students uploading new classes. You will also want to make > >>>>sure that the fork attribute for the JspServlet is set to true as well > >>>>as compiling JSPs will leak memory unless the compiling process is > >>>>forked. > >>>> > >>>> > >>>Is this true only for Tomcat4 or for version 5 as well? > >>> > >>> > >>True for both. > >> > >> > > > >It strikes me odd, I've been hearing about "memory leak while recompiling > >JSPs" for a couple of years. Is it really there and is it going to be > >removed in the near future? I recall that being attributed to "javac" memory > >leaks. That's why they advise to pre-compile JSP for production environment. > >I cannot fathom how can it be: > > > >a) so consistent > >b) not dependant on JDK version > > > >Any insight? > > > >Nix. > > > > > >- > >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: /server/lib available to web applications?
Why this directory have jars of file upload,beanutils. Antony Paul - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 6:53 PM Subject: RE: /server/lib available to web applications? Howdy, No, server/lib is not available to webapp. No, do not copy the jar from server/lib to common/lib. If you want it available to both webapps and the server, just have one copy in common/lib, that's what that repository is for. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Philipp Taprogge [mailto:[EMAIL PROTECTED] >Sent: Sunday, December 14, 2003 1:54 PM >To: [EMAIL PROTECTED] >Subject: /server/lib available to web applications? > >Hi! > >Just a short question (I must admit Im too lazy to try is out). >I have noticed that commons-fileupload is in >$CATALINA_HOME/server/lib. Are the jars in there available to the >webapplications' classloaders or are they only used internally? >If they are not, is it save to place the same jar in /common/lib as well? > >Thanks > > Philipp Taprogge > > >- >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]
Re: RequestDispatcher in servlet is not working
You can call forward() before the response is committed. I seems that it is throwing IllegalStateException. Antony Paul - Original Message - From: "Teja Jo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 9:27 AM Subject: RequestDispatcher in servlet is not working > Hello everyone, > > My servlet after processing something from the HttpServletRequest received by it - is supposed to forward the request using RequestDispatcher - but it is not doing so.(Only when directly forwarded without doing any initial processing with the request - it gets forwarded).Please give a solution for this. > > Thanks and regards, > Tejashri. > > > > > - > Do you Yahoo!? > Free Pop-Up Blocker - Get it now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RequestDispatcher in servlet is not working
It is what I said IllegalStateException.. It is caused by writing to a PrintWriter or writing the headers. You can avoid this by not writing to the PrintWriter and not setting any response headers. You dont need to write to out if you are forwarding a request. Write to StringBuffer() then write to out if not forwading. Another way is increasing the buffer size of out. Antony Paul. - Original Message - From: "Teja Jo" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 9:57 AM Subject: Re: RequestDispatcher in servlet is not working > Hello, > > No it is not throwing any exceptions.And it is asked to forward before the response is committed. > > Regards, > Tejashri. > > Antony Paul <[EMAIL PROTECTED]> wrote: > You can call forward() before the response is committed. I seems that it is > throwing IllegalStateException. > > Antony Paul > > - Original Message - > From: "Teja Jo" > To: > Sent: Thursday, December 18, 2003 9:27 AM > Subject: RequestDispatcher in servlet is not working > > > > Hello everyone, > > > > My servlet after processing something from the HttpServletRequest received > by it - is supposed to forward the request using RequestDispatcher - but it > is not doing so.(Only when directly forwarded without doing any initial > processing with the request - it gets forwarded).Please give a solution for > this. > > > > Thanks and regards, > > Tejashri. > > > > > > > > > > - > > Do you Yahoo!? > > Free Pop-Up Blocker - Get it now > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > Do you Yahoo!? > Free Pop-Up Blocker - Get it now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp.error.attribute.unterminated -- WTF?
It seems like a custom tag error message. Do u use any custom tags. Antony Paul - Original Message - From: "Josh G" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 12:01 PM Subject: jsp.error.attribute.unterminated -- WTF? > > Hi All, pulling out copious amounts of hair for this one... here's the code: > > <% > for (int i = 0; i < sectionNames.length; i++ ) { > %> > > <%= sectionNames[i] %>_off = new Image(); > <%= sectionNames[i] %>_off.src = ""; > <%= sectionNames[i] %>_on = new Image(); > <%= sectionNames[i] %>_on.src = ""; > <%= sectionNames[i] %>_hover = new Image(); > <%= sectionNames[i] %>_hover.src = ""; > > <% } %> > > It is in some client-side javascript, and I get a > jsp.error.attribute.unterminated error on a out-of-line-range character on > the first line inside the loop. Uncle google has nothing to say about this, > and I can't even figure out what the error means, let alone trying to > decipher the problem. If I remove the lines inside the loop it works as > expected. > > This is driving me totally nuts, any help here _much_ appreciated. > > Cheers, > -Josh > > > "He likes to run, And then the thing with the.. person.. > ... Oh boy, that monkey is going to pay." > > [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] > > [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.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: [Tomcat Admin user name & password]
check for any file named admin-users.xml. I think Tomcat 5 uses this file. I am not sure. Antony Paul. - Original Message - From: "saravanan" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 9:57 PM Subject: Re: [Tomcat Admin user name & password] > Hi Karam, >Thanks for the reply. I tried it. I also added the following lines. > > > > Now if try login with uname as admin and pwd as pass, i get the > error message inavalid login. correct me if i am wrong. Thanks for your > support. > > Saravanan > L.Karam wrote: > > > in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag > > > > > > > > - Original Message - > >From: saravanan > >To: [EMAIL PROTECTED] > >Sent: Thursday, December 18, 2003 2:13 PM > >Subject: [Tomcat Admin user name & password] > > > > > >Hi all, > > > > i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 > >box and its running. But I cant login to the admin tool. Whats the admin > >user name & pwd. How do i konw it???. any help wud be greatly appreciated. > > > >Thanks in advance. > >TR.Saravanan > > > > > > > >- > >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: Stupid servlet question...
What is an application scope servlet ?. You can ask the container to initialize a servlet at container start up by setting the parameter to 1 in web.xml. like this. action org.apache.struts.action.ActionServlet 1 Antony Paul - Original Message - From: "Mikael Aronsson" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, December 19, 2003 5:41 PM Subject: Stupid servlet question... > Hi ! > > I have an application scope servlet and it works fine, but I would like to > run it all the time as soon as tomcat starts, not just after the first use, > is this possible ? > > Mikael > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 source compiling error
Hi all, I am trying to compile Tomcat 5. I downloaded the source and followed the directions in building.html at jakarta site. Problem is I am using JDK 1.3.1. I is giving some error messages. 1, One is related to JAAS. I downloaded JAAS and JSSE. JSSE is put in base.path(usr/share/java). I am on win2k. But where to put JAAS ?. Currently I put this in jre\lib\ext. Where is the suitable place for this. I dont want to put it in ext directory. I want to know which program is using which libraries. 2, javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory cannot be found This one I cannot find a solution. Googling said that ant 1.5 doesnt have XSLT transformer and says to download and use xalan. Then what is xerces-2.5.0. If using xalan where to put it. There is no setting for xalan in build.properties. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying app in Tomcat 5
Hi, I just installed(built) Tomcat 5.0.16. I copied an xml file containing deployment description of a context to webapps directory. Restarted Tomcat. It gives 404 error. The same procedure works with Tomcat 4.1.27. What is wrong ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Off Topic- Core java
add . (current directory) to classpath. There is no need to specify where the java API libraries to 1.4 Sun javac compilers. Antony Paul. - Original Message - From: "N.B.Bopanna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 24, 2003 11:32 AM Subject: Off Topic- Core java > Hi all, > please help me with the following problem. > > I have a java file in my system (C:\Esculation.java) > When I compile it from command prompt using javac command it compiles. > but when i try to execute the file (java Esculation) from the prompt it > gives the following exception. > exception in thread main java.lang.noClassDefException . > this file has a main method and it works on other systems. > > the classpath is set to C:\jdk1.4\lib > and path is C:\jdk1.4\bin > > the file does not use any cutomized packages. > Thanks > Bopanna > > > > - > 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: tomcat4.1.24 not compiling jsp page
Possibly some class file is corrupted or it may be due to a version mismatch between JDK and JVM or an older version of class files in class path. What versions of JDK and and JVM is in your machine ?. Antony Paul - Original Message - From: "N.B.Bopanna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 24, 2003 12:24 PM Subject: tomcat4.1.24 not compiling jsp page > hi all, > when i put a new .js file in tomcat-4.1.24 and try to call it i get the > following error. > can any body throw some light on this problem? > regds > Bopanna > > type Exception report > > message > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exception > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: -1 in the jsp file: null > > Generated servlet error: > [javac] Since fork is true, ignoring compiler setting. > [javac] Compiling 1 source file > [javac] Since fork is true, ignoring compiler setting. > [javac] An exception has occurred in the compiler (1.4.0_01). Please > file a bug at the Java Developer Connection > (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug > Parade > for duplicates. Include your program and the following diagnostic in your > report. Thank you. > [javac] java.lang.VerifyError: (class: > com/sun/tools/javac/v8/comp/Resolve, method: resolveSelf signature: > (ILcom/sun/tools/javac/v8/comp/Env;Lcom/sun/tools/javac/v8/code/Symbol$Ty > peS > ymbol;Lcom/sun/tools/javac/v8/util/Name;Z)Lcom/sun/tools/javac/v8/code/Sy > mbo > l;) Illegal local variable nC# > [javac] at > com.sun.tools.javac.v8.JavaCompiler.(JavaCompiler.java:97) > [javac] at > com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:127) > [javac] at > com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:141) > [javac] at com.sun.tools.javac.v8.Main.compile(Main.java:523) > [javac] at com.sun.tools.javac.Main.compile(Main.java:32) > [javac] at com.sun.tools.javac.Main.main(Main.java:23) > > > > at > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHan > dle > r.java:130) > at > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.jav > a:2 > 93) > at org.apache.jasper.compiler.Compiler.generateClass > (Compiler.java:353) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) > at > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.jav > a:4 > 73) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav > a:1 > 90) > 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(Applicat > ion > FilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > rCh > ain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve > .ja > va:256) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in > vok > eNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48 > 0) > at org.apache.catalina.core.ContainerBase.invoke > (ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve > .ja > va:191) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in > vok > eNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48 > 0) > at org.apache.catalina.core.ContainerBase.invoke > (ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415 > ) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: > 180 > ) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in > vok > eNext(StandardPipeline.java:643) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal > ve. > java:171) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in > vok > eNext(StandardPipeline.java:641) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: > 172 > ) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in > vok > eNext(StandardPipeline.java:641) > at >
Re: jsp compilation error
Where is the java bean class file residing. It must be in WEB-INF\classes or WEB-INF\lib(as jar file). Antony Paul - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 24, 2003 2:31 PM Subject: jsp compilation error > Hi all, > > i Set up every thing for tomcat and postgresql and now i created a jsp file and accessing a bean in that by using useBean tag ,by opening the jsp file i am getting the following error > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: -1 in the jsp file: null > > Generated servlet error: > [javac] Compiling 1 source file > > /usr/local/jakarta-tomcat-5.0.16/work/Catalina/localhost/OnlineExam/org/apac he/jsp/Jsp/welcome_jsp.java:6: '.' expected > import QuestionBean; >^ > 1 error > > > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:127) > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 51) > org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 52) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 91) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > > pls > Help to solve this problem > > > Regards > Dhayalan.G > > - > 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: Can't run servlets
You have to declare the url mappings for servlets. Do this after all servlet declarations. Like this TestingServlet TestingServlet TestingServlet /TestingServlet Another way is using the invoker servlet provided by Tomcat. If using invoker servlet no need of servlet mapping. But it have security bugs and is disabled by default. Antony Paul. - Original Message - From: "X V Jay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 26, 2003 1:43 PM Subject: Can't run servlets > Hi, > I have been unable to run servelets using my tomacat. I have put the > class file in WEB-INF\classes. Please tell me where did I go wrong ? > Thank you > X V Jay > > > Here is the source > = > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > import java.util.*; > > public class TestingServlet extends HttpServlet { > > public void doGet(HttpServletRequest request, > HttpServletResponse response) > throws ServletException, IOException { > > PrintWriter out = response.getWriter(); > out.println(""); > out.println(""); > out.println("Servlet Testing"); > out.println(""); > out.println(""); > out.println("Welcome to the Servlet Testing Center"); > out.println(""); > out.println(""); > } > } > > > Here is the web.xml > = > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> > > > > TestingServlet > TestingServlet > > > === > > Error message generated > == > > HTTP Status 404 - /myJspApps/servlet/TestingServlet > > -- > type Status report > > message /myJspApps/servlet/TestingServlet > > description The requested resource (/myJspApps/servlet/TestingServlet) > is not available. > > > --- > > Apache Tomcat/4.1.27 > > = > > - > 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: java.lang.OutOfMemoryError
Please specify the OS version. A similar thread is there . Antony Paul - Original Message - From: "Lam Chee Choong" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, December 26, 2003 8:11 PM Subject: RE: java.lang.OutOfMemoryError > hm..i see...but I am working on a server with 4GB of RAM,I think it should > have more than enough??anyway u did mention about closing connection, what > connection u mean? > > -Original Message- > From: akki [mailto:[EMAIL PROTECTED] > Sent: 26 December 2003 10:51 AM > To: Tomcat Users List > Subject: RE: java.lang.OutOfMemoryError > > > yeah i also encountered this problem > actaully it is bcoz u r not closing any connection and eventually it is > eating up ram > u can check for it > or increase ur RAM size > > -Original Message- > From: Lam Chee Choong [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 25, 2003 8:22 PM > To: [EMAIL PROTECTED] > Subject: java.lang.OutOfMemoryError > > > i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the > java.lang.OutOfMemoryError error when i trying to reload my application.this > does not happen frequenly. it was like every 10 times i reload and 3 times > the error came out. i can restart the tomcat and it work fine. > does everybody encounter this b4? > > > > > - > 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]
What after reloading a context
Hi all, What happens to all loaded servlets on reloading a context ?. All servlets are destroyed first then these are initialised after reload before any request is arrived ?. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] custom tags in a page
Hi, I wrote two custom tags. One is used only once in the page(msgtag) while the other one is used multiple times(outtag) similar to JSTL c:out. Both classes extends BodyTagSupport. When I looked at the compiled servlet code both tags are called in different ways. Each use of msgtag is made a method call. If I put 2 msgtag(both are exacly same) in JSP it creates 2 methods. outtag is invoked directly in servlet. Why the difference ?. Is this behavior can be controlled through coding ?. Which one is better ?. Why Tomcat is creating one method per each tag invocation.? Why not manage it like an object. Each time it is getting an instance from a pool ? BTW Extending TagSupport or BodyTagSupport is better. I have no need to process the body ? Any performance gain ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] custom tags in a page
Thank you for the reply. 'msgtag' don't have attributes. The other tag 'outtag' have attributes and it is invoked in service method itself . No tags are nested. But I cannot understand the logic in creating a separate method call for each tag invocation. In each method it is using same code other than the retrieved tag instance is assigned to a new variable and methods are invoked on this. Is there any particular reason for doing this ?. My reason for asking this question is to know and learn how pooling works. rgds Antony Paul - Original Message - From: "Bill Barker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 30, 2003 11:36 AM Subject: Re: [OT] custom tags in a page > Easy question first: If you don't need BodyTag, don't use it, since it is a > potential memory hog. If you need to process it in a loop, use IterationTag > instead. (of course this assumes TC 4.x or higher) > > Hard question last: Without seeing your JSP page, I can't tell you exactly > why Jasper chooses to create two methods. However, popular candidates are: > 1) The different calls to 'msgtag' specify different attributes sets. > 2) One or more of the 'msgtag' invocations is nested within the body of > another Tag. > > The reason to use method-calls is to (try) and prevent any single method in > the resulting .class from exceding 64K (at which point javac pucks :). > > "Antony Paul" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > I wrote two custom tags. One is used only once in the page(msgtag) while > > the other one is used multiple times(outtag) similar to JSTL c:out. Both > > classes extends BodyTagSupport. When I looked at the compiled servlet code > > both tags are called in different ways. Each use of msgtag is made a > method > > call. If I put 2 msgtag(both are exacly same) in JSP it creates 2 methods. > > outtag is invoked directly in servlet. > > Why the difference ?. > > Is this behavior can be controlled through coding ?. > > Which one is better ?. > > Why Tomcat is creating one method per each tag invocation.? Why not manage > > it like an object. Each time it is getting an instance from a pool ? > > > > BTW Extending TagSupport or BodyTagSupport is better. I have no need to > > process the body ? Any performance gain ? > > > > rgds > > Antony Paul > > > > > - > 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: Building 5.1 from Source
When I run ant it is running cvs and it fails and continue processing other tasks. I dont have CVS in path. Antony Apul. - Original Message - From: "Ramakrishna Rallapalli" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, December 30, 2003 11:56 AM Subject: RE: Building 5.1 from Source I tried setting up the proxy details, but still it could not get files from CVS. Thanks for your reply. I will try out with 5.0.16. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Re: Building 5.1 from Source Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. "Ramakrishna Rallapalli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] om... Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - 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: Building 5.1 from Source
Ya you are right. CVS isnt able to download source. Other downloads are Ok. ie. proxy settings are Ok. Antony Paul - Original Message - From: "Ramakrishna Rallapalli" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, December 30, 2003 12:13 PM Subject: RE: Building 5.1 from Source Although the CVS is put in path , still I faced problem in getting the files checkout from CVS. Ramakrishna -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:09 PM To: Tomcat Users List Subject: Re: Building 5.1 from Source When I run ant it is running cvs and it fails and continue processing other tasks. I dont have CVS in path. Antony Apul. - Original Message - From: "Ramakrishna Rallapalli" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, December 30, 2003 11:56 AM Subject: RE: Building 5.1 from Source I tried setting up the proxy details, but still it could not get files from CVS. Thanks for your reply. I will try out with 5.0.16. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Re: Building 5.1 from Source Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. "Ramakrishna Rallapalli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] om... Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what if response.sendRedirect(null)
Hi, What will happend if response.sendRedirect(null) is called. It is giving a directory listing. No error is thrown. Is this as per the spec ? I am using Tomcat 4.1.27 with JDK 1.3.1 rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
adding timestamp to logs
Hi, I want to add a time stamp to Tomcat loggings. I am using JDK 1.3 and no log4j. I want to add this to stderr. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF display under Tomcat 4.1.29
When sending a dynamically created PDF file to a browser with content type "application/pdf", the browser displays a file save dialog box. Under Tomcat versions 3.3.1 and 4.1.27, the PDF file is displayed using the acrobat plugin. Something changed between versions 4.1.27 and 4.1.29 in the way a file is sent to a browser. Seems as if the content type gets lost. Configuration? Security? Paul M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding timestamp to logs
In this message there is no timestamp. It is from stderr.log. [ERROR] ThreadPool - -All threads are busy, waiting. Please increase maxThreads or check the servlet status5 5 Antony Paul - Original Message - From: "Rhino" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, January 03, 2004 12:59 AM Subject: Re: adding timestamp to logs > I'm not sure I understand what your problem/question is. I've been using > Tomcat 4.1.24 for over a year and Tomcat 4.1.29 for the last few weeks and > all the messages generated by Tomcat already begin with timestamps. > > Or are you asking how to put a timestamp in a message that you generate from > within your servlets? > > Rhino > > - Original Message - > From: "Antony Paul" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Friday, January 02, 2004 8:00 AM > Subject: adding timestamp to logs > > > > Hi, > > I want to add a time stamp to Tomcat loggings. I am using JDK 1.3 and > no > > log4j. I want to add this to stderr. > > > > rgds > > Antony Paul > > > > - > > 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]
No Java compiler was found ....
Hi all, I am using Tomcat 5.0.16(for testing purpose only). When a page is having an error like missing semicolon or a special character in code it is giving the following error in browser. org.apache.jasper.JasperException: Unable to compile class for JSP No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl er.java:127) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 351) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415) org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 552) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Interestingly it is printing lots of lines in console including the classpath and the actual error(; expected). I am using it on Win2k SP4 machine which have both JDK1.3.1 and 1.4.1 installed. I compiled Tomcat from source. I remember that JDK 1.4.1 is used for compiling Tomcat and in startup.bat I have set the JAVA_HOME and CATALINA_HOME to JDK1.4.1. On getting error message I copied tools.jar to common\lib and error persists. Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems running pre-compiled JSP classes when in subdirectories
I have same problem but it is not thoroughly investigated. Any help will be appreciated Antony Paul - Original Message - From: "Jay Glanville" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 6:50 PM Subject: Problems running pre-compiled JSP classes when in subdirectories > I originally posted this question back in mid-December, but without any > responses. In the hopes that someone will have a hit or a solution, I'm > reposting the question again. > > > I'm having a problem when I try to use my pre-compiled JSP files: I > receive a NoClassDefFoundError exception. Here's what I'm doing ... > > I have pre-compiled my JSP classes using the JspC plugin from ant. My > files compile without complaint. However, when I try to access the > files through tomcat, I receive some NoClassDefFoundError exceptions. > But these exceptions only occur when I'm accessing JSPs in the > subdirectories off of the web root. > > Here's my application's background. I have two files: > /index.jsp > /dir/index.jsp > The contents of the two files are just simple HTML. I precompiled the > JSP using the JspC ant target, then compiled using javac. Finally, I > created a context pointing the work directory to the location of my java > and class files. When I tried to access the first file > (http://localhost/context/index.jsp) everything went fine. However, > when I tried to access the second file > (http://localhost/context/dir/index.jsp), I received the > NoClassDefFoundError. The log file looks like this: > > 2003-12-15 20:11:25 StandardWrapperValve[jsp]: Servlet.service() for > servlet jsp threw exception > javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: > org/apache/jsp/dir/index_jsp) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > [deleted ...] > - Root Cause - > java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: > org/apache/jsp/dir/index_jsp) > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:537) > at java.lang.ClassLoader.defineClass(ClassLoader.java:448) > at > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) > [deleted] > > Now, according to my research on this mailing list, the most frequent > reason for a NoClassDef error is capitalization. However, this isn't > the case in my situation as the two package names are completely > different: org/apache/jsp/index_jsp vs. org/apache/jsp/dir/index_jsp. > > I'm using Tomcat 4.1.29. > > Any suggestions on how to alleviate this situation would be greatly > appreciated. > > Thanks > > JDG > > PS: I should also point out that I have tried the recommended way of > precompiling my JSP by converting to servlets > (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%2 > 0Application%20Compilation). However, I have a problem with this > method: it makes it that much harder to patch my application. With the > non-servlet approach, I just simply deliver the modified JSP files. With > the servlet approach, I need to deliver the classes, plus ensure that > the web.xml is correct (add new entries, remove old ones, modify where > needed), plus restart the context. > > > > > -- > Jay Glanville > > > > - > 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: Problems running pre-compiled JSP classes when in subdirectories
The generated servlets are not put in a package. When Tomcat is compiling JSP it is put in org.apache.jsp. How to set this in the jspc task. The files are generated as usual in the work directory in the same structure as Tomcat itself compiles JSP files. Antony Paul - Original Message - From: "Ralph Einfeldt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 7:06 PM Subject: RE: Problems running pre-compiled JSP classes when in subdirectories May be you should have a look at the following: - the package statements in the generated source files - the file structure of the generate class files > -Original Message- > From: Jay Glanville [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 2:20 PM > To: 'Tomcat Users List' > Subject: Problems running pre-compiled JSP classes when in > subdirectories > > > > Here's my application's background. I have two files: > /index.jsp > /dir/index.jsp > java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: > org/apache/jsp/dir/index_jsp) > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:537) > at java.lang.ClassLoader.defineClass(ClassLoader.java:448) > at - 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: Problems running pre-compiled JSP classes when in subdirectories
exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: index_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: index_jsp) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.lang.ClassLoader.defineClass(ClassLoader.java:431) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) Interestingly if the jsp is comiled to servlet using jspc ant task and page is requested through browser then everything goes fine. If the generated source file is compiled using javac target of it is showing this error. Antony Paul - Original Message - From: "Edson Alves Pereira" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 8:12 PM Subject: RE: Problems running pre-compiled JSP classes when in subdirectories > Show us the exception how it appears to you. > > > -- > > De: Jay Glanville[SMTP:[EMAIL PROTECTED] > > Responder: Tomcat Users List > > Enviada: quarta-feira, 7 de janeiro de 2004 10:20 > > Para: 'Tomcat Users List' > > Assunto: Problems running pre-compiled JSP classes when in > > subdirectories > > > > I originally posted this question back in mid-December, but without any > > responses. In the hopes that someone will have a hit or a solution, I'm > > reposting the question again. > > > > > > I'm having a problem when I try to use my pre-compiled JSP files: I > > receive a NoClassDefFoundError exception. Here's what I'm doing ... > > > > I have pre-compiled my JSP classes using the JspC plugin from ant. My > > files compile without complaint. However, when I try to access the > > files through tomcat, I receive some NoClassDefFoundError exceptions. > > But these exceptions only occur when I'm accessing JSPs in the > > subdirectories off of the web root. > > > > Here's my application's background. I have two files: > > /index.jsp > > /dir/index.jsp > > The contents of the two files are just simple HTML. I precompiled the > > JSP using the JspC ant target, then compiled using javac. Finally, I > > created a context pointing the work directory to the location of my java > > and class files. When I tried to access the first file > > (http://localhost/context/index.jsp) everything went fine. However, > > when I tried to access the second file > > (http://localhost/context/dir/index.jsp), I received the > > NoClassDefFoundError. The log file looks like this: > > > > 2003-12-15 20:11:25 StandardWrapperValve[jsp]: Servlet.service() for > > servlet jsp threw exception > > javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: > > org/apache/jsp/dir/index_jsp) > > at > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > [deleted ...] > > - Root Cause - > > java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: > > org/apache/jsp/dir/index_jsp) > > at java.lang.ClassLoader.defineClass0(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:537) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:448) > > at > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) > > [deleted] > > > > Now, according to my research on this mailing list, the most frequent > > reason for a NoClassDef error is capitalization. However, this isn't > > the case in my situation as the two package names are completely > > different: org/apache/jsp/index_jsp vs. org/apache/jsp/dir/index_jsp. > > > > I'm using Tomcat 4.1.29. > > > > Any suggestions on how to alleviate this situation would be greatly > > appreciated. > > > > Thanks > > > > JDG > > > > PS: I should also point out that I have tried the recommended way of > > precompiling my JSP by converting to servlets > > (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%2 > > 0Application%20Compilation). However, I have a problem with this > > method: it makes it that much harder to patch my application. With the > > non-servlet approach, I just simply deliver the modified JSP files. With >
Re: Problems running pre-compiled JSP classes when in subdirectories
I think the problem is the compiled source file is not in the org.apache.jsp package. How to set this in jspc task. Antony Paul - Original Message - From: "Antony Paul" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 7:41 PM Subject: Re: Problems running pre-compiled JSP classes when in subdirectories > exception > > javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: > index_jsp) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: > index_jsp) > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:502) > at java.lang.ClassLoader.defineClass(ClassLoader.java:431) > at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) > at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) > > > Interestingly if the jsp is comiled to servlet using jspc ant task and page > is requested through browser then everything > goes fine. If the generated source file is compiled using javac target of it > is showing this error. > > Antony Paul > - Original Message - > From: "Edson Alves Pereira" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > Sent: Wednesday, January 07, 2004 8:12 PM > Subject: RE: Problems running pre-compiled JSP classes when in > subdirectories > > > > Show us the exception how it appears to you. > > > > > -- > > > De: Jay Glanville[SMTP:[EMAIL PROTECTED] > > > Responder: Tomcat Users List > > > Enviada: quarta-feira, 7 de janeiro de 2004 10:20 > > > Para: 'Tomcat Users List' > > > Assunto: Problems running pre-compiled JSP classes when in > > > subdirectories > > > > > > I originally posted this question back in mid-December, but without any > > > responses. In the hopes that someone will have a hit or a solution, I'm > > > reposting the question again. > > > > > > > > > I'm having a problem when I try to use my pre-compiled JSP files: I > > > receive a NoClassDefFoundError exception. Here's what I'm doing ... > > > > > > I have pre-compiled my JSP classes using the JspC plugin from ant. My > > > files compile without complaint. However, when I try to access the > > > files through tomcat, I receive some NoClassDefFoundError exceptions. > > > But these exceptions only occur when I'm accessing JSPs in the > > > subdirectories off of the web root. > > > > > > Here's my application's background. I have two files: > > > /index.jsp > > > /dir/index.jsp > > > The contents of the two files are just simple HTML. I precompiled the > > > JSP using the JspC ant target, then compiled using javac. Finally, I > > > created a context pointing the work directory to the location of my java > > > and class files. When I tried to access the first file > > > (http://localhost/context/index.jsp) everything went fine. However, > > > when I tried to access the second file > > > (http://localhost/context/dir/index.jsp), I received the > > > NoClassDefFoundError. The log file looks like this: > > > > > > 2003-12-15 20:11:25 StandardWrapperValve[jsp]: Servlet.service() for > > > servlet jsp threw exception > > > javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: > > > org/apache/jsp/dir/index_jsp) > > > at > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > [deleted ...] > > > - Root Cause - > > > java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: > > > org/apache/jsp/dir/index_jsp) > > > at java.lang.ClassLoader.defineClass0(Native Method) > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:537) > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:448) > > > at > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) > > > [deleted] > > > > > > Now, according to my research on this mailing list, the most frequent > > > reason for a NoClassDef error is capitalization. However, this isn't > > > the case in my situation as the two package names are comp
Re: No Java compiler was found ....
Correcting the error makes things ok. Now the error is not coming as I removed jdk1.3.1 and built TC using jdk 1.4.1. Antony Paul - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 7:31 PM Subject: RE: No Java compiler was found Howdy, Did you fix the actual error that's in the log, as opposed to this tools.jar error which can sometimes mask the root cause? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Antony Paul [mailto:[EMAIL PROTECTED] >Sent: Wednesday, January 07, 2004 8:34 AM >To: Tomcat Users List >Subject: No Java compiler was found > >Hi all, > I am using Tomcat 5.0.16(for testing purpose only). When a page is having >an error like missing semicolon or a special character in code it is giving >the following error in browser. >org.apache.jasper.JasperException: Unable to compile class for JSP > >No Java compiler was found to compile the generated source for the JSP. >This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar >from >the JDK >to the common/lib directory of the Tomcat server, followed by a Tomcat >restart. >If using an alternate Java compiler, please check its installation and >access path. > > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErro >rHandl >er.java:127) > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher >.java: >351) > org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext >.java: >552) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper >.java: >291) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 >01) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > >Interestingly it is printing lots of lines in console including the >classpath and the actual error(; expected). >I am using it on Win2k SP4 machine which have both JDK1.3.1 and 1.4.1 >installed. I compiled Tomcat from source. I remember that JDK 1.4.1 is >used >for compiling Tomcat and in startup.bat I have set the JAVA_HOME and >CATALINA_HOME to JDK1.4.1. On getting error message I copied tools.jar to >common\lib and error persists. > >Antony Paul > > >- >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]
Re: Problems running pre-compiled JSP classes when in subdirectories
The problem is when files are kept in work directory. I dont want to put the generated files in web-inf\classes and add mapping. My purpose is to compile jsp pages as part of a build before the application is given for testing. I will keep files in work directory. This I have to do frequently and I want to detect any compilation errors and make it faster for the QA fellow to access the application. Antony Paul - Original Message - From: "Riaan Oberholzer" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, January 08, 2004 1:06 PM Subject: Re: Problems running pre-compiled JSP classes when in subdirectories > > The generated servlets are not put in a package. > > When Tomcat is compiling JSP it is put in > > org.apache.jsp. How to set this in the jspc task. > > The files are generated as usual in the work > > directory in the same structure > > as Tomcat itself compiles JSP files. > > Not entirely true. You can compile the java sources of > the JSP's yourself. I do it and it prevents the delay > (for Tomcat to compile it) when you first execute a > JSP. You also pick up any possible JSP errors when > building, not after deployment. > > You can also specify *any* package, it doesn't have to > be org.apache.jsp... I eg use com.myapp.jsp > > The Tomcat HOW-TO documentation has a good example of > the complete process. "Jasper 2 JSP Engine How To", > option "Web Application Compilation". > > I followed it exactly and mine works 100%. The main > difference from what you guys explain (I think), is > that I do not only generate java sources for the > jsp's, but also compile them (my jsp's are thus > delivered as .class files) and also include the > servlet mappings in the web.xml. Its all very easy to > do with ant. > > > > Antony Paul > > - Original Message - > > From: "Ralph Einfeldt" > > <[EMAIL PROTECTED]> > > To: "Tomcat Users List" > > <[EMAIL PROTECTED]> > > Sent: Wednesday, January 07, 2004 7:06 PM > > Subject: RE: Problems running pre-compiled JSP > > classes when in > > subdirectories > > > > > > May be you should have a look at the following: > > > > - the package statements in the generated source > > files > > - the file structure of the generate class files > > > > > -Original Message- > > > From: Jay Glanville > > [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, January 07, 2004 2:20 PM > > > To: 'Tomcat Users List' > > > Subject: Problems running pre-compiled JSP classes > > when in > > > subdirectories > > > > > > > > > > > > Here's my application's background. I have two > > files: > > > /index.jsp > > > /dir/index.jsp > > > java.lang.NoClassDefFoundError: > > org/apache/jsp/index_jsp (wrong name: > > > org/apache/jsp/dir/index_jsp) > > > at java.lang.ClassLoader.defineClass0(Native > > Method) > > > at > > > java.lang.ClassLoader.defineClass(ClassLoader.java:537) > > > at > > > java.lang.ClassLoader.defineClass(ClassLoader.java:448) > > > at > > > > > - > > 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] > > > > > __ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > - > 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]
contexts
Hi, I have two apps running under different contexts. They both link to each other. I have defined in the server XML thus: Why when I link to the one from the other does the desired URL appear as if it has loaded, but a bastardization of the original remains? The original being the app that called the other with all manner of unpleasantries displayed in the browser. How may I configure the server.xml to link across apps under different contexts please? Presuming it is a context issue of course. Thanks Paul Wallace - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5, Apache2 and mod_jk2 integration problem
Hi I am running RedHat 9 with Tomcat 5.0.16 and Apache 2.0.48 and trying to get mod_jk2 to work so that I can use apache as the server and just pass jsp and servlet requests on to tomcat. In order to get tomcat to auto-generate the apache configuration files I have had to take tomcat-jk2.jar from the most recent nightly build (to get ApacheConfig.class) - see bugzilla bug report 25838 and its resolution. I eventually managed to get mod_jk2 to compile (using configure, make etc - not ant) and put mod_jk2.so and jkjni.so into apache/modules directory (and added the LoadModule to httpd.conf). Below I have pasted in my server.xml, workers2.properties and jk2.properties files which at least get apache and tomcat to both start without errors. My problem is that when I try to open /jsp-examples/ through apache, I get the following message in the browser : "The servlet container is temporary unavailable or being upgraded" along with an Internal Error (500), and in the catalina.out file I get : Jan 9, 2004 1:53:58 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.NoSuchMethodError: org.apache.coyote.Request.localName()Lorg/apache/tomcat/util/buf/MessageBytes;) executing [EMAIL PROTECTED], terminating thread in the apache error_log file is the following : [Fri Jan 09 13:53:58 2004] [error] msgAjp.receive(): Bad signature 00 [Fri Jan 09 13:53:58 2004] [error] channelSocket.receive(): Bad header [Fri Jan 09 13:53:58 2004] [error] workerEnv.processCallbacks() Error reading reply [Fri Jan 09 13:53:58 2004] [error] ajp13.service() ajpGetReply recoverable error 12 I have turned on as much logging as I can find and the jk2.log from mod_jk2 doesn't log anything after it has started up. However, I still have tomcat listening on port 8080 and the /jsp-examples/ works fine through there. >From the contents of the log files I think mod_jk2 is working OK and passing the request on to Tomcat, but tomcat is failing to process the request - have I missed a step somewhere ? I have experimented with [uri: ...] entries in workers2.properties and with the tag in server.xml but haven't succeeded yet - can anyone help please ? Thanks for your time. Paul (Config files all with their comments removed) jk2.properties : shm.file=/usr/local/jakarta-tomcat-5/work/jk2.shm -- workers2.properties : [shm] file=/usr/local/jakarta-tomcat-5/work/jk2.shm size=1048576 [channel.socket:localhost:8009] tomcatId=localhost:8009 info=Ajp13 forwarding over socket [uri:/jsp-examples/*] [logger.file:0] level=DEBUG file=/usr/local/apache/logs/jk2.log -- server.xml factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml --- If you are not the intended recipient please notify the author by replying to this email. Internet communications are not secure and therefore Red Squared plc does not accept legal responsibility for the contents of this message. Although we operate anti-virus programs, Red Squared does not accept responsibility for any damage that may be caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Red Squared.
Help with Active directory authentication in tomcat 5
I am trying to authenticate web users against an active directory instance, but for some reason the configuration that worked in tomcat 4.1 is not working in tomcat 5.0.18 Here is the message that I get from the realm authentication with debugging turned on: 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: Searching for corp 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: base: CN=Users,DC=development,DC=com filter: ([EMAIL PROTECTED]) 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: entry found for corp with dn CN=corp,CN=Users,DC=development,DC=com 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: retrieving values for attribute member 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: validating credentials by binding as the user 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: binding as CN=corp,CN=Users,DC=development,DC=com 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: Username corp successfully authenticated 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: getRoles(CN=corp,CN=Users,DC=development,DC=com) 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: Searching role base 'CN=Users,DC=development,DC=com' for attribute 'cn' 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: With filter expression '\28member=CN=corp,CN=Users,DC=development,DC=com\29' 2004-02-04 16:10:20 JNDIRealm[/lts/corp]: Returning 0 roles It appears to successfully authenticate the user, but does not find the roles. In tomcat 4.1 I get very similar information, but it returns 1 role which is the correct behavior. I also noticed that instead of "(" and ")" the log is showing "\28" and "\29". Is this part of the problem? Here is the server.xml excerpt that I am using: ldap://dev:389"; userBase="cn=users,dc=development,dc=com" userSearch="([EMAIL PROTECTED])" userRoleName="member" roleBase="cn=users,DC=development,DC=com" roleName="cn" roleSearch="(member={0})" connectionName="CN=user,CN=users,DC=development,DC=com" connectionPassword="pass" roleSubtree="true" userSubtree="true" /> The same realm configuration seems to work fine for tomcat 4.1 but can't find the roles in 5.0.18. Can anyone help me? Thanks!!
RE: Taglib parser problems
If this is your taglib then I would suggest not making the sql statement an attribute, but instead including it in teh body of the tag. SELECT * FROM MYTABLE WHERE MYCOLUMN='TEST' -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 2:22 PM To: 'Tomcat-User List' Subject: Taglib parser problems Hello dudes, i trying to set a taglib property with ( ' ) inside its text, like: But when i check the property´s value is something like: "select * from preoducts where product_name =" For me, seems that taglib´s parser stops to read the value when it found ( ´ ) in my text. Any idea? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rollover Web Certificate
Hi, Wondering if anybody has experienced a web cert expiring in their keystore. If so, I was wondering how you go about replacing it without bringing down the server. Can you simply create a new certificate (in a different keystore, I'd imagine) then get it signed via the CSR, then import the new one into the original keystore, overwriting the current about-to-expire certificate? I don't think this would work though because the private keys would be different in the two keystores. So you'd have to do this whole process in a new keystore and then bounce Tomcat and have it point to the new keystore. Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PKCS12 Keystore
Hi, I'm trying to setup a keystore of type pkcs12 using the java keytool. I enter this command 'keytool -genkey -keystore c:\tomcat -storetype PKCS12 -alias tomcat'. Well, everytime I try and enter in the subject information for the keys and finish the process, the keytool creates the keystore of type pkcs12 but I get this error message 'keytool error: java.io.IOException: PKCS 12 storing not implemented' Do I have to download an additional provider or what? Thanks for any help, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dirty data and session management....
This may be more of a design question, but I'm wondering if tomcat has anything in it's API that we might be able to leverage to help manage dirty data in a user's session? When our user's login, we load, into their session a w3c dom document that contains user-information, etc. We use xsl transforms for display, so we overload that session-based w3c dom w/ information necessary to show the page to the user (any name value pair that could have been read from the dB, say "roles") So, User-1 is editing the roles. We read from the db, the id/name for each role, tack it into the session XML and transform it on the XSL to display to the user. User-2 does the same thing. User-1 edits some of the role names and submits. User-2 does the same thing, thus making User-1's role information dirty. Is there a way (using some API or tomcat) to enforce that User-2's submit cannot take place w/o them re-reading those roles b/c User-1 already committed? Additional side question, also related: How do you prevent this behaviour using objects in memory in servlets w/o using synchronized objects? (possible in tomcat using something in the tomcat framework?) Thanks in advance. __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Driver class not found
Hi, Iam using Tomcat5.0 and iam trying to connect oracle8i Data base through Datasource and I have created one Datasource using administrator tool of Tomcat using oracle driver and I have kept my driver classes12.jar file in common\lib folder and also in server\lib folder but still it giving me error that "java.lang.ClassNotFoundException :oracle.jdbc.driver.OracleDriver".Can any one please tell me is there any class path setting require for that if it is require then in which file.Eagerly waiting for reply. Thanks & Regards Bikash __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Driver class not found
Hi After adding class12.jar in setclasspath.bat file I am getting below error. I have copied Clasess12.jar in Common\lib directory. DBConnection - getConnection()namingexception caught: Name jdbc is not bound in this Context com.ge.voc.util.SqlBean.executeQuery() outer caught: No suitable driver. SQL sta te = 08001, error code = 0 java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:532) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.ge.voc.util.DBConnection.getConnection(DBConnection.java:53) DBConnection - getConnection()namingexception caught: Name jdbc is not bound in this Context com.ge.voc.util.SqlBean.executeQuery() outer caught: No suitable driver. SQL sta te = 08001, error code = 0 Can anyone pls help me to solve this problem Thanks Bikash --- Bikash Paul <[EMAIL PROTECTED]> wrote: > Hi, > > Iam using Tomcat5.0 and iam trying to connect > oracle8i > Data base through Datasource and I have created one > Datasource using administrator tool of Tomcat using > oracle driver and I have kept my driver > classes12.jar > file in common\lib folder and also in server\lib > folder but still it giving me error that > "java.lang.ClassNotFoundException > :oracle.jdbc.driver.OracleDriver".Can any one please > tell me is there any class path setting require for > that if it is require then in which file.Eagerly > waiting for reply. > > Thanks & Regards > Bikash > > __ > Do you Yahoo!? > Yahoo! Search - Find what youre looking for faster > http://search.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
transitioning from non-logged in to logged in using security constraint....
What does tomcat do to ensure that you're logged in while using the j_security_check ? We're trying to transition users from non-logged in to logged in, but we've got a fair amt. of portions of the site that should be accessible from both states (non-logged in and logged in) Is there something, programmatically, that's done, or is it something that tomcat simply places in the user's session? any advice or direction to the location in the API would be great. thanks __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: transitioning from non-logged in to logged in using security constraint....
no, my question wasn't whether request.getRemoteUser() returns null or not. HOW, specifically, does tomcat populate that information using the j_security_check and the security-constraint nodes in the web.xml??? __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using JNDI/DBCP to get DataSouce
My code looks up a DataSource instance using JNDI. It get an instance but all the fields are default or null values. When I try to get a connection I get the error Exception: Cannot create JDBC driver of class '' for connect URL 'null' Its like it finds my configured resource, but the server has not initialised it... I have followed the How-To's and gone through it all countless times. I can't get tomcat to give me any debug or extra logging to help me track the cause. Below are the gory details for those that can help me (please!!!) Version - Tomcat 4.1.24 Web.xml (last part as to DTD) - Reference to factory javax.sql.DataSource to create connection instances for OSCARS jdbc/OscarsDB javax.sql.DataSource Container -- Server.xml --- factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml url jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os cars_dbsrv password notreal maxActive 10 maxWait 5000 driverClassName com.informix.jdbc.IfxDriver username trip maxIdle 2 --- Code extract --- if (dataSource == null) { try { synchronized (this) { if (dataSource == null) { Context initContext = new InitialContext (); Context envContext = (Context) initContext.lookup ("java:comp/env"); dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB"); } } } catch (NamingException ne) { // wrap it up in an SQLException to keep calling code simple SQLException se = new SQLException ("JNDI Data Source lookup failed"); se.initCause (ne); throw se; } } try { connection = dataSource.getConnection (); } catch (SQLException se) { throw se; } return connection; } --- End of message, thank you for your time Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
Thanks for the tip. I put it in the server.xml in the /CustomFares context but it didn't help. Is there are equivalent entry for the web.xml file? >-Original Message- >From: Parsons Technical Services >[mailto:[EMAIL PROTECTED] >Sent: 15 March 2004 20:55 >To: Tomcat Users List; [EMAIL PROTECTED] >Subject: Re: Problem using JNDI/DBCP to get DataSouce > > >Paul, > >Add this to the context for each application that needs the database. > >type="javax.sql.DataSource"/> > >Doug Parsons >www.parsonstechnical.com > > > >- Original Message - >From: "Paul Mahoney" <[EMAIL PROTECTED]> >To: "'Tomcat Users List'" <[EMAIL PROTECTED]> >Sent: Monday, March 15, 2004 2:28 PM >Subject: Problem using JNDI/DBCP to get DataSouce > > >My code looks up a DataSource instance using JNDI. It get an >instance but >all the fields are default or null values. When I try to get a >connection I >get the error > Exception: Cannot create JDBC driver of class '' for connect >URL 'null' >Its like it finds my configured resource, but the server has >not initialised >it... > >I have followed the How-To's and gone through it all countless times. I >can't get tomcat to give me any debug or extra logging to help >me track the >cause. Below are the gory details for those that can help me >(please!!!) > >Version - Tomcat 4.1.24 > >Web.xml (last part as to DTD) >- > >Reference to factory javax.sql.DataSource to create >connection instances for OSCARS >jdbc/OscarsDB >javax.sql.DataSource >Container > >-- > >Server.xml >--- > >type="java.lang.Integer" >value="30"/> >type="org.apache.catalina.UserDatabase"/> >type="javax.sql.DataSource"/> > > >factory > >org.apache.catalina.users.MemoryUserDatabaseFactory > > >pathname >conf/tomcat-users.xml > > > > >url > >jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFO >RMIXSERVER=os >cars_dbsrv > > >password >notreal > > >maxActive >10 > > >maxWait >5000 > > >driverClassName >com.informix.jdbc.IfxDriver > > >username >trip > > >maxIdle >2 > > > >--- > >Code extract >--- >if (dataSource == null) >{ > try > { >synchronized (this) >{ > if (dataSource == null) > { >Context initContext = new InitialContext (); >Context envContext = (Context) initContext.lookup >("java:comp/env"); >dataSource = (DataSource) envContext.lookup >("jdbc/OscarsDB"); > } >} > } > catch (NamingException ne) > { >// wrap it up in an SQLException to keep calling code simple >SQLException se = new SQLException ("JNDI Data Source lookup >failed"); >se.initCause (ne); >throw se; > } >} > >try >{ > connection = dataSource.getConnection (); >} >catch (SQLException se) >{ > throw se; >} > >return connection; > } >--- > >End of message, thank you for your time > >Paul > > >- >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 using JNDI/DBCP to get DataSouce
Some progress but still not working. 1. Using my connection parameters I can open a connection to the database in the standard JDBC way. 2. I have to moved the DataSource configuration from GlobalNamingResources to the apps Context area of server.xml. This seems to have allowed the JNDI look-up to work. I now get a DataSource instance with sensible contents. 3. But when I ask for a connection it throws "Cannot get a connection, pool exhausted" with a nested exception "Could not create a validated object" Beginning to think it's not me but the tomcat server. I'm now moved to 4.1.24 to 4.1.30 but no improvement :( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
Here goes Cut and paste, but blanked out the password bits. I hope your eyes can spy the problem. I assume you have this working :) Server.xml (the Context bit) - validationQuery select count(*) from systables url jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os cars_dbsrv password ?? maxActive 4 maxWait 5000 driverClassName com.informix.jdbc.IfxDriver username sy5t3m maxIdle 2 Web.xml (the resource reference bit) ... The code // The JNDI way... protected Connection getJdbcConnection () throws SQLException { Connection connection = null; // First we need to locate the JNDI data source if (dataSource == null) { try { synchronized (this) { if (dataSource == null) { Context initContext = new InitialContext (); Context envContext = (Context) initContext.lookup ("java:comp/env"); dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB"); } } } catch (NamingException ne) { // wrap it up in an SQLException to keep calling code simple SQLException se = new SQLException ("JNDI Data Source lookup failed"); se.initCause (ne); throw se; } } try { connection = dataSource.getConnection (); } catch (SQLException se) { throw se; } return connection; } // Hardwired the old way... protected Connection getOscarsConnection () throws SQLException { Connection connection = null; try { Properties props = new Properties(); props.put("user", "sy5t3m"); props.put("password", "??"); Class.forName("com.informix.jdbc.IfxDriver"); connection = DriverManager.getConnection( "jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=oscars_d bsrv", props); } catch (ClassNotFoundException cnfe) { System.err.println ("Error: Class not found: " + cnfe.getMessage() ); } catch (SQLException se) { System.err.println ("Error: while accessing database: " + se.getMessage() ); while ((se = se.getNextException()) != null) { System.err.println(" next: " + se.getMessage()); } } return connection; } public String execute () throws Exception { Connection connection = null; try { connection = getJdbcConnection(); // connection = getOscarsConnection(); } catch (Exception e) { throw e; } finally // must release the following resources if acquired... { if (connection != null) { try { connection.close (); } catch (Exception e) { e.printStackTrace (); } } } return ""; // empty for now } } >-Original Message- >From: Parsons Technical Services >[mailto:[EMAIL PROTECTED] >Sent: 17 March 2004 16:01 >To: Tomcat Users List; [EMAIL PROTECTED] >Subject: Re: Problem using JNDI/DBCP to get DataSouce > > >Paul, > >Since you have done several changes, please repost your current context >section of the server.xml, exception you receive and code you use to access >the DB both with conventional JDBC and DBCP. At this point it sounds like a >typo that's preventing the connection pool from connecting to the database. > >Doug > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
Tried dataSource = (DataSource) initContext.lookup("java:comp/jdbc/OscarsDB"); But it return null, so tried dataSource = (DataSource) initContext.lookup("java:comp/env/jdbc/OscarsDB"); And a datasource instance was return so before, looking good... However, still got the same exception when trying to get a connection instance "Cannot get a connection, pool exhausted" with a nested exception "Could not create a validated object" >-Original Message- >From: Parsons Technical Services >[mailto:[EMAIL PROTECTED] >Sent: 17 March 2004 16:49 >To: Tomcat Users List; [EMAIL PROTECTED] >Subject: Re: Problem using JNDI/DBCP to get DataSouce > > >Paul, > >Replace this: > if (dataSource == null) > { >Context initContext = new InitialContext (); >Context envContext = (Context) initContext.lookup >("java:comp/env"); >dataSource = (DataSource) envContext.lookup >("jdbc/OscarsDB"); > } > >With this: > if (dataSource == null) > { >Context initContext = new InitialContext (); >dataSource = (DataSource) initContext.lookup >("java:comp/jdbc/OscarsDB"); > } > >This is working fine for me. Just a note that I am running against MySQL, >but at this point in the code it should not matter especially since the >hardwire way works. > >Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
I agree, but it looks good and I've tried without one being specified. In addition, I've never see a connection raised at the database server end. This makes me think the DataSource is just not working and I'm not seeing the proper error. But I can find nothing more in the logs :( >-Original Message- >From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] >Sent: 17 March 2004 18:00 >To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services >Subject: RE: Problem using JNDI/DBCP to get DataSouce > > >Check your validation query in your resource definition. > >-Original Message- >From: Paul Mahoney [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 17, 2004 12:57 PM >To: 'Parsons Technical Services'; 'Tomcat Users List' >Subject: RE: Problem using JNDI/DBCP to get DataSouce > >Tried > dataSource = (DataSource) >initContext.lookup("java:comp/jdbc/OscarsDB"); >But it return null, so tried > dataSource = (DataSource) >initContext.lookup("java:comp/env/jdbc/OscarsDB"); >And a datasource instance was return so before, looking good... >However, still got the same exception when trying to get a connection >instance > "Cannot get a connection, pool exhausted" >with a nested exception > "Could not create a validated object" > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
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:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:536) >-Original Message- >From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] >Sent: 17 March 2004 18:07 >To: [EMAIL PROTECTED]; Tomcat Users List; Parsons Technical Services >Subject: RE: Problem using JNDI/DBCP to get DataSouce > > >Would you include any resource definitions and/or any resource>links/references. > >Also, the full stacktrace of the exception may shed some other potential problems. > >-Original Message- >From: Paul Mahoney [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 17, 2004 1:05 PM >To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical >Services' >Subject: RE: Problem using JNDI/DBCP to get DataSouce > >I agree, but it looks good and I've tried without one being specified. >In >addition, I've never see a connection raised at the database >server end. >This makes me think the DataSource is just not working and I'm not >seeing >the proper error. But I can find nothing more in the logs :( > >>-Original Message- >>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] >>Sent: 17 March 2004 18:00 >>To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services >>Subject: RE: Problem using JNDI/DBCP to get DataSouce >> >> >>Check your validation query in your resource definition. >> >>-Original Message- >>From: Paul Mahoney [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, March 17, 2004 12:57 PM >>To: 'Parsons Technical Services'; 'Tomcat Users List' >>Subject: RE: Problem using JNDI/DBCP to get DataSouce >> >>Tried >> dataSource = (DataSource) >>initContext.lookup("java:comp/jdbc/OscarsDB"); >>But it return null, so tried >> dataSource = (DataSource) >>initContext.lookup("java:comp/env/jdbc/OscarsDB"); >>And a datasource instance was return so before, looking good... >>However, still got the same exception when trying to get a connection >>instance >> "Cannot get a connection, pool exhausted" >>with a nested exception >> "Could not create a validated object" >> > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
Fixed at last! And of course it's and annoying fix. I've been using these Informix JDBC 2.0 drivers for some months without problem. As a last resort I downloaded the very latest version from the IBM site and... The rest is now history :) Many thanks to ALL your help. Very much appreciated. >-Original Message- >From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] >Sent: 17 March 2004 19:37 >To: [EMAIL PROTECTED]; Tomcat Users List; Parsons Technical Services >Subject: RE: Problem using JNDI/DBCP to get DataSouce > > > For future, recommend snipping any real host/username/passwords for >security reasons. > >I am not familiar with Informix, however, given a logged in session by >the user you specify, are you able to execute the query, and >return 1 or >more records? > >I recommend creating dummy table just for validation with 1 record, 1 >field to minimize the overhead. A validation query is performed before >each connection object is handed out. > >-Original Message- >From: Paul Mahoney [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 17, 2004 2:19 PM >To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical >Services' >Subject: RE: Problem using JNDI/DBCP to get DataSouce > >To get this far I had to more the datasource resource defiition to the >context. I've rasie the debug to 9 but could see no additional loging >that >would help. Here is the context ... > >cachingAllowed="true" >charsetMapperClass="org.apache.catalina.util.CharsetMapper" >cookies="true" >crossContext="false" debug="9" displayName="Custom Fares" >docBase="C:/Documents and Settings/pmahoney/My Documents/Travel >2/code/webapps/CustomFares/web" >mapperClass="org.apache.catalina.core.StandardContextMapper" >path="/CustomFares" privileged="false" reloadable="false" >swallowOutput="false" useNaming="true" >wrapperClass="org.apache.catalina.core.StandardWrapper"> > type="javax.sql.DataSource"/> > > > validationQuery > select count(*) from systables > > > url > >jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFO >RMIXSERVE >R=os >cars_dbsrv > > > password > 1atan1a > > > maxActive > 4 > > > maxWait > 5000 > > > driverClassName > com.informix.jdbc.IfxDriver > > > username > sy5t3m > > > maxIdle > 2 > > > > >The stacktrace is... > >org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, >pool >exhausted, cause: >java.util.NoSuchElementException: Could not create a validated object >at >org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Gen >ericObjec >tPoo >l.java:851) >at >org.apache.commons.dbcp.PoolingDataSource.getConnection(Pooling >DataSourc >e.ja >va:140) >at >org.apache.commons.dbcp.BasicDataSource.getConnection(BasicData >Source.ja >va:5 >18) >at >com.travel2.customFares.Query.getJdbcConnection(Query.java:95) >at com.travel2.customFares.Query.execute(Query.java:160) >at >com.travel2.customFares.CustomFaresService.GetFares(CustomFares >Service.j >ava: >58) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso >rImpl.jav >a:39 >) >at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho >dAccessor >Impl >.java:25) >at java.lang.reflect.Method.invoke(Method.java:324) >at >org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProv >ider.java >:402 >) >at >org.apache.axis.providers.java.RPCProvider.processMessage(RPCPr >ovider.ja >va:3 >09) >at >org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider >.java:333 >) >at >org.apache.axis.strategies.InvocationStrategy.visit(InvocationS >trategy.j >ava: >71) >at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) >at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) >at >org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.ja
jspc
Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul.
RE: jspc
Hi Jason, Thanks for that. Yes, it does make Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal "put war file under webapps directory and tomcat will expand it when it starts" way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace <[EMAIL PROTECTED]> wrote: > Hello, > I have compiled my JSPs thus: > > jspc -webapp C:\src\site -d C:\src\site\classes -s > -l -uriroot > C:\src\site > > this builds the Java source files to the specified > location, but how > might I deploy them? > > What is a typical deployment after a JSP > compilation? Compilation of > Java source files, then WAR/JAR? Can I not define > the JSP compile to go > under my work directory? > > The purpose of my efforts is to try and speed up / > make TC less memory > consumptive. > > cheers > > Paul. > > > __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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: jspc
(sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal "put war file under webapps directory and tomcat will expand it when it starts" way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace <[EMAIL PROTECTED]> wrote: > Hello, > I have compiled my JSPs thus: > > jspc -webapp C:\src\site -d C:\src\site\classes -s > -l -uriroot > C:\src\site > > this builds the Java source files to the specified > location, but how > might I deploy them? > > What is a typical deployment after a JSP > compilation? Compilation of > Java source files, then WAR/JAR? Can I not define > the JSP compile to go > under my work directory? > > The purpose of my efforts is to try and speed up / > make TC less memory > consumptive. > > cheers > > Paul. > > > __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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: jspc
In an effort to increase speed/free up memory that otherwise might be consumed by Tomcat otherwise Why would you precompile jsp files? On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace <[EMAIL PROTECTED]> wrote: > (sorry, wrong key!) > > Hi Jason, > Thanks for that. Yes, it does make sense. A couple of things > though, I just ran it with -compile - great. But my query about the work > directory and was more towards what I am being 'encouraged' to do from > the powers that be. I.e not WAR the app., but put it in the work > directory. Is this ill-advised/poor practice? > To accomplish this, is it as simple as dragging the compiled > source under my work directory, and modifying my web.xml as advised? > Why does -compile work, but not appear in the usage?! > Also, can I specify a path for the compilation, rather than the > classes be placed in the same dirs as the source? (I tried adding a path > after the -compile switch, but it constructed and compiled a file with > the same name as the class directory destination). > > Do I make sense?! > > Paul. > > Paul, > > I just use the -compile option and have jspc do the > compilation from .java to .class for me. It seems to > work fairly well. Once all the fully compiled (ie > .class) files are placed in you applications > WEB-INF/classes directory you just need to place the > generated web.xml file in WEB-INF. There is an option > to create a complete web.xml file that you can place > in WEB-INF or, if you already have a web.xml file you > want to keep, you can have jspc create an xml fragment > that just contains the servlet definitions and > mappings that you then add (in the appropriate place) > to your existing web.xml. Then just war up you > application directory in the normal way (you can even > delete the jsps once your certain the servlet mappings > are working). >If you try to put the generated files in your > working directory you won't be able to war them up and > deploy them in the normal "put war file under webapps > directory and tomcat will expand it when it starts" > way. You'd have to ship a complete tomcat directory > structure with the work directory already filled in > with your compiled jsps. Does that make sense? > > Jason > > --- Paul Wallace <[EMAIL PROTECTED]> wrote: >> Hello, >> I have compiled my JSPs thus: >> >> jspc -webapp C:\src\site -d C:\src\site\classes -s >> -l -uriroot >> C:\src\site >> >> this builds the Java source files to the specified >> location, but how >> might I deploy them? >> >> What is a typical deployment after a JSP >> compilation? Compilation of >> Java source files, then WAR/JAR? Can I not define >> the JSP compile to go >> under my work directory? >> >> The purpose of my efforts is to try and speed up / >> make TC less memory >> consumptive. >> >> cheers >> >> Paul. >> >> >> > > > > > __ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > > - > 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] > -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - 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: jspc
Hi, Yes..that is what I thought, but I learned from a 'reliable' source I could accomplish this on saving overhead. So rather than looking into the whys and whats, I looked into how to do it, and look into the performance benefits later. I will provide the list with my sources reasoning, when it becomes available! A thought..and to answer a question with a question (Why would you precompile jsp files?), why is jspc there? If only to increase performance on the first hit? Thanks Paul. It will increase speed on the first viewing of the jsp, but after that I can't see how there will be any difference. How much memory can you save if any? And how would that work? Thanks On Fri, 25 Jun 2004 11:12:44 +1000, Paul Wallace <[EMAIL PROTECTED]> wrote: > In an effort to increase speed/free up memory that otherwise might be > consumed by Tomcat otherwise > > Why would you precompile jsp files? > > On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace <[EMAIL PROTECTED]> > wrote: > >> (sorry, wrong key!) >> >> Hi Jason, >> Thanks for that. Yes, it does make sense. A couple of things >> though, I just ran it with -compile - great. But my query about the > work >> directory and was more towards what I am being 'encouraged' to do from >> the powers that be. I.e not WAR the app., but put it in the work >> directory. Is this ill-advised/poor practice? >> To accomplish this, is it as simple as dragging the compiled >> source under my work directory, and modifying my web.xml as advised? >> Why does -compile work, but not appear in the usage?! >> Also, can I specify a path for the compilation, rather than the >> classes be placed in the same dirs as the source? (I tried adding a > path >> after the -compile switch, but it constructed and compiled a file with >> the same name as the class directory destination). >> >> Do I make sense?! >> >> Paul. >> >> Paul, >> >> I just use the -compile option and have jspc do the >> compilation from .java to .class for me. It seems to >> work fairly well. Once all the fully compiled (ie >> .class) files are placed in you applications >> WEB-INF/classes directory you just need to place the >> generated web.xml file in WEB-INF. There is an option >> to create a complete web.xml file that you can place >> in WEB-INF or, if you already have a web.xml file you >> want to keep, you can have jspc create an xml fragment >> that just contains the servlet definitions and >> mappings that you then add (in the appropriate place) >> to your existing web.xml. Then just war up you >> application directory in the normal way (you can even >> delete the jsps once your certain the servlet mappings >> are working). >>If you try to put the generated files in your >> working directory you won't be able to war them up and >> deploy them in the normal "put war file under webapps >> directory and tomcat will expand it when it starts" >> way. You'd have to ship a complete tomcat directory >> structure with the work directory already filled in >> with your compiled jsps. Does that make sense? >> >> Jason >> >> --- Paul Wallace <[EMAIL PROTECTED]> wrote: >>> Hello, >>> I have compiled my JSPs thus: >>> >>> jspc -webapp C:\src\site -d C:\src\site\classes -s >>> -l -uriroot >>> C:\src\site >>> >>> this builds the Java source files to the specified >>> location, but how >>> might I deploy them? >>> >>> What is a typical deployment after a JSP >>> compilation? Compilation of >>> Java source files, then WAR/JAR? Can I not define >>> the JSP compile to go >>> under my work directory? >>> >>> The purpose of my efforts is to try and speed up / >>> make TC less memory >>> consumptive. >>> >>> cheers >>> >>> Paul. >>> >>> >>> >> >> >> >> >> __ >> Do you Yahoo!? >> Yahoo! Mail Address AutoComplete - You start. We finish. >> http://promotions.yahoo.com/new_mail >> >> - >> 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] >> > > > -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - 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: jspc
Hi Jason, Yes, it was of help. Thanks for your lengthy insight. Paul. Hi Paul, To specify a path for your compilation results use the -d option like so: jspc.sh -compile -d /jakarta-tomcat-5.0.25/webapps myapp/WEB-INF/classes ...the rest of you compile options... It will build any subdirs required using the directory you specify, along with the package name you give it (org.apache.jsp if you don't specify a package name) as the root directory for any subdirs. As for the work directory that is where Tomcat places any jsps that it has to compile (i.e. non-precompiled jsps) during runtime. If you run Tomcat with uncompiled jsps and walk though your app in a browser you will see compiled JSPs appear in the work directory. It will create subdirs, etc. to mimic your applications directory structure and place compiled versions there. You could just place your compiled jsps in the same respective places in the work directory before starting Tomcat and it would probably work. BUT, Tomcat will only expand .war files into the webapps directory so you have no way of packaging up these compiled files from the work directory and automatically expanding them into another work directory at Tomcat startup. That would have to be a manual process by the end user (or an install script). It is not the recommended deployment strategy. It does save you from having to worry about having the web.xml mappings correct though. Tomcat will check first in the work directory for a compiled jsp and then look for an uncompiled version if it doesn't find one there. No mappings in web.xml are required. In answer to another related question I saw posted: If you precompile your JSPs and then remove the original JSPs you need to have two things for your app to run: 1. The compiled JSP class files need to be copied over to the WEB-INF/classes directory with the correct directory structure. (The exact directory with be the package name (org.apache.jsp by default) plus any subdirs the JSP existed in under you apps root folder. i.e. if under webapps/yourapp you had a jsp in a directory subdir1/subdirB then under you WEB-INF/classes directory you would need a directory called org/apache/jsp/subdir1/subdirB and you would place that compiled JSP class there. The easiest way to do this is to run your compile with the -d option as stated above and point the output to your WEB-INF/classes directory. jspc in Tomcat 5.x should automatically create the correct subdir structure and place the class file in it. 2. Yuo need servlet definitions and mappings that tell Tomcat "If someone requests this .jsp execute this servlet instead". These go in the web.xml file for your app. jspc will create a complete file or just a fragment file that contains all the mappings. You can tell it explicitly to create a fragment file with the -webinc option like so: -webinc /jakarta-tomcat-5.0.25/webapps/myapp/WEB-INF/my_web_fragment.xml I think it creates a complete web.xml if you use this option -webxml /jakarta-tomcat-5.0.25/webapps/myapp/WEB-INF/my_complete_web.xml In this case you just have to rename the file web.xml and place it in you app's WEB-INF directory. If you don't do BOTH of these things, then Tomcat won't know where to look for your compiled JSPs and will instead look for the actual .jsp. Finding nothing it will throw a 404 error. I hope this is helpful. Jason --- Paul Wallace <[EMAIL PROTECTED]> wrote: > (sorry, wrong key!) > > Hi Jason, > Thanks for that. Yes, it does make sense. A couple > of things > though, I just ran it with -compile - great. But my > query about the work > directory and was more towards what I am being > 'encouraged' to do from > the powers that be. I.e not WAR the app., but put it > in the work > directory. Is this ill-advised/poor practice? > To accomplish this, is it as simple as dragging the > compiled > source under my work directory, and modifying my > web.xml as advised? > Why does -compile work, but not appear in the > usage?! > Also, can I specify a path for the compilation, > rather than the > classes be placed in the same dirs as the source? (I > tried adding a path > after the -compile switch, but it constructed and > compiled a file with > the same name as the class directory destination). > > Do I make sense?! > > Paul. > > Paul, > > I just use the -compile option and have jspc do the > compilation from .java to .class for me. It seems > to > work fairly well. Once all the fully compiled (ie > .class) files are placed in you applications > WEB-INF/classes directory you just need to place the > generated web.xml file in WEB-INF. There is an > option > to create a complete web.xml file that you can place > in WEB-INF or, if you already have a web.xml file > you >
Re: Como funciona tomcat en Fedora Core 2
The internet provides many options for translation. El Internet proporciona muchas opciones para la traducción. http://babelfish.altavista.com/ or http://www.google.com/language_tools Randall Svancara wrote: make that port 8080 -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 10:06 AM To: Tomcat Users List Subject: RE: Como funciona tomcat en Fedora Core 2 If you have everything set up correctly, you should see the index.html file in the ROOT webapp of the tomcat servlet engine. On fedora core2, look at your firewall rules to see if you have port 80 enabled. Sorry, my spanish is horribleno hablo espanol, que mal me amigo!! Later. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 10:01 AM To: Tomcat Users List Subject: RE: Como funciona tomcat en Fedora Core 2 This is an english list, you may have more luck if you can get someone to translate. Ta Matt -Original Message- From: Sergio E. Triviño I. [mailto:[EMAIL PROTECTED] Sent: 02 July 2004 16:40 To: Tomcat Users List Subject: Como funciona tomcat en Fedora Core 2 Hola Lista Instale Fedora Core 2, veo que viene el servicio tomcat e inclusive sube el servicio tomcat OK. Pero como lo acceso? Yo pense que era por lo normal http://localhost:8080 pero no funciona. Mi pregunta es que tengo que hacer para que funcione o como tengo que hacer la prueba para correr JSP. Muchas Gracias. - 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]
queueing concurrent server requests
Hi All, Can someone point me in the right (any) direction towards info on queuing concurrent Tomcat server requests? I propose to queue concurrent requests to Tomcat, if they exceed a given number. Where might I find documentation, or any other resource, to assist? thanks Paul.
Re: Session Replication w/o Multicast
You could save your sessions in an RDBMS, but I'm not sure how responsive this would be... Jeremy Nix wrote: Is there currently a way of replicating session information across multiple tomcat nodes without multicasting? If not, has any extended the Tomcat API to support this? The reason I ask is because we are using a hardware load balancer, and it does not support multi-casting. One thought is that we could upgrade our hardware to a load balancer that supports this (not sure one even exists), but I'm sure that there are other means of performing replication besides multicasting. Using a database as the session persistence layer is one thought. Direct tomcat node to tomcat node in memory session replication is another thought. Just thought I'd see what ideas/solutions are out there. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
TC 5.0.27 startup problem
Hi, A seemingly simple one, but not for I! I am trying to setup the above version of TC on Win XP. My JAVA_HOME is set as an environment variable, and in the top of my startup.bat I am setting CATALINA_HOME: "rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $ rem --- set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27 rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd%" When running this file from the command prompt I get: "23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint. j at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)" I immediately looked at what was using port 8080 (nothing to my knowledge) and this was confirmed. I ran netstat which confirmed that port 8080 was not in use. TC appears to have started, but http://localhost:8080 (with numerous stacktraces (above)) is showing a 404. Am I illegally setting CATALINA_HOME? Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.0.27 startup problem
Hi & thanks, A reboot sorted it. Netstat is not a reliable means to check what ports are being used by which app then? Regards Paul. You definitively have a process using 8080 : either a tomcat process, still running, or another program (oracle,...) Check all your current process, or simply reboot. -Message d'origine----- De : Paul Wallace [mailto:[EMAIL PROTECTED] Envoyé : vendredi 23 juillet 2004 08:40 À : Tomcat Users List Objet : TC 5.0.27 startup problem Hi, A seemingly simple one, but not for I! I am trying to setup the above version of TC on Win XP. My JAVA_HOME is set as an environment variable, and in the top of my startup.bat I am setting CATALINA_HOME: "rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $ rem --- set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27 rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd%" When running this file from the command prompt I get: "23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint. j at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)" I immediately looked at what was using port 8080 (nothing to my knowledge) and this was confirmed. I ran netstat which confirmed that port 8080 was not in use. TC appears to have started, but http://localhost:8080 (with numerous stacktraces (above)) is showing a 404. Am I illegally setting CATALINA_HOME? Thanks Paul. - 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]
TC 5 - root application
Hi, Using Tomcat 5, I wish to move my application from under webapps, into a defined directory somewhere on the server hard drive. Instead of defining a context for my application, I wish to point Tomcat to my application as ROOT to a generic location i.e http://localhost points to c:\site\index.jsp, for example. I have configured it to be using port 80 already. Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My first WebApplication
Hi to you, 1st guess, you should have a dir for your application - WEB-INF, not WEB-IN...unless it's a typo. In that dir make sure your web.xml names and maps your servlet. Give it a go. Paul. Hi to all Sir/Madam Please help me someone regarding my first WebApplication (Servlet): I created directories : CATALINA_HOME\webapps\ch03\WEB-IN\classes\com\wrox\projsp\ch03\myfirstwe bapp Then into my sayeed class i starated with a first line as: package com.wrox.projsp.ch03.myfirstwebapp and other coding stuff for the java class.. I compile this java file (sayeed) and it compiled sucessfully and saved into: CATALINA_HOME\webapps\ch03\WEB-IN\classes\com\wrox\projsp\ch03\myfirstwe bapp \sayeed.class Now after startup my tomcat server i put this into url browser which gives error: http://localhost:8080/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sa yeed the error is: type Status report message /ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed description The requested resource (/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed) is not available. Can anyone please help me? thanx in advance Saeed - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 9:31 PM Subject: RE: Error Starting Sample Tomcat Webapps Hola, How did you install tomcat? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Sayeed [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 12:40 PM >To: Tomcat Users List >Subject: Re: Error Starting Sample Tomcat Webapps > >Dear Filip >thanx for the advice - i put the same command and it gives these message : > >Dispatcher.dispatch(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un >known Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >at org.apache.commons.digester.Digester.parse(Digester.java:1548) >at org.apache.catalina.startup.Catalina.start(Catalina.java:449) >at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) >at org.apache.catalina.startup.Catalina.process(Catalina.java:180) >at java.lang.reflect.Method.invoke(Native Method) >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >Catalina.start: sun.misc.InvalidJarIndexException: Invalid index! >sun.misc.InvalidJarIndexException: Invalid index! >at >org.apache.commons.digester.Digester.createSAXException(Digester.java >:2540) >at >org.apache.commons.digester.Digester.createSAXException(Digester.java >:2566) >at >org.apache.commons.digester.Digester.startElement(Digester.java:1276) > >at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown >Sour >ce) >at >org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn >own Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen >t(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent >Dispatcher.dispatch(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un >known Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >at org.apache.commons.digester.Digester.parse(Digester.java:1548) >at org.apache.catalina.startup.Catalina.start(Catalina.java:449) >at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) >at org.apache.catalina.startup.Catalina.process(Catalina.java:180) >at java.lang.reflect.Method.invoke(Native Method) >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >c:\apache\tomcat\bin > >plz advice > >Saeed >- Original Message - >From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Sent: Tuesday, July 20, 2004 9:10 PM >Subject: Re: Error Starting Sample Tomcat Webapps > > >> > type >> > >> > catalina.bat run >> >> RTFM >> >> - Original Message - >> From: "Sayeed" <[EMAIL PROTECTED]> >> To: "Tomcat
Weaver Release Announcement (XML Programmed Servlet Controller Component)
Weaver is a pure-Java, XML programmed Controller component for developing Model View Controller (MVC) structured, servlet based, Web applications. Weaver exploits your existing knowledge of the JSP Expression Language (EL) and of JSTL via a consistent XML tag set. The main features of Weaver include: * Programmed via a simple but powerful XML syntax whose elements are modeled after those provided by JSTL. * Support for an Expression Language (EL) syntax that is identical to that of JSP 2.0. * Easily extensible XML tag vocabulary. * Support for JSPs and for other View technologies. * Model functionality is easily added via the implementation of a simple Java interface. * Provision for multiple cooperating applications. * Transparent support for authentication. * Provides a management console to monitor and to configure running applications. * Runs in any suitable servlet container. * Automatic application reloading for rapid development. * It's Fast! Weaver's home page may be found at: http://www.oldlight.com/weaver/ Weaver may be downloaded from: http://www.oldlight.com/weaver/downloads.html (Sorry if this posting is a little off topic - I think it may be of interest to those who read this forum). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]