RE: Tomcat & OpenJMS Design Pattern?
try SwiftMQ, a good implementation of JMS, works well with tomcat I have tried and tested There was a free version availaible before.. i dont know whether it is available now or not Thankx Vaneet -Original Message- From: Gavin, Rick [mailto:[EMAIL PROTECTED] Sent: Wed 19/11/2003 00:24 To: Tomcat Users List Cc: Subject: Tomcat & OpenJMS Design Pattern? Hi All, Just wondering if any could post a working design pattern for using openJMS or another open JMS engine with tomcat, preferably a model using asynchronous queue message handling. I figured someone around here has done it and I would rather use a tried and true model. Looking for some basics about best intregration method, and or for dealing with async message Handling. I currently have openJMS setup using persistent Database storage, using JNDI content lookup to Get the JMS connection factory, is this better looked up once and bound to servlet context as an Application scope variable, etc, etc? Thanks for you any help, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problem
Try uninstalling, and then re-installing Tomcat. It should then pick up your J2SDK install path. If this doesn't work, then try "%CATALINA_HOME%\bin\catalina run", and post the error messages on the list for more help. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry to bother you with this elementary question. But being > a neebie I am finding difficulties in installing tomcat 5.0 > > 1. I ran the installation file for installing the tomcat > 5.0. > 2. Then I ran the j2sdk setup file , since tomcat was asking > for a JVM. > 3. > i. Now, i clicked the "Start Tomcat" icon the windows key + > Program files + Apache tomcat. I find a window disappearing > as soon as it appears. > > ii. I tried again by running the catalina.bat or startup.exe > file icon in the bin folder of tomcat. Again, i find the > disappearing window. > > iii. Even if i run that file in the command prompt i am > getting the same response. > > I also need to know as to how I could allow a friend access > my files via the browser. i.e where should i make the > appropriate modifications to allow him to view my files. > > > Your help will be most appreciated. > > Thanks for your help inanticipation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError:javax/servlet/jsp/tagext/TagLibraryValidator
"Anna Lissa Saupan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Any help will be greatly appreciated. > > My current server has the following environment: > Tomcat Version => Apache Tomcat/5.0.12 > JVM Version => 1.4.2-b28 > JVM Vendor => Sun Microsystems Inc. > Redhat Linux 9 >OS Name => Linux >OS Version => 2.4.20-8 >OS Architecture => i386 > Tag Library => 1.1 > > Profile setup (selected): > CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/*.jar:$JAVA_HOME/jre/lib/*.jar:$AXISCLAS SPATH > AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery.jar:$AXIS_LIB/c ommons-logging.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1 .2.8.jar:$CATALINA_HOME/common/endorsed/xercesImpl.jar:$CATALINA_HOME/common /endorsed/xml-apis.jar:$CATALINA_HOME/common/endorsed/xmlParserAPIs.jar:$AXI S_LIB/wsdl4j.jar:$CATALINA_HOME/common/lib/activation.jar > The /*.jar statements won't parse correctly under any version of *nix that I know of ;-). > servlet-api.jar can be found in /common/lib > > I'm trying to run JSP applications that uses JSTL but I get this error > all the time. I get the same error even while running the simplest JSTL > application. > > Here is the Server Error that I get: > > HTTP Status 500 - > > > > type Exception report > > message > > description The server encountered an internal error () that prevented > it from fulfilling this request. > > exception > > > javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > root cause > > > java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator > java.lang.ClassLoader.defineClass0(Native Method) > java.lang.ClassLoader.defineClass(ClassLoader.java:537) > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > java.net.URLClassLoader.defineClass(URLClassLoader.java:251) > java.net.URLClassLoader.access$100(URLClassLoader.java:55) > java.net.URLClassLoader$1.run(URLClassLoader.java:194) > java.security.AccessController.doPrivileged(Native Method) > java.net.URLClassLoader.findClass(URLClassLoader.java:187) > java.lang.ClassLoader.loadClass(ClassLoader.java:289) > java.lang.ClassLoader.loadClass(ClassLoader.java:235) > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > java.lang.ClassLoader.defineClass0(Native Method) > java.lang.ClassLoader.defineClass(ClassLoader.java:537) > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > java.net.URLClassLoader.defineClass(URLClassLoader.java:251) > java.net.URLClassLoader.access$100(URLClassLoader.java:55) > java.net.URLClassLoader$1.run(URLClassLoader.java:194) > java.security.AccessController.doPrivileged(Native Method) > java.net.URLClassLoader.findClass(URLClassLoader.java:187) > java.lang.ClassLoader.loadClass(ClassLoader.java:289) > java.lang.ClassLoader.loadClass(ClassLoader.java:282) > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) > java.lang.ClassLoader.loadClass(ClassLoader.java:235) > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1278) > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1212) > org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfo Impl.java:654) > org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja va:293) > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204) > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460) > org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525) > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625) > org.apache.jasper.compiler.Parser.parse(Parser.java:173) > org.apache.jasper.compiler.ParserController.parse(ParserController.java:247) > org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) > org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:243) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 55) > 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) > > note The full stack trace of the root cause is available in the Tomcat > logs. > > > > > > Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is this error??
Urm, sort of what is says? ;-). "Lane Weast" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] What is this error?? Event Type: Error Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 1 Date: 11/18/2003 Time: 9:10:31 AM User: N/A Computer: [censored] Description: Emerg: [jk_isapi_plugin.c (427)]: HttpFilterProc [/[censored2]/meta-inf/services/javax.print.printservicelookup] points to the web-inf or meta-inf directory. Somebody try to hack into the site!!! Lane "You are in a little maze of twisty passages, all alike." - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connector and MBean
As long as you don't care that it doesn't work with the 'admin' webapp, and you register the MBean correctly, it should work. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I wrote my own Connector for Tomcat which have to be registered on the > MbeanServer since version 4.1. > Without registration, Tomcat throw an Exception "ManagedBean is not found > ..." and the MBeanServer is not available for the Tomcat Administration. > I tried to register the Connector using my own MBean description, but I > just get an MalformedObjectNameException in the Class > org.apache.catalina.mbeans.MBeanUtils, method createObjectName. > > A closer look into the source code shows that only connector instances of > HttpConnector, org.apache.catalina.connector.http10.HttpConnector, > org.apache.ajp.tomcat4.Ajp13Connector and > org.apache.coyote.tomcat4.CoyoteConnector are supported. By all other > Connectors an Exception is thrown. > > Am I right, it is not possible to register an another connector to the > MBeanServer ? > > It would suffice first to look on the MBeanServer if an MBean already exist > for a Object, instead of always trying to create one. > In this case the connector could register himself on the MBeanServer. > > > > /** > * Create an ObjectName for this > * Connector object. > * > * @param domain Domain in which this name is to be created > * @param connector The Connector to be named > * > * @exception MalformedObjectNameException if a name cannot be created > */ > public static ObjectName createObjectName(String domain, > Connector connector) > throws MalformedObjectNameException { > > ObjectName name = null; > if (connector instanceof HttpConnector) { > HttpConnector httpConnector = (HttpConnector) connector; > Service service = httpConnector.getService(); > String serviceName = null; > if (service != null) > serviceName = service.getName(); > name = new ObjectName(domain + ":type=Connector" + > ",service=" + serviceName + > ",port=" + httpConnector.getPort() + > ",address=" + httpConnector.getAddress > ()); > return (name); > } else if (connector instanceof > org.apache.catalina.connector.http10.HttpConnector) { > org.apache.catalina.connector.http10.HttpConnector > httpConnector = > (org.apache.catalina.connector.http10.HttpConnector) > connector; > Service service = httpConnector.getService(); > String serviceName = null; > if (service != null) > serviceName = service.getName(); > name = new ObjectName(domain + ":type=Connector" + > ",service=" + serviceName+ > ",port=" + httpConnector.getPort() + > ",address=" + httpConnector.getAddress > ()); > return (name); > } else if ("org.apache.ajp.tomcat4.Ajp13Connector".equals >(connector.getClass().getName())) { > try { > String address = (String) > PropertyUtils.getSimpleProperty(connector, "address"); > Integer port = (Integer) > PropertyUtils.getSimpleProperty(connector, "port"); > Service service = connector.getService(); > String serviceName = null; > if (service != null) > serviceName = service.getName(); > name = new ObjectName(domain + ":type=Connector" + > ",service=" + serviceName + > ",port=" + port + > ",address=" + address); > return (name); > } catch (Exception e) { > throw new MalformedObjectNameException > ("Cannot create object name for " + connector+e); > } > } else if ("org.apache.coyote.tomcat4.CoyoteConnector".equals >(connector.getClass().getName())) { > try { > String address = (String) > PropertyUtils.getSimpleProperty(connector, "address"); > Integer port = (Integer) > PropertyUtils.getSimpleProperty(connector, "port"); > Service service = connector.getService(); > String serviceName = null; > if (service != null) > serviceName = service.getName(); > name = new ObjectName(domain + ":type=Connector" + > ",service=" + serviceName + > ",port=" + port + >
Re: double slash before context reveals source in latest tomcat3? (apache 1.3.27)
Thanks again, compiled a new mod_jk, and all is good now! Sean Web Solutions That Work Developing custom web solutions designed specifically to accomplish the unique objectives of our clients. Phone 503-639-2727 Fax 503-639-0807 - Original Message - From: "Bill Barker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 18, 2003 8:01 PM Subject: Re: double slash before context reveals source in latest tomcat3? (apache 1.3.27) > There was a bug like this in mod_jk prior to 1.2.5. If that's the case, > then Tomcat4 won't help you since it is Apache that is serving the source > (which is the usual case with this type of bug :). Try upgrading to mod_jk > 1.2.5. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm through a firewall
> I think 4.1.29's JDBCRealm tried to reconnect on failure. we upgrade to Tomcat 4.1.29 because I heard about a new ErrorRecovery function in the JDBCRealm. Which Parameter in which xml-file is responsible for this feature. > > our firewall (Cisco PIX 506) seems to be the reason for a > > 'java.sql.Exception' given by the JDBCRealm: > > - > >-- 2003-11-13 09:46:28 JDBCRealm[]: > > Exception performing authentication > > java.sql.SQLException: System or internal error > > ... > > - > >-- The Tomcat 4.1.24 with our webapplication stays > > on the DMZ outside the firewall. The Database (the server for our > > JDBCRealm) stays behind the firewall, which let pass the TCP-Requests > > through the Port 'myport', we set in the > > 'connectionURL'. > > >debug="99" driverName="com.informix.jdbc.IfxDriver" > > connectionURL="jdbc:informix-sqli://:/upload:i > >nformixserver=" connectionName="tomcat" > >connectionPassword="tomcat" > >userTable="users" > >userNameCol="user_name" > >userCredCol="user_pass" > >userRoleTable="user_roles" > >roleNameCol="role_name" /> > > > > If the Servlet-Engine on the DMZ don't get any authentication-requests > > for about one hour, the Cisco Pix doesn't detect any traffic on this > > established connection. Therefore (security reasons) the Pix kills the > > Realm-Connection from the DMZ to the Database, what is the only reason > > for a broken and unusable JDBCRealm. > > > > How can we force the Servlet-Engine to establish a new Realm-Connection > > to the Database without a restarting the complete Tomcat-Server ? Holger de Wall LKV-SH, Steenbeker Weg 151, Kiel 24106 Tel. : +049 431-33987-38 Fax : +049 431-33987-20 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https --> http session problem
On 11/19/2003 03:58 AM Henrik Bentel wrote: Had an application which had 3 different types of users: One group should be authenticated using https only to protect password, then switch to http, but sometimes switch back to https again. This is my main requirement. Ideally what I would like to see in the servlet spec is something stating that another login is required if you want to change to a higher level of security. i.e. you can downgrade from https to http no problem, but if logged-in users want to go from http to https, they have to login again. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hosting SSL clients within Tomcat
FYI, I have now cracked this problem. I had something of an epiphany last night >-) The problem lies with Bill Gates! The default .keystore is created in the current Windows users home directory. The path to this directory has a white space in it, which the JVM does not like. If you try and use your own keystore, Tomcat does not like it. The trick is to create the default .keystore file, import your client certificate and then copyt the .keystore to another location with no white space in the path. You then specify the location of the .keystore and the password for the store on the line in the catalina.bat file that starts Tomcat. Obvious Of course the better alternative is to develop and host using Linux or Solaris (but my client won't do that!!!) Later email: [EMAIL PROTECTED] http://www.mojoco.biz/ -Original Message- From: Justin Brister [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:04 PM To: '[EMAIL PROTECTED]' Subject: Hosting SSL clients within Tomcat I am trying to open a connection to an SSL server hosting WebServices. I am using the Glue libraries to abstract away all the nasty Web Service stuff, and my WebService client is implemented as a Servlet. I have imported the SSL certificate into my .keystore If I run my client code as a stand-alone app. it works OK If I use the keystore to configure SSL connections for Tomcat it is fine However, if I run my client code from within a servlet, Tomcat complains that either the trust store has been tampered with or the password is invalid. Does anyone have any idea how I can configure Tomcat to find the truststore and load the appropriate certificates for use by my SSL client? Thanks, J - 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]
j_security_check - Bookmarking the login page. A teaser!
Hello, I have recently switched my site to using form-based logins. I found as soon as I started testing that there is a fundamental problem with this approach. When the user get sent via a click to a protected page they get the login screen. The only problem arises when a user bookmarks the login screen. If they bookmark the login screen then use this bookmark to bring it up, when they enter their details Tomcat doesn't know where to bring them next and hence gives them an error message. I can use Apache rewriting or aliasing if you think either of these will help solve the problem. Any suggestions? Surely this problem has been encountered by everyone who has ever implemented form-based login, or do they just not? Thanks, Andoni
Still character problems
I'am calling a method from my jsp pages.The method is placed in a bean class.Its return type is String.And it includes the characters such as "ü,þ,ç,ö"(some Turkish caracteres).But these characteres seem to be corrupted on the jsp pages.I put the page and meta tags who are denoting that the page's encoding is ISO-8859-9.Also i saved my bean class under ISO-8859-9 encoding.I started Tomcat with CATALINA_OPTS=-Dfile.encoding=ISO-8859-9.Did it work?Of course,it didn't.What can i do more? Burak Takmaz Web programmer - Bilgitaþ/Ýstanbul _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm through a firewall
My bad, the patch I was thinking of was made in tomcat5. Hopefully, I'll be able to backport it Friday. -Tim Holger de Wall wrote: I think 4.1.29's JDBCRealm tried to reconnect on failure. we upgrade to Tomcat 4.1.29 because I heard about a new ErrorRecovery function in the JDBCRealm. Which Parameter in which xml-file is responsible for this feature. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: j_security_check - Bookmarking the login page. A teaser!
Hi Adoni, No... you are not alone. I've been there too! My half hearted solution was to simply display a message on the login page asking them not to bookmark it. I think the proper solution would be to allow developers to specify a 'default' url along with the login and error urls. This page could then be displayed instead of the error page when there is no saved target url. You will probably also come across another non-obvious problem to do with form-based security. When people use download accelerators like 'GetRight' etc these programs attempt to download a given url. Unfortunately if the item they are trying to download falls under your protected region Tomcat will present them with the login page instead of the resource they were after. This will happen even if you have successfully logged in because as far as Tomcat is concerned the request came from a new and as yet not logged in session. Regards, David Legg Web Analyst - 3Dlabs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relationship between server.xml/Resource and web.xml/resource-ref.
Hi, I have read the whole documentation and the web.xml DTD, but I am still somewhat confused concerning this question. I try to figure out the exact relation between JNDI resources declared within the server.xml and the web.xml. Is it completely up to the developers/deployers wether the necessary resources get declared in the server or in the application? Is it just for convenience, so that deployer doesn't have to unpack the WAR? Or -- like someone stated on this list (to my confusion) -- that the server.xml Resource element and the web.xml resource-ref have a relation that is similar to that of an implementation class instance and an interface? Or are some things possible with server.xml/Resource (plus ResourceParams) that are not possible with only modifying the DD? Can anyone clarify this? TIA, -Florian -- Florian Ebeling, Dipl.-Ing. [EMAIL PROTECTED] Tel. +49 172 926 76 26 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check - Bookmarking the login page. A teaser!
Just a noob firing off into the dark... Couldn't you have a small piece of code that checks for the session and if they are bringing up the login page directly (ie no session info) then take them to the index. I'm going to get this on my site too so I will interested in a solution. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5
Hi Does anybody know of the timetable for a stable release of tomcat 5? Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bit off topic : What happened to RedHat?
In reference to c I'd like to point people to: Fedora.redhat.com/about/objectives.html look at number 7. I think people are getting confused by the new direction and the use of the words release and update. Wade -Original Message- From: Gerald Henriksen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:08 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Bit off topic : What happened to RedHat? On Tue, 18 Nov 2003 16:54:01 +1100, you wrote: >Hi, does anyone know what happened to RedHat, its mailing list and >forum? They are all still available through the Red Hat website. You can also check out http://fedora.redhat.com for more info about the new distribution Red Hat is putting out. >Haven't used it for a while and it seems they are no more. Also, I run >JVM and TC4 on RH7.1 kernel 2.4.2 and thinking about RH9, but someone >said that's the last version and there won't be a >*stability* version coming out after that. Red Hat is splitting into 2 product lines: 1) Red Hat Enterprise Linux. Available on a subscription bases in both Workstation and Server versions. Errata updates available for 5 years after release. While Red Hat does not offer binary releases of the Enterprise Line for download they do go beyond the package license requirements and offer the source RPMS for download is you can if you desire simply compile them to create your own version. 2) Fedora Linux. This is the replacement for the old Red Hat Linux line, and Fedora Core 1 is equivalent to Red Hat 10 (the testing process for FC1 actually started out as the beta for RH10). There are 3 big changes with Fedora: a) the name. Purpose of this is to allow for 3rd parties to make cd's, etc and distribute them (trademark law prohibited 3rd party making of Red Hat cdroms and calling them Red Hat when selling them). b) they will be a lot more aggressive in adding in new software/releases on a more flexible schedule (ie. releases won't necessarily be 6 months apart anymore, they will be determined by developments in the Linux community and not on shifting boxes in the retail channel. This means that binary compatibility between releases is no longer guaranteed. c) given b) support for bug fixes is dramatically shortened. While Red Hat 7.* lasted for years support is now for 3 months after the following release of Fedora. So support for Fedora Core 1 will end 3 months after the release of Fedora Core 2. This makes Fedora unsuitable for most commercial uses. >Also, rumour has it RH8 is full of bugs ? Can someone share their >experience please ? Red Hat 8 errata ends at the end of December and so should not even be considered. The big change in Red Hat 8 that caused some minor problems for some people was the move to gcc 3.2 Red Hat 9 has errata support until end of March 2004 and is very similar to Red Hat 8 (major change was the addition of NPTL). - 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: Running a Service
Karl, An easy way of doing this is to call your servlet with wget from a cron job. Andy > -Original Message- > From: Karl Coleman [mailto:[EMAIL PROTECTED] > Sent: 18 November 2003 20:21 > To: Tomcat Users List > Subject: RE: Running a Service > > > I apologize for being so broad. Let me be more specific. It might > help some. > > We are running an intranet application running on apache and > tomcat. It's all Java, using JSP and Servlets, and Struts. One > function of the application is scanning in faxes. After being > scanned, these documents are stored as TIFF files on the server > temporarily. Right now, importing these images into the database > is a manual process. There is a JSP page that has a Start Import > button that invokes a servlet that imports these images into the > database. My task is to make this an automated process so that > any images that have been scanned in will get scanned in at > night, say 3am. In other words, this code that is in this servlet > that imports images needs to be called automatically every night at 3am. > > I hope that helps. Thanks. > > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18, 2003 3:07 PM > To: Tomcat Users List > Subject: RE: Running a Service > > > > Howdy, > You mean like a cron job? ;) Or the Windows Scheduler on windows, or a > 3rd party tool like 12Ghosts Timer? > > Or do you mean already have a tomcat running around the clock but you'd > like something to happen at 3am? A tool like Quartz (quarts.sf.net) > would help... > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Karl Coleman [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, November 18, 2003 3:02 PM > >To: [EMAIL PROTECTED] > >Subject: Running a Service > > > >I need to run a process at a specific time every day, say 3:00am. How > do > >you configure Tomcat to have a service running in the background. > > > > 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]
A small problem (with tomcat)
Good day, I have a problem when I'm trying to make a new folder. When I make the folder and put it in C:\Program Files\Apache Group\Tomcat 4.1\webapps I can't open it, but I can open the other folders at that location, what did I do wrong? Sincerely, Thomas Muijsert _ Hotmail en Messenger on the move http://www.msn.nl/communicatie/smsdiensten/hotmailsmsv2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 Build Error
Bill, The problem is that the apache runtime library cannot be located. I just found this resource that might help you out: http://cymulacrum.net/tomcat/jk2_compile.html Best regards, Andy > -Original Message- > From: Bill R [mailto:[EMAIL PROTECTED] > Sent: 19 November 2003 02:03 > To: [EMAIL PROTECTED] > Subject: JK2 Build Error > > > I am sure you all have heard this before, and can give me some direction > on how to solve this problem. > > When I go to 'make' the jk2 module, I get the following build error: > > /usr/bin/ld: cannot find -lapr-0 > collect2: ld returned 1 exit status > > I am running Redhat 9 > jakarta-tomcat-5.0.14 > apache 2.0.40 > > If you need more info, please let me know. I am still a bit new at > compiling my own shared objects for my own purposes (but I have done > it), so keep that in mind... I am resourceful, but I need a leg up > here. :-) Any help would be appreciated. > > Thanks, > > BillR > > JK2 Build ErrorJK2 Build Error > -- > Bill R <[EMAIL PROTECTED]> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relationship between server.xml/Resource and web.xml/resource-ref.
Hi, I have read the whole documentation and the web.xml DTD, but I am still somewhat confused concerning this question. I try to figure out the exact relation between JNDI resources declared within the server.xml and the web.xml. Is it completely up to the developers/deployers wether the necessary resources get declared in the server or in the application? Is it just for convenience, so that deployer doesn't have to unpack the WAR? Or -- like someone stated on this list (to my confusion) -- that the server.xml Resource element and the web.xml resource-ref have a relation that is similar to that of an implementation class instance and an interface? Or are some things possible with server.xml/Resource (plus ResourceParams) that are not possible with only modifying the DD? Can anyone clarify this? TIA, -Florian -- Florian Ebeling, Dipl.-Ing. [EMAIL PROTECTED] Tel. +49 172 926 76 26 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5
No. (See the tomcat-user & dev archives as to why) -Tim Drinkwater, GJ (Glen) wrote: Hi Does anybody know of the timetable for a stable release of tomcat 5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConnectException in Tomcat 4.1
what is the file you are trying to read, ie what is the extension. did you check if the server allows you to access the file directly.. ie http://server:port/dir/yourfile.ext are you able to access the this way ? - Original Message - From: "Efrat Bar-Nahum" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 12:27 AM Subject: ConnectException in Tomcat 4.1 Hi, I'm trying to run my web application with Tomcat 4.1 (until now I worked with Tomcat 3.2, and didn't have any problems). In my application I have an applet that reads from a file (the file is located on the web server.) When I try to do it (using Url.openStream()) I get: java.net.ConnectException: Connection refused. I guess I have to configure some kind of permissions in the tomcat configuration files or something like that, but I didn't find anything. (In my Java policy tool I made sure to give java.security.AllPermission, but I'm not sure that it's connected). I know that the problem is not with my applet since the same code is running perfectly on Tomcat 3.2. Can you please help me?... Thanks a lot, Efrat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server configuration denies access to data sourceConnection
Soma, I'm stuck up with simple problem, when I try to access the table through JSP program and got a error message as *"java.sql.SQLException: Server configuration denies access to data sourceConnection returned NUll.Stopping service Tomcat-Standalone" For some reason, Java connects to MySQL as [EMAIL PROTECTED], despite the URL being jdbc:mysql://localhost/database. That means that you'll need to have an entry in your MySQL grants table for [EMAIL PROTECTED], which is different than [EMAIL PROTECTED] -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Relationship between server.xml/Resource and web.xml/resource-ref.
Florian, Is it completely up to the developers/deployers wether the necessary resources get declared in the server or in the application? This is correct. Is it just for convenience, so that deployer doesn't have to unpack the WAR? No, this has nothing to do with unpacking WAR files. Or -- like someone stated on this list (to my confusion) -- that the server.xml Resource element and the web.xml resource-ref have a relation that is similar to that of an implementation class instance and an interface? This is an apt analogy. The server.xml sets up the actual resource (often in the section), then allows the application to use it (by adding a section in the where you want to use it). The webapp signifies its desire to use that resource by including a complimentary section in the deployment descriptor. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat & OpenJMS Design Pattern?
Howdy, I've used and use OpenJMS with tomcat all the time, including in several production systems. What are you looking for specifically? A document? Code that sends messages to an OpenJMS queue/topic, received from an OpenJMS queue/topic, all of the above? I've actually gone from using tomcat's JNDI support to specifying the JMS connection parameters in an app-specific configuration file and creating the JMS objects myself. But I had it working via tomcat's JNDI before as well. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Gavin, Rick [mailto:[EMAIL PROTECTED] >Sent: Tuesday, November 18, 2003 6:25 PM >To: Tomcat Users List >Subject: Tomcat & OpenJMS Design Pattern? > >Hi All, > Just wondering if any could post a working design pattern for using >openJMS or another open >JMS engine with tomcat, preferably a model using asynchronous queue message >handling. I >figured someone around here has done it and I would rather use a tried and >true model. > >Looking for some basics about best intregration method, and or for dealing >with async message >Handling. > >I currently have openJMS setup using persistent Database storage, using >JNDI >content lookup to >Get the JMS connection factory, is this better looked up once and bound to >servlet context as an >Application scope variable, etc, etc? > >Thanks for you any help, > >Rick This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.0.4 slow startup time
Howdy, >Hello! We're running Tomcat 4.0.4 behind Apache 1.3.27 on Linux using >mod_jk. I've noticed really long startup times for Tomcat on our system, >even though we already have the ROOT.war uncompressed. During this time, >all the user can see is an Internal Server Error page until Tomcat is >ready. >Note the time is worse for the initial access after we deploy a new ROOT >directory than on subsequent restarts (probably because we have some pages >compiled already?). Is there any way to reduce this wait time? Sometimes it >can be on the order of a minute or more, which isn't very good for our >users. 1. Compressing or uncompressing WARs doesn't make much of a difference unless they're huge. 2. Make sure you don't start anything you don't need, i.e. comment out any connectors, valves, loggers, engines, hosts, contexts you don't use from server.xml. 3. Remove any webapps you don't need. 4. See if the server's startup time is also slow when you take out your struts webapp. 5. Take apache and the apache->tomcat connectors out of the equation temporarily: just start up tomcat and see how long that takes. Personally, I haven't benchmarked tomcat 4.0.x in a while but 4.1.29 starts in about 15sec for me with one connector, one valve, one webapp, normal loggers. EMC ;) I did a co-op there during my undergrad and still know several of the engineers... Nice place. Yoav Shapira 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]
OutOfMemory Error in Catalina
Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at com.conducive.kiwi.modules.scheduledjobs.ThreadPoolWorker.(ThreadPoolWorker.java:47) at com.conducive.kiwi.modules.scheduledjobs.ThreadPool.(ThreadPool.java:20) at com.conducive.kiwi.modules.scheduledjobs.Booker.(Booker.java:84) at sun.reflect.GeneratedConstructorAccessor85.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.turbine.services.assemblerbroker.util.java.JavaBaseFactory.getAssembler(JavaBaseFactory.java:94) at org.apache.turbine.services.assemblerbroker.util.java.JavaScheduledJobFactory.getAssembler(JavaScheduledJobFactory.java:69) at org.apache.turbine.services.assemblerbroker.TurbineAssemblerBrokerService.getAssembler(TurbineAssemblerBrokerService.java:189) at org.apache.turbine.modules.ScheduledJobLoader.getInstance(ScheduledJobLoader.java:175) at org.apache.turbine.modules.ScheduledJobLoader.exec(ScheduledJobLoader.java:124) at org.apache.turbine.services.schedule.WorkerThread.run(WorkerThread.java:108) at java.lang.Thread.run(Thread.java:536) Abhijeet Selukar
RE: TC Case Sensitivity Question
Same line of question, how do tomcat web admins present URL's? Is there a defacto standard for tomcat web developers that only upper, lower, or camel notation From and end users perspective, having to alter case for a web URL is a hassle, and in most cases would yield a 404 because of disregard of said case. Just looking for insight on how people handle the general computer user out there. -Art -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:45 PM To: Tomcat Users List Subject: Re: TC Case Sensitivity Question Art, > Can anyone provide better insight on how to remove case sensitivity > from the configuration? Ugh. Well, URLs are case-sensitive by the spec, so I'm not sure why you'd want to do this... > or examples on how to bypass; I did see a 404 redirector, but that > sounds awfully unnecessary. The 404 redirector is not what you want... I don't even know how you'd change this. I guess you could store everything on the filesystem as lower-case, and make all your URLs lowercase, and then intercept any URLs, say, using a Filter, and then change the URL... That might be even too far down the pipeline to intercept and translate any URLs, though. Same goes for a web server. You'd have to seriously hack the web server to do the same thing. -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: OutOfMemory Error in Catalina
I can recommend OptimizeIt from Borland, saved me a couple of times :) /Søren -Original Message- From: Abhijeet Selukar [mailto:[EMAIL PROTECTED] Sent: 19. november 2003 14:20 To: Tomcat Users List Subject: OutOfMemory Error in Catalina Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at com.conducive.kiwi.modules.scheduledjobs.ThreadPoolWorker.(ThreadP oolWorker.java:47) at com.conducive.kiwi.modules.scheduledjobs.ThreadPool.(ThreadPool.ja va:20) at com.conducive.kiwi.modules.scheduledjobs.Booker.(Booker.java:84) at sun.reflect.GeneratedConstructorAccessor85.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.turbine.services.assemblerbroker.util.java.JavaBaseFactory.ge tAssembler(JavaBaseFactory.java:94) at org.apache.turbine.services.assemblerbroker.util.java.JavaScheduledJobFa ctory.getAssembler(JavaScheduledJobFactory.java:69) at org.apache.turbine.services.assemblerbroker.TurbineAssemblerBrokerServic e.getAssembler(TurbineAssemblerBrokerService.java:189) at org.apache.turbine.modules.ScheduledJobLoader.getInstance(ScheduledJobLo ader.java:175) at org.apache.turbine.modules.ScheduledJobLoader.exec(ScheduledJobLoader.ja va:124) at org.apache.turbine.services.schedule.WorkerThread.run(WorkerThread.java: 108) at java.lang.Thread.run(Thread.java:536) Abhijeet Selukar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC Case Sensitivity Question
Art, Same line of question, how do tomcat web admins present URL's? Is there a defacto standard for tomcat web developers that only upper, lower, or camel notation From and end users perspective, having to alter case for a web URL is a hassle, and in most cases would yield a 404 because of disregard of said case. Just looking for insight on how people handle the general computer user out there. Well, in general, users aren't expected to remember URLs. Hostnames are case-insensitive, and that's typically all you're ever expected to remember. Just type in "www.google.com" and you'll get google. Everything else is just bookmarks, right? If a user happens to "remember" a URL and types is in correctly, there's no expectation that the site will magically figure out what they wanted to type. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check - Bookmarking the login page. A teaser!
On 11/19/2003 01:08 PM Graham Reeds wrote: Just a noob firing off into the dark... Couldn't you have a small piece of code that checks for the session and if they are bringing up the login page directly (ie no session info) then take them to the index. No, 'fraid not, your app never gets to see requests to j_security_check - it's handled by tomcat beforehand. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check - Bookmarking the login page. A teaser!
Adam, On 11/19/2003 01:08 PM Graham Reeds wrote: Just a noob firing off into the dark... Couldn't you have a small piece of code that checks for the session and if they are bringing up the login page directly (ie no session info) then take them to the index. No, 'fraid not, your app never gets to see requests to j_security_check - it's handled by tomcat beforehand. Right, and the user never sees this URL. They're talking about intercepting the request for the login *page*, not the j_security_check request. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 1.3, Tomcat 5 and Panther
Trying to setup a development environment on my Mac running OS 10.3 (Panther). Everything I see refers to Tomcat 4.1 - and nothing quite fits. Has anyone done this yet? I have placed Tomcat in /Library/Tomcat/jwsdp-1.3 and the Apache 1.3 is "as delivered" with Panther. http://mywebsite brings up Apache 1.3 and http://mywebsite:8080 brings up Web Services Developer Pack 1.3. The samples do work under Tomcat. Now I just need to "connect". I know that in a few months This will seem trivial, but I am stuck. Thanks Carlton Ellis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory Error in Catalina
It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim Abhijeet Selukar wrote: Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check - Bookmarking the login page. A teaser!
Actually one of my first attempts at a solution was this in reverse. I was saying if there is a session take them on in to the main menu page. This does not work either though as if there was no session and they had only called this page (say from a bookmark) they were still stuck. The reason your way does not work is given by another response. Andoni. - Original Message - From: "Graham Reeds" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 12:08 PM Subject: Re: j_security_check - Bookmarking the login page. A teaser! > Just a noob firing off into the dark... > > Couldn't you have a small piece of code that checks for the session and if > they are bringing up the login page directly (ie no session info) then take > them to the index. > > I'm going to get this on my site too so I will interested in a solution. > > 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]
Tomcat Crashing
Hey, I am fairly new to Tomcat and developing a web-app that does some database work. Lately, Tomcat (4.1.29) will sometimes inexplicably crash without error. My Tomcat console window just closes and I get an apache error, 500 Internal Server Error, in my browser, (apache and tomcat liked with mod_jk2). When I look in the log files, I do not see anything that seems abnormal. I wish I could give more information but Im not even sure where to look right now. Has anyone in the community encountered a similar problem and found what the cause may be? If there is somewhere else I could look for error information please let me know. Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Crashing
Hi There, Which platform are you running on if its linix or solaris then it could be either the SIGINT (ctrc-c) or SIGHUP (your console closing) causing it to exit. Thanks Pete -Original Message- From: Bender, Christopher [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 14:42 To: Tomcat Users List Subject: Tomcat Crashing Hey, I am fairly new to Tomcat and developing a web-app that does some database work. Lately, Tomcat (4.1.29) will sometimes inexplicably crash without error. My Tomcat console window just closes and I get an apache error, 500 Internal Server Error, in my browser, (apache and tomcat liked with mod_jk2). When I look in the log files, I do not see anything that seems abnormal. I wish I could give more information but Im not even sure where to look right now. Has anyone in the community encountered a similar problem and found what the cause may be? If there is somewhere else I could look for error information please let me know. Thanks, 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]
Tomcat 4.1.24 Standalone max requests serviced java exception
Hi all, I'm running into this java exception only when increasing my traffic to my Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic is about 100 concurrent connections when this happens. I'm just wondering if a) This error is really related to reaching the max number of requests my server can handle b) How can I increase the number of requests my server can service, already tinkered around with connections in the server.xml (it's a dual P3 1.4 GHz, 2G ram machine) c) What's this java exception really mean. 2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884 ) at org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731) at org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade .java:365) at org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade .java:370) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr apper.java:268) at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1 38) at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:11 4) at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm pl.java:175) at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java: 154) at org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) 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.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp.digits_jsp._jspService(digits_jsp.java:2905) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(St
RE: Tomcat Crashing
I am running windows 2000. Is there any way that my java code could be popping the stack or something along those lines? -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 9:44 AM To: Tomcat Users List Subject: RE: Tomcat Crashing Hi There, Which platform are you running on if its linix or solaris then it could be either the SIGINT (ctrc-c) or SIGHUP (your console closing) causing it to exit. Thanks Pete -Original Message- From: Bender, Christopher [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 14:42 To: Tomcat Users List Subject: Tomcat Crashing Hey, I am fairly new to Tomcat and developing a web-app that does some database work. Lately, Tomcat (4.1.29) will sometimes inexplicably crash without error. My Tomcat console window just closes and I get an apache error, 500 Internal Server Error, in my browser, (apache and tomcat liked with mod_jk2). When I look in the log files, I do not see anything that seems abnormal. I wish I could give more information but Im not even sure where to look right now. Has anyone in the community encountered a similar problem and found what the cause may be? If there is somewhere else I could look for error information please let me know. Thanks, 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Crashing
Look for an error log named 'hs_err*.log' for a trace. It's usually dumped into the dir that TC starts from. Wendell -Original Message- From: Bender, Christopher [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 7:49 AM To: Tomcat Users List Subject: RE: Tomcat Crashing I am running windows 2000. Is there any way that my java code could be popping the stack or something along those lines? -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 9:44 AM To: Tomcat Users List Subject: RE: Tomcat Crashing Hi There, Which platform are you running on if its linix or solaris then it could be either the SIGINT (ctrc-c) or SIGHUP (your console closing) causing it to exit. Thanks Pete -Original Message- From: Bender, Christopher [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 14:42 To: Tomcat Users List Subject: Tomcat Crashing Hey, I am fairly new to Tomcat and developing a web-app that does some database work. Lately, Tomcat (4.1.29) will sometimes inexplicably crash without error. My Tomcat console window just closes and I get an apache error, 500 Internal Server Error, in my browser, (apache and tomcat liked with mod_jk2). When I look in the log files, I do not see anything that seems abnormal. I wish I could give more information but Im not even sure where to look right now. Has anyone in the community encountered a similar problem and found what the cause may be? If there is somewhere else I could look for error information please let me know. Thanks, 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC Case Sensitivity Question [Workaround]
That piece is known, but for webapps and the like, some people bookmark, some people remember.. I think a good overall suggestion is to utilize different Host elements with each mapping at the root of that Host to the specified webapp rather than using the webapps as virtual directories under a single host element This posting is more for others who may experience / have the same questions as me: For those of you familiar with IIS and host header virtual web's, tomcat may be configured as such: someotherwebappalias.yourdomain.com This would respond to the root levels of (case-insensitve for the fqdn's): somewebapp.yourdomain.com someotherwebappalias.yourdomain.com -Art -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 8:49 AM To: Tomcat Users List Subject: Re: TC Case Sensitivity Question Art, > Same line of question, how do tomcat web admins present URL's? Is > there a defacto standard for tomcat web developers that only upper, > lower, or camel notation From and end users perspective, having to > alter case for a web URL is a hassle, and in most cases would yield a > 404 because of disregard of said case. Just looking for insight on > how people handle the general computer user out there. Well, in general, users aren't expected to remember URLs. Hostnames are case-insensitive, and that's typically all you're ever expected to remember. Just type in "www.google.com" and you'll get google. Everything else is just bookmarks, right? If a user happens to "remember" a URL and types is in correctly, there's no expectation that the site will magically figure out what they wanted to type. -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]
problem mod_jk2 sticky session
Hi all, I have apache2.0.47, mod_jk2 and two different instances of tomcat4.1.x In server.xml I set and respectively. My worker2.properties looks like ... [channel.socket:10.10.30.107:8009] debug=10 host=10.10.30.107 port=8009 tomcatId=10.10.30.107:8009 group=testlb [channel.socket:10.10.30.108:8009] debug=10 host=10.10.30.108 port=8009 tomcatId=10.10.30.108:8009 group=testlb [lb:testlb] info=testlb commento debug=10 ... Now load balancing work fine but sticky session no. why? It seems I respect what documentation says. Can someone help me? Thanks Luca __ 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]
Re: j_security_check - Bookmarking the login page. A teaser!
The bookmarking of the login page is a well known issue. However, without dumping CMS there seems to be little to do but resort to a few hacks ;( Our hack pt1: Add to the top of the login page a redirect to a sensible entry point for the app: <% if (request.getSession(false).isNew()) response.sendRedirect("/index.jsp"); %> Our hack pt2: Add an error page that catches the 'illegal direct reference to login page' (or whatever it is). Use this error page to redirect to a sensible entry point to the app. eg: <% Object badUri = request.getAttribute("javax.servlet.error.request_uri"); Object errorCode = request.getAttribute("javax.servlet.error.status_code"); if ("/j_security_check".equalsIgnoreCase(badUri.toString()) && "400".equals(errorCode.toString())) { response.sendRedirect("/index.jsp"); return; } %> Pt 2 also catches things like a user sitting on the login page until the session times out. HTH, Jon David Legg wrote: Hi Adoni, No... you are not alone. I've been there too! My half hearted solution was to simply display a message on the login page asking them not to bookmark it. I think the proper solution would be to allow developers to specify a 'default' url along with the login and error urls. This page could then be displayed instead of the error page when there is no saved target url. You will probably also come across another non-obvious problem to do with form-based security. When people use download accelerators like 'GetRight' etc these programs attempt to download a given url. Unfortunately if the item they are trying to download falls under your protected region Tomcat will present them with the login page instead of the resource they were after. This will happen even if you have successfully logged in because as far as Tomcat is concerned the request came from a new and as yet not logged in session. Regards, David Legg Web Analyst - 3Dlabs - 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]
ConnectException in Tomcat 4.1
Hi, I'm trying to run my web application with Tomcat 4.1 (until now I worked with Tomcat 3.2, and didn't have any problems). In my application I have an applet that reads from a file (the file is located on the web server.) When I try to do it (using Url.openStream()) I get: java.net.ConnectException: Connection refused. I guess I have to configure some kind of permissions in the tomcat configuration files or something like that, but I didn't find anything. (In my Java policy tool I made sure to give java.security.AllPermission, but I'm not sure that it's connected). I know that the problem is not with my applet since the same code is running perfectly on Tomcat 3.2. Can you please help me?... Thanks a lot, Efrat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Odgovori: Character problem
Hi! In your JSP put: <%@ page contentType="text/html; charset=iso-8859-2" language="java" import="java.sql.*" errorPage="" %> and then in your servlet/jsp use request.setEncoding("iso-8859-2"); before you access any parameters inside request. Hope this helps. :) Best regards, Kovi > > Od: "Burak Takmaz" <[EMAIL PROTECTED]> > Datum: 2003/11/18 Tor AM 10:54:01 GMT+01:00 > Za: [EMAIL PROTECTED] > Zadeva: Character problem > > On my jsp pages,i am calling a method from my class.Its return type is > String.But in the browser the Turkish caracteres like "ţ,đ,ç" seem to be > corrupted.I put page directive on the of my jsp pages.Is that Tomcat who is > changing my encoding?Where can i set the default encoding of Tomcat?Thanks > for your helps. > > _ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > - > 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]
NT Service and Home Directory
Hey all, I'm running tomcat 4.1.29 as a service on a windows xp machine. My webapp uses some CORBA stuff and needs a jacorb.properties file located in my home directory. I've tried setting up the service to run using my user account but it can't find the properties file in my home directory. Is there anyway to setup the service to run as if I was logged into the machine and ran 'catalina run'?? Cheers, Graham Graham Lounder - Java Developer CARIS Spatial Components Division [EMAIL PROTECTED] Phone: (506) 458-8533 Fax:(506) 459-3849 NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 1.3, Tomcat 5 and Panther
At 9:19 am -0500 2003/11/19, Carlton Ellis wrote: Trying to setup a development environment on my Mac running OS 10.3 (Panther). Everything I see refers to Tomcat 4.1 - and nothing quite fits. Has anyone done this yet? I have placed Tomcat in /Library/Tomcat/jwsdp-1.3 and the Apache 1.3 is "as delivered" with Panther. http://mywebsite brings up Apache 1.3 and http://mywebsite:8080 brings up Web Services Developer Pack 1.3. The samples do work under Tomcat. Now I just need to "connect". do you mean that you want to be able to access to servlets/jsp on port 80 rather than 8080? Then you need mod_jk. I have no experience with apache 1.3 anymore... but if you look at my page on http://www.humph.com/docs/mod_jk.html you will find the instructions to build both mod_jk and mod_jk2, under apache 2. They were written for MacOSX10.2.6, but they should work under 10.3 (I haven't had a chanche to test the build under the GM of 10.3 yet). Giuliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problem
I uninstalled and reinstalled tomcat still experiencing the same flickering window error. While installing tomcat during the JVM path selection the default path listed was "C:\Program Files\Oracle\jre\1.1.7" I changed that path name to "C:\Program Files\j2sdk_nb\j2sdk1.4.2" Til now , I didnt try to create any path for JAVA_HOME AND CATALINA_HOME, do i have to do that? Your help is most appreciated.. Thanks in anticipation. bfn > > Try uninstalling, and then re-installing Tomcat. It > should then pick up your J2SDK install path. If this > doesn't work, then try "ÊTALINA_HOME%\bin\catalina run", > and post the error messages on the list for more help. > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Sorry to bother you with this elementary question. But > > being a neebie I am finding difficulties in installing > tomcat 5.0 > > > 1. I ran the installation file for installing the tomcat > > 5.0. > > 2. Then I ran the j2sdk setup file , since tomcat was > > asking for a JVM. > > 3. > > i. Now, i clicked the "Start Tomcat" icon the windows > > key + Program files + Apache tomcat. I find a window > > disappearing as soon as it appears. > > > > ii. I tried again by running the catalina.bat or > > startup.exe file icon in the bin folder of tomcat. Again > > , i find the disappearing window. > > > > iii. Even if i run that file in the command prompt i am > > getting the same response. > > > > I also need to know as to how I could allow a friend > > access my files via the browser. i.e where should i make > > the appropriate modifications to allow him to view my > files. > > > > > Your help will be most appreciated. > > > > Thanks for your help inanticipation > > > > > -- > --- 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]
JDBCRealm configuration and JBDC Driver classpath
I am trying to configure form based authentication using a JDBCRealm. I do not have access to the $CATALINA_HOME/common/endorsed folder or server.xml file as my webapp is hosted in a shared environment by an ISP. Therefore I have created a Context configuration xml file fragment to provide the required Realm implementation settings/attributes for Tomcat to load from my root folder at start-up. The problem I am experiencing is that because I am not permitted to access the $CATALINA_HOME/common/endorsed folder I am unable to put the Driver jar (mysql-connector-java-3.0.7-stable-bin.jar) in the container classpath. Attempts to get the container to detect the Driver in the Context classpath (/WEB-INF/lib) of my webapp have proved futile (or so it seems). As a result Tomcat does not recognize the login form action 'j_security_check' when the form is posted, presumably because the driver required to look-up user credentials was not loaded/located in the first place. Can anyone advise of a work-around, or let me know if I have overlooked something, or am I simply snookered...? Thanks Andrew Murphy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat & OpenJMS Design Pattern?
You could check this article http://www.onjava.com/pub/a/onjava/2001/12/12/openjms.html HTH, Rodrigo Ruiz Gavin, Rick wrote: Hi All, Just wondering if any could post a working design pattern for using openJMS or another open JMS engine with tomcat, preferably a model using asynchronous queue message handling. I figured someone around here has done it and I would rather use a tried and true model. Looking for some basics about best intregration method, and or for dealing with async message Handling. I currently have openJMS setup using persistent Database storage, using JNDI content lookup to Get the JMS connection factory, is this better looked up once and bound to servlet context as an Application scope variable, etc, etc? Thanks for you any help, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 uri mapping
hi it's really wired. i can't find the fault in my configuration everything seems to work perfectly jakarta-tomcat-4.1.29 httpd 2.0.48 mod_jk2/2.0.3-dev connected via UNIX Socks the problem is: [uri:/examples/*] info=Prefix mapping localhost/examples/ works localhost/examples/a localhost/examples/b or anything else doesn't [uri:/examples/*postfix] info=Prefix mapping works without a problem i'm not able making the end undefined thx4any help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: j_security_check - Bookmarking the login page. A teaser!
Andoni: Which version of Tomcat do you use? On Tomcat 5.0.14, if you access a protected page, the web browser displays the login page, but in the address field, the browser continues to list the protected page address. If you bookmark the page, your browser stores the address of the protected page, not the login page. As a consequence of the browser preserving the protected page address, but displaying the login page, the browser continues to display links and images relative to the protected page's URL. As the protected page may be located in any protected path, your login page may not properly display images or import stylesheets located in other unprotected areas, including those in the same directory as the login page. In order to guarantee that the login page refers correctly to these unprotected objects, the login page must refer to them using addresses relative to the application context (in the address http://www.mytomcatsite.net/myapp, "myapp" is the context). For example, you could use the JSTL tag to set the context address (URL) and refer to objects relative to this address: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%-- Calculate URLs relative to application context. --%> http://www.w3.org/TR/REC-html40/loose.dtd";> Unless you specify an absolute address, both JSTL tags and form addresses relative to the application context. These come in handy in your login page. Derek -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: November 19, 2003 5:14 AM To: Tomcat Users List Subject: j_security_check - Bookmarking the login page. A teaser! Hello, I have recently switched my site to using form-based logins. I found as soon as I started testing that there is a fundamental problem with this approach. When the user get sent via a click to a protected page they get the login screen. The only problem arises when a user bookmarks the login screen. If they bookmark the login screen then use this bookmark to bring it up, when they enter their details Tomcat doesn't know where to bring them next and hence gives them an error message. I can use Apache rewriting or aliasing if you think either of these will help solve the problem. Any suggestions? Surely this problem has been encountered by everyone who has ever implemented form-based login, or do they just not? Thanks, Andoni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Odgovori: Character problem
just add CATALINA_OPTS="-Dfile.encoding=ISO-8859-2" it works fine -Original Message- From: [EMAIL PROTECTED] To: Tomcat Users List Sent: 19/11/2003 8:40 PM Subject: Odgovori: Character problem Hi! In your JSP put: <%@ page contentType="text/html; charset=iso-8859-2" language="java" import="java.sql.*" errorPage="" %> and then in your servlet/jsp use request.setEncoding("iso-8859-2"); before you access any parameters inside request. Hope this helps. :) Best regards, Kovi > > Od: "Burak Takmaz" <[EMAIL PROTECTED]> > Datum: 2003/11/18 Tor AM 10:54:01 GMT+01:00 > Za: [EMAIL PROTECTED] > Zadeva: Character problem > > On my jsp pages,i am calling a method from my class.Its return type is > String.But in the browser the Turkish caracteres like "t,d,ç" seem to be > corrupted.I put page directive on the of my jsp pages.Is that Tomcat who is > changing my encoding?Where can i set the default encoding of Tomcat?Thanks > for your helps. > > _ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > - > 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: Relationship between server.xml/Resource and web.xml/resource-ref.
Thanks! Your reply is an excellent summary of the relationship between in server.xml, in , and in the deployment descriptor. It's too bad that "Tomcat: The Definitive Guide" does not describe it quite so well! Because of all of these references, I found resources to be one of the most difficult Tomcat features to understand and configure. Your summary of this relationship and makes it so much easier to understand! Derek -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: November 19, 2003 8:31 AM To: Tomcat Users List Subject: Re: Relationship between server.xml/Resource and web.xml/resource-ref. Florian, > Is it completely up to the developers/deployers wether the necessary > resources get declared in the server or in the application? This is correct. > Is it just > for convenience, so that deployer doesn't have to unpack the WAR? No, this has nothing to do with unpacking WAR files. > Or -- > like someone stated on this list (to my confusion) -- that the > server.xml Resource element and the web.xml resource-ref have a relation > that is similar to that of an implementation class instance and an > interface? This is an apt analogy. The server.xml sets up the actual resource (often in the section), then allows the application to use it (by adding a section in the where you want to use it). The webapp signifies its desire to use that resource by including a complimentary section in the deployment descriptor. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.0.4 slow startup time
Thank you for your input. I haven't run our webapp standalone on Linux in awhile, so I'll time that. On windows standalone, it comes right up. I'll go back through the config files and see if there's anything more I can comment out. We definitely don't have any extra webapps hanging around - I explicitly clean up everything on clean builds anyway. I'm thinking it really might be the integration with Apache slowing us down, so I'll work more on that. Thank you! -Angelina -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 8:30 AM To: Tomcat Users List Subject: RE: Tomcat 4.0.4 slow startup time Howdy, >Hello! We're running Tomcat 4.0.4 behind Apache 1.3.27 on Linux using >mod_jk. I've noticed really long startup times for Tomcat on our system, >even though we already have the ROOT.war uncompressed. During this time, >all the user can see is an Internal Server Error page until Tomcat is >ready. Note the time is worse for the initial access after we deploy a >new ROOT >directory than on subsequent restarts (probably because we have some pages >compiled already?). Is there any way to reduce this wait time? Sometimes it >can be on the order of a minute or more, which isn't very good for our >users. 1. Compressing or uncompressing WARs doesn't make much of a difference unless they're huge. 2. Make sure you don't start anything you don't need, i.e. comment out any connectors, valves, loggers, engines, hosts, contexts you don't use from server.xml. 3. Remove any webapps you don't need. 4. See if the server's startup time is also slow when you take out your struts webapp. 5. Take apache and the apache->tomcat connectors out of the equation temporarily: just start up tomcat and see how long that takes. Personally, I haven't benchmarked tomcat 4.0.x in a while but 4.1.29 starts in about 15sec for me with one connector, one valve, one webapp, normal loggers. EMC ;) I did a co-op there during my undergrad and still know several of the engineers... Nice place. Yoav Shapira 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]
"hot" deploy
is there an easy way to deploy a web application over another existent one without stopping tomcat and without killing the current sessions? -- [] Leonardo Kenji Shikida Vetta Technologies http://www.vettatech.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration via database, rather than XML
I heard that it is possible to load Tomcat configurations from a database rather than from server.xml/web.xml files. Is this true? Is this difficult to configure? Are there shortcomings in this configuration? Justin
Re: Configuration via database, rather than XML
Not true. -Tim Hart, Justin wrote: I heard that it is possible to load Tomcat configurations from a database rather than from server.xml/web.xml files. Is this true? Is this difficult to configure? Are there shortcomings in this configuration? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuration via database, rather than XML
Cool, thanks. Justin -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wed 11/19/2003 11:43 AM To: Tomcat Users List Cc: Subject: Re: Configuration via database, rather than XML Not true. -Tim Hart, Justin wrote: > I heard that it is possible to load Tomcat configurations from a database rather than from server.xml/web.xml files. > Is this true? > Is this difficult to configure? > Are there shortcomings in this configuration? > > Justin > > - 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: JDBCRealm configuration and JBDC Driver classpath
Andrew, anyone please correct me if I'm wrong, but I'm afraid you've got at least two problems here: 1. As far as I know it is not possible to define a Realm outside of server.xml. If you do not have access to that file, I see no way you can use container managed security, which is a prerequisite for form based authentication (or rather the other way around: form based authentication is just one way to use container managed security). 2. Here I'm even more unsure, but I think I read somewhere that the container managed security of tomcat is starting to work _outside_ of your context (only then should single sign on be possible, which it is with tomcat). Then you would definitely need your drivers somewhere where the server can see them, i.e. $CATALINA_HOME/common/lib. Some good news, though: Besides this, you should be able to use your database. If you try to establish a connection only inside your context, the driver in your WEB-INF/lib directory should be enough. As a last resort you could implement some application managed security, although this is quite a nuisance (as I can tell). Greetings Andreas Mohrig -Original Message- From: Andrew Murphy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: JDBCRealm configuration and JBDC Driver classpath I am trying to configure form based authentication using a JDBCRealm. I do not have access to the $CATALINA_HOME/common/endorsed folder or server.xml file as my webapp is hosted in a shared environment by an ISP. Therefore I have created a Context configuration xml file fragment to provide the required Realm implementation settings/attributes for Tomcat to load from my root folder at start-up. The problem I am experiencing is that because I am not permitted to access the $CATALINA_HOME/common/endorsed folder I am unable to put the Driver jar (mysql-connector-java-3.0.7-stable-bin.jar) in the container classpath. Attempts to get the container to detect the Driver in the Context classpath (/WEB-INF/lib) of my webapp have proved futile (or so it seems). As a result Tomcat does not recognize the login form action 'j_security_check' when the form is posted, presumably because the driver required to look-up user credentials was not loaded/located in the first place. Can anyone advise of a work-around, or let me know if I have overlooked something, or am I simply snookered...? Thanks Andrew Murphy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Re: Mobile phone on serial port - Howto send sms?
Hello List... Apologies for the cut and paste of the thread below... I just wanted to add an answer to the problem I had of how to send an sms using a servlet. I'm sure that the ability to send GSM text messages would be very useful - at least for the Euro-tomcatters. The following URL provides a small .jar to do exactly that: http://www.waex.com/techinfo/sms.htm (Many thanks to Philippe Bertramo for the code) /j-p. >List: tomcat-user >Subject: Re: Mobile phone on serial port - Howto send sms? >From: "Christopher Williams" >Date: 2003-09-11 8:36:27 >Seems a bit cheeky: the question "how do I send SMS messages using Tomcat?" >is really "how do I send SMS messages using Java?" and there are probably >more relevant mailing lists for that question. Anyway, presumably your >mobile phone can impersonate a Hayes modem, so you need to open up your COM >port and write Hayes commands to dial the number you want. Then you need to >write your SMS message. This is a standard, so you need to obtain the >appropriate standards documents. Then you hangup the phone, again using >Hayes commands. >An alternative is to use a web-based SMS service, such as the one on Lycos, >and then post the appropriate data to the URL. There are commercial >services available as well - do a Google search. >List: tomcat-user >Subject: [OT]Re: Mobile phone on serial port - Howto send sms? >From: Kwok Peng Tuck >Date: 2003-09-11 5:12:38 >Another option is available to you John-Paul, specifically, >http://www.kannel.org which is a wap and sms gateway. >This gateway is based on linux although you can use cygwin to compile >and run it, far from ideal but it does work >and is usable enough for testing. The gateway does support most GSM >modems and supports other major protocols like >SMPP, CIMD... for connecting to telcos. Once you set it up you can send >sms through it's http interface. So from your servlet or business logic >class, just >make a http call to the gateway with the correct parameters and your sms >will be sent of. A> library like commons http-client will be quite useful in this case. >FYI : kannel is open source. >Sai Sivanesan wrote: >we have an affilliate company that has a product comming on the market that >uses a Nokia 30 or Nokia 31 GSM modem(phone without a headset and with a rs232 >port) and does exactly that. we have a client server version comming out - i >will ask how its done - can't be too difficult as the app is mostly a vb >piece. as long as i am not going to give away anything to proprietary i'll >share it - why do you want to use a serial conection - do you need to receive >sms msgs as well as send? cause if all you need to do is send, why don't you >just dispatch it as an email? > >Sai. > > > > >On Wed, 10 Sep 2003 23:34:51 -0100 (GMT+1), john-paul delaney wrote > > >>Hello List... this is a tricky one I believe, >> >>Serial port-connected mobile phone - I'd like to find out how to >>send sms messages using tomcat on linux. Anyone got any leads? >> >>I'd appreciate any help. >> >>thanks, >>/j-p. >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm configuration and JBDC Driver classpath
On Wednesday 19 November 2003 10:52 am, Andreas Mohrig wrote: > 1. As far as I know it is not possible to define a Realm outside of > server.xml. If you do not have access to that file, I see no way you can > use container managed security, which is a prerequisite for form based > authentication (or rather the other way around: form based authentication > is just one way to use container managed security). You can define a realm in a Context block of your application. These can be in the file {application}.xml that is put in your webapps directory. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm configuration and JBDC Driver classpath
> Can anyone advise of a work-around, or let me know if I have overlooked You might want to look at http://www.securityfilter.org/ It mimics CMS, but it can be rolled up inside your application. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot access my web application (resource is not available)
username monsorno password xxx driverClassName org.postgresql.Driver url jdbc:postgresql:myappdb -- Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check - Bookmarking the login page. A teaser!
Hi, I have implemented this and on first sight it seems to work perfectly. Can you please just confirm my understanding of it though so I am sure I know what I am doing: 1. The error page part need never really come in to play. 2. A user calls the login page and it basically is using the session's isNew method to decide whether this is a session just newly created from a bookmark or a session that was in existence before the login page was displayed as would be the case with one that had been created in whichever page had called index.jsp. Thanks, Andoni. - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 2:54 PM Subject: Re: j_security_check - Bookmarking the login page. A teaser! > The bookmarking of the login page is a well known issue. However, > without dumping CMS there seems to be little to do but resort to a few > hacks ;( > > Our hack pt1: > Add to the top of the login page a redirect to a sensible entry point > for the app: > <% if (request.getSession(false).isNew()) > response.sendRedirect("/index.jsp"); %> > > Our hack pt2: > Add an error page that catches the 'illegal direct reference to login > page' (or whatever it is). Use this error page to redirect to a sensible > entry point to the app. > eg: > <% Object badUri = request.getAttribute("javax.servlet.error.request_uri"); > Object errorCode = > request.getAttribute("javax.servlet.error.status_code"); > if ("/j_security_check".equalsIgnoreCase(badUri.toString()) > && "400".equals(errorCode.toString())) { > response.sendRedirect("/index.jsp"); > return; > } > %> > > Pt 2 also catches things like a user sitting on the login page until the > session times out. > > HTH, > > Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problem
Hello > I changed that path name to > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" If you are talking about your $PATH system environment variable, the setting should be: "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > Til now , I didnt try to create any path for JAVA_HOME AND > CATALINA_HOME, do i have to do that? You need both. JAVA_HOME should be: "C:\Program Files\j2sdk_nb\j2sdk1.4.2" CATALINA_HOME should be the root-installation folder for Tomcat, wherever it is - analogous to JAVA_HOME. Good luck! Harry Mantheakis London, UK > I uninstalled and reinstalled tomcat still experiencing the > same flickering window error. > > While installing tomcat during the JVM path selection the > default path listed was > > "C:\Program Files\Oracle\jre\1.1.7" > > I changed that path name to > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > Til now , I didnt try to create any path for JAVA_HOME AND > CATALINA_HOME, do i have to do that? > > Your help is most appreciated.. > > Thanks in anticipation. > > bfn >> >> Try uninstalling, and then re-installing Tomcat. It >> should then pick up your J2SDK install path. If this >> doesn't work, then try "ÊTALINA_HOME%\bin\catalina run", >> and post the error messages on the list for more help. >> >> <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> Sorry to bother you with this elementary question. But >>> being a neebie I am finding difficulties in installing >> tomcat 5.0 > >>> 1. I ran the installation file for installing the tomcat >>> 5.0. >>> 2. Then I ran the j2sdk setup file , since tomcat was >>> asking for a JVM. >>> 3. >>> i. Now, i clicked the "Start Tomcat" icon the windows >>> key + Program files + Apache tomcat. I find a window >>> disappearing as soon as it appears. >>> >>> ii. I tried again by running the catalina.bat or >>> startup.exe file icon in the bin folder of tomcat. Again >>> , i find the disappearing window. >>> >>> iii. Even if i run that file in the command prompt i am >>> getting the same response. >>> >>> I also need to know as to how I could allow a friend >>> access my files via the browser. i.e where should i make >>> the appropriate modifications to allow him to view my >> files. > >>> >>> Your help will be most appreciated. >>> >>> Thanks for your help inanticipation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCRealm configuration and JBDC Driver classpath
Thanks for your comments. I am beginning to suspect that my options are limited and may have to resort to application managed security which I have tried to avoid up to now. Alternatively I could try persuade my ISP to include the jar in the container classpath (wishful thinking!) By the way Andreas, it is permissable to create a xml context fragment outside of the server.xml (covered in Tomcat, The Definitive Guide ISBN 0-596-00318-8) Regards Andrew Murphy Mobile: +44 (0)7970 176565 -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 16:52 To: 'Tomcat Users List' Subject: RE: JDBCRealm configuration and JBDC Driver classpath Andrew, anyone please correct me if I'm wrong, but I'm afraid you've got at least two problems here: 1. As far as I know it is not possible to define a Realm outside of server.xml. If you do not have access to that file, I see no way you can use container managed security, which is a prerequisite for form based authentication (or rather the other way around: form based authentication is just one way to use container managed security). 2. Here I'm even more unsure, but I think I read somewhere that the container managed security of tomcat is starting to work _outside_ of your context (only then should single sign on be possible, which it is with tomcat). Then you would definitely need your drivers somewhere where the server can see them, i.e. $CATALINA_HOME/common/lib. Some good news, though: Besides this, you should be able to use your database. If you try to establish a connection only inside your context, the driver in your WEB-INF/lib directory should be enough. As a last resort you could implement some application managed security, although this is quite a nuisance (as I can tell). Greetings Andreas Mohrig -Original Message- From: Andrew Murphy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: JDBCRealm configuration and JBDC Driver classpath I am trying to configure form based authentication using a JDBCRealm. I do not have access to the $CATALINA_HOME/common/endorsed folder or server.xml file as my webapp is hosted in a shared environment by an ISP. Therefore I have created a Context configuration xml file fragment to provide the required Realm implementation settings/attributes for Tomcat to load from my root folder at start-up. The problem I am experiencing is that because I am not permitted to access the $CATALINA_HOME/common/endorsed folder I am unable to put the Driver jar (mysql-connector-java-3.0.7-stable-bin.jar) in the container classpath. Attempts to get the container to detect the Driver in the Context classpath (/WEB-INF/lib) of my webapp have proved futile (or so it seems). As a result Tomcat does not recognize the login form action 'j_security_check' when the form is posted, presumably because the driver required to look-up user credentials was not loaded/located in the first place. Can anyone advise of a work-around, or let me know if I have overlooked something, or am I simply snookered...? Thanks Andrew Murphy - 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]
Agains problems with threads
I'm confused about this behavior. My tomcat 4.1 (Linux Red Hat 7.3 and IBM JDK 1.3.0) unexpectedly creates several threads and hangs. See log below. It shows the instant time and the numbers of threads (ps -ef|grep -i java -c) It was 35-37 threads about 6 hours. Then it increases the numbers of threads abruptly. What is the problem? Wed Nov 19 13:52:53 AMST 2003 qt. threads java: 37 Wed Nov 19 13:52:57 AMST 2003 qt. threads java: 37 Wed Nov 19 13:53:00 AMST 2003 qt. threads java: 37 Wed Nov 19 13:53:04 AMST 2003 qt. threads java: 37 Wed Nov 19 13:53:07 AMST 2003 qt. threads java: 37 Wed Nov 19 13:53:11 AMST 2003 qt. threads java: 37 Wed Nov 19 13:53:14 AMST 2003 qt. threads java: 37 Wed Nov 19 13:53:17 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:21 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:25 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:28 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:32 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:35 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:39 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:42 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:46 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:49 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:53 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:56 AMST 2003 qt. threads java: 41 Wed Nov 19 13:53:59 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:03 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:06 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:10 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:13 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:17 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:20 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:24 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:27 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:31 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:35 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:38 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:42 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:46 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:49 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:53 AMST 2003 qt. threads java: 41 Wed Nov 19 13:54:56 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:00 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:03 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:07 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:10 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:14 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:17 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:21 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:24 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:28 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:31 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:35 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:38 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:42 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:45 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:49 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:52 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:56 AMST 2003 qt. threads java: 41 Wed Nov 19 13:55:59 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:03 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:06 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:10 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:14 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:18 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:21 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:25 AMST 2003 qt. threads java: 41 Wed Nov 19 13:56:28 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:32 AMST 2003 qt. threads java: 44 Wed Nov 19 13:56:35 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:39 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:42 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:46 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:49 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:53 AMST 2003 qt. threads java: 45 Wed Nov 19 13:56:57 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:00 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:04 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:07 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:11 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:14 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:18 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:22 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:25 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:29 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:32 AMST 2003 qt. threads java: 45 Wed Nov 19 13:57:36 AMST 2003 qt. threads java: 49 Wed Nov 19 13:57:40 AMST 2003 qt. threads java: 49 Wed Nov 19 13:57:43 AMST 2003 qt. threads java: 49 Wed Nov 19 13:57:47 AMST 2003 qt. threads java: 49 Wed Nov 19 13:57:50 AMST 2003 qt. threads java: 49 Wed Nov 19 13:57:54 AMST 2003 qt. threads java: 49 Wed Nov 19 13:57:58 AMST 2003 qt. threads java: 49 Wed Nov 19 13:58:02 AMST 2003 qt. threads java: 53 Wed Nov 19 13:58:06 AMST 2003 qt. threads java: 53 Wed Nov 19 13:58:09 AMST 2003 qt. threads java: 53 Wed Nov 19 13:58:13 AMST 2003 qt. threads java: 57 Wed Nov 19 13:58:1
Re: j_security_check - Bookmarking the login page. A teaser!
On 11/19/2003 02:57 PM Christopher Schultz wrote: No, 'fraid not, your app never gets to see requests to j_security_check - it's handled by tomcat beforehand. Right, and the user never sees this URL. They're talking about intercepting the request for the login *page*, not the j_security_check request. Oh right. Sorry. Was suffering an attack of abject stupidity. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCRealm configuration and JBDC Driver classpath
Andrew, thank you. Jon Anderson pointed it out, too. Not knowing such things comes from being blessed (and cursed) with a tomcat installation totally under my control and without any restrictions. Greetings Andreas Mohrig -Original Message- From: Andrew Murphy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 6:31 PM To: Tomcat Users List Subject: RE: JDBCRealm configuration and JBDC Driver classpath Thanks for your comments. I am beginning to suspect that my options are limited and may have to resort to application managed security which I have tried to avoid up to now. Alternatively I could try persuade my ISP to include the jar in the container classpath (wishful thinking!) By the way Andreas, it is permissable to create a xml context fragment outside of the server.xml (covered in Tomcat, The Definitive Guide ISBN 0-596-00318-8) Regards Andrew Murphy Mobile: +44 (0)7970 176565 -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 16:52 To: 'Tomcat Users List' Subject: RE: JDBCRealm configuration and JBDC Driver classpath Andrew, anyone please correct me if I'm wrong, but I'm afraid you've got at least two problems here: 1. As far as I know it is not possible to define a Realm outside of server.xml. If you do not have access to that file, I see no way you can use container managed security, which is a prerequisite for form based authentication (or rather the other way around: form based authentication is just one way to use container managed security). 2. Here I'm even more unsure, but I think I read somewhere that the container managed security of tomcat is starting to work _outside_ of your context (only then should single sign on be possible, which it is with tomcat). Then you would definitely need your drivers somewhere where the server can see them, i.e. $CATALINA_HOME/common/lib. Some good news, though: Besides this, you should be able to use your database. If you try to establish a connection only inside your context, the driver in your WEB-INF/lib directory should be enough. As a last resort you could implement some application managed security, although this is quite a nuisance (as I can tell). Greetings Andreas Mohrig -Original Message- From: Andrew Murphy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: JDBCRealm configuration and JBDC Driver classpath I am trying to configure form based authentication using a JDBCRealm. I do not have access to the $CATALINA_HOME/common/endorsed folder or server.xml file as my webapp is hosted in a shared environment by an ISP. Therefore I have created a Context configuration xml file fragment to provide the required Realm implementation settings/attributes for Tomcat to load from my root folder at start-up. The problem I am experiencing is that because I am not permitted to access the $CATALINA_HOME/common/endorsed folder I am unable to put the Driver jar (mysql-connector-java-3.0.7-stable-bin.jar) in the container classpath. Attempts to get the container to detect the Driver in the Context classpath (/WEB-INF/lib) of my webapp have proved futile (or so it seems). As a result Tomcat does not recognize the login form action 'j_security_check' when the form is posted, presumably because the driver required to look-up user credentials was not loaded/located in the first place. Can anyone advise of a work-around, or let me know if I have overlooked something, or am I simply snookered...? Thanks Andrew Murphy - 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: Still character problems
You need to go with UTF-8 See the Tomcat FAQ. My application runs in 17 different languages with no problems using what I find there. Andoni. - Original Message - From: "Burak Takmaz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 10:56 AM Subject: Still character problems >I'am calling a method from my jsp pages.The method is placed in a bean > class.Its return type is String.And it includes the characters such as > "ü,þ,ç,ö"(some Turkish caracteres).But these characteres seem to be > corrupted on the jsp pages.I put the page and meta tags who are denoting > that the page's encoding is ISO-8859-9.Also i saved my bean class under > ISO-8859-9 encoding.I started Tomcat with > CATALINA_OPTS=-Dfile.encoding=ISO-8859-9.Did it work?Of course,it > didn't.What can i do more? > > Burak Takmaz > Web programmer - Bilgitaþ/Ýstanbul > > _ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus > > > - > 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]
reading properties file....
Hi all, Trying to read a properties file for my web appI have a singleton class that reads my properties file and sets my properties the first time the class is called..It reads the file fine, but after the singleton gets loaded and i go to a jsp page that hasnt' been compiled yet i recieve this error(at the bottom).here's how i'm reading the propeties file...the error is really wierd...when tomcat spits out the error, usually there's a carriage return after each exception that is thrown.but thats not the case...wierdness...does anyone have any insight to my situation, I'm especially interested in how to read a properties file correctlymy properties file is located in the "classes" directory (is this a good idea?) and my webapp gets deployed as a .war file... InitProps.java === System.out.println(" Server Initilization ##"); Properties props = new Properties(); InputStream in = getClass().getClassLoader().getResourceAsStream("application.properties"); props.load(in); System.setProperties(props); in.close(); System.out.println("# Done ##"); = Error: = java.lang.NullPointerExceptionnull at java.io.Writer.write(Writer.java:126)null at java.io.PrintWriter .newLine(PrintWriter.java:254)null at java.io.PrintWriter.println(PrintWriter.java:405)nullat java.io .PrintWriter.println(PrintWriter.java:516)null at org.apache.catalina.logger.LoggerBase.log(LoggerBase.java:2 90)null at org.apache.coyote.tomcat4.CoyoteAdapter.log(CoyoteAdapter.java:655)null at org.apache.coyote.t omcat4.CoyoteAdapter.service(CoyoteAdapter.java:230)nullat org.apache.coyote.http11.Http11Processor.pr ocess(Http11Processor.java:601)null at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pro cessConnection(Http11Protocol.java:392)null at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEnd point.java:565)null at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)n ull at java.lang.Thread.run(Thread.java:534)nullNov 19, 2003 1:03:38 PM org.apache.coyote.http11.Http11Pro cessor process === Thanx Russ
RE: JDBCRealm configuration and JBDC Driver classpath
Jon, thank you. I will certainly implement this option if my plea to my ISP falls on deaf ears. Andrew -Original Message- From: Jon Anderson [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 17:16 To: Tomcat Users List Subject: Re: JDBCRealm configuration and JBDC Driver classpath > Can anyone advise of a work-around, or let me know if I have overlooked You might want to look at http://www.securityfilter.org/ It mimics CMS, but it can be rolled up inside your application. Jon - 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: Installation problem
Hi Harry, Did as told. c:\>Set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.0 c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 Still i am getting this flickering screen. Please tell me how to solve this problem. Thanks in anticipation > > Hello > > > I changed that path name to > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > If you are talking about your $PATH system environment > variable, the setting should be: > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > Til now , I didnt try to create any path for JAVA_HOME > > AND CATALINA_HOME, do i have to do that? > > You need both. JAVA_HOME should be: > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > CATALINA_HOME should be the root-installation folder for > Tomcat, wherever it is - analogous to JAVA_HOME. > > Good luck! > > Harry Mantheakis > London, UK > > > > I uninstalled and reinstalled tomcat still experiencing > > the same flickering window error. > > > > While installing tomcat during the JVM path selection > > the default path listed was > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > I changed that path name to > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > Til now , I didnt try to create any path for JAVA_HOME > > AND CATALINA_HOME, do i have to do that? > > > > Your help is most appreciated.. > > > > Thanks in anticipation. > > > > bfn > >> > >> Try uninstalling, and then re-installing Tomcat. It > >> should then pick up your J2SDK install path. If this > >> doesn't work, then try "ÊTALINA_HOME%\bin\catalina run" > , >> and post the error messages on the list for more > help. >> > >> <[EMAIL PROTECTED]> wrote in message > >> news:[EMAIL PROTECTED] > >>> Sorry to bother you with this elementary question. But > >>> being a neebie I am finding difficulties in installing > >> tomcat 5.0 > > >>> 1. I ran the installation file for installing the > tomcat >>> 5.0. > >>> 2. Then I ran the j2sdk setup file , since tomcat was > >>> asking for a JVM. > >>> 3. > >>> i. Now, i clicked the "Start Tomcat" icon the windows > >>> key + Program files + Apache tomcat. I find a window > >>> disappearing as soon as it appears. > >>> > >>> ii. I tried again by running the catalina.bat or > >>> startup.exe file icon in the bin folder of tomcat. > Again >>> , i find the disappearing window. > >>> > >>> iii. Even if i run that file in the command prompt i > am >>> getting the same response. > >>> > >>> I also need to know as to how I could allow a friend > >>> access my files via the browser. i.e where should i > make >>> the appropriate modifications to allow him to > view my >> files. > > >>> > >>> Your help will be most appreciated. > >>> > >>> Thanks for your help inanticipation > > > -- > --- 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: Installation problem
Sometimes we've had problems with older Tomcats on Windows because of the space in the path name for your environment variable. I'd bet it'd help here too. Try doing it the old Windows way, like this: c:\>Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0 c:\>Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2 BTW, you can double-check these from a Windows command prompt by running dir /X. Good luck! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 1:30 PM To: Tomcat Users List Subject: Re: Installation problem Hi Harry, Did as told. c:\>Set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.0 c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 Still i am getting this flickering screen. Please tell me how to solve this problem. Thanks in anticipation > > Hello > > > I changed that path name to > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > If you are talking about your $PATH system environment variable, the > setting should be: > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > Til now , I didnt try to create any path for JAVA_HOME > > AND CATALINA_HOME, do i have to do that? > > You need both. JAVA_HOME should be: > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > CATALINA_HOME should be the root-installation folder for Tomcat, > wherever it is - analogous to JAVA_HOME. > > Good luck! > > Harry Mantheakis > London, UK > > > > I uninstalled and reinstalled tomcat still experiencing > > the same flickering window error. > > > > While installing tomcat during the JVM path selection > > the default path listed was > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > I changed that path name to > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > Til now , I didnt try to create any path for JAVA_HOME > > AND CATALINA_HOME, do i have to do that? > > > > Your help is most appreciated.. > > > > Thanks in anticipation. > > > > bfn > >> > >> Try uninstalling, and then re-installing Tomcat. It should then > >> pick up your J2SDK install path. If this doesn't work, then try > >> "ÊTALINA_HOME%\bin\catalina run" > , >> and post the error messages on the list for more > help. >> > >> <[EMAIL PROTECTED]> wrote in message > >> news:[EMAIL PROTECTED] > >>> Sorry to bother you with this elementary question. But being a > >>> neebie I am finding difficulties in installing > >> tomcat 5.0 > > >>> 1. I ran the installation file for installing the > tomcat >>> 5.0. > >>> 2. Then I ran the j2sdk setup file , since tomcat was asking for a > >>> JVM. 3. > >>> i. Now, i clicked the "Start Tomcat" icon the windows > >>> key + Program files + Apache tomcat. I find a window > >>> disappearing as soon as it appears. > >>> > >>> ii. I tried again by running the catalina.bat or startup.exe file > >>> icon in the bin folder of tomcat. > Again >>> , i find the disappearing window. > >>> > >>> iii. Even if i run that file in the command prompt i > am >>> getting the same response. > >>> > >>> I also need to know as to how I could allow a friend access my > >>> files via the browser. i.e where should i > make >>> the appropriate modifications to allow him to > view my >> files. > > >>> > >>> Your help will be most appreciated. > >>> > >>> Thanks for your help inanticipation > > > -- > --- 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: Tomcat5 Clustering problem .
you probably didn't uncomment the ReplicationValve in server.xml I will remove this as many people make this mistake, and the valve will be automatically added when the cluster starts Filip - Original Message - From: "Eric Chow" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, November 11, 2003 2:11 AM Subject: Tomcat5 Clustering problem . Hello, I followed the Tomcat5 clustering document in jakarta site. But it seems not work. The following is the configuration in server.xml : Tomcat1: Tomcat2: As I run two Tomcat5 instances in one machine, I changed the tcpListenPort (4001, 4002). And the name is also different. I used Apache JK as the Load Balance. The Load Balance is no problem, when the Tomcat1 is crashed, it can switch to the Tomcat2, but failed to hold the session ? Anything I missed or how can solve it if I want to make Tomcat clustering Platform: == JDK1.4.2 Win98 Tomcat5.0.9 == Please help. Best regards, Eric == If you know what you are doing, it is not called RESEARCH! == - 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 & OpenJMS Design Pattern?
Hi Yoav, I was looking for a basic design model, that worked well, such as a high level class diagram( classes,interfaces, etc ) that shows a good way to implement openJMS within tomcat. Some code snipets would be nice if possible. As I said, my main consern in Point-to-Point Queue processing, I don't have any need for Subscription / Topic. Basically I was looking to have some manager class that on tomcat startup, would read in a config file, then create listeners for all specified queues. It my current tests, I have been having trouble getting the listeners to work properly. I have no trouble putting messages in the queue, but my listener some how is removing the item from the queue but not calling the onMessage() method, so I never get a chance to handle the message, it just vanishes. My listeners have this structure.. class FtpQueueListener implements javax.jms.MessageListener { private QueueSession session; private QueueReceiver receiver; FtpQueueListener() close() // closes jms session // clears the reciever's message listener.. receiver.setMessageListener(null); startListener() // gets a jms connection,session, receiver and bind them to local variabls // sets the reciever's message listener to self.. receiver.setMessageListener(this); onMessage() // handles messages, but seems to never get called, broken } I was reading some info that talked about using the MessageListner.run() method in a threaded sense. You need to make the class implement runnable. Is this required for doing async message handling? Thanks for your help, Rick -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 5:26 AM To: Tomcat Users List Subject: RE: Tomcat & OpenJMS Design Pattern? Howdy, I've used and use OpenJMS with tomcat all the time, including in several production systems. What are you looking for specifically? A document? Code that sends messages to an OpenJMS queue/topic, received from an OpenJMS queue/topic, all of the above? I've actually gone from using tomcat's JNDI support to specifying the JMS connection parameters in an app-specific configuration file and creating the JMS objects myself. But I had it working via tomcat's JNDI before as well. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Gavin, Rick [mailto:[EMAIL PROTECTED] >Sent: Tuesday, November 18, 2003 6:25 PM >To: Tomcat Users List >Subject: Tomcat & OpenJMS Design Pattern? > >Hi All, > Just wondering if any could post a working design pattern for using >openJMS or another open JMS engine with tomcat, preferably a model >using asynchronous queue message >handling. I >figured someone around here has done it and I would rather use a tried and >true model. > >Looking for some basics about best intregration method, and or for dealing >with async message >Handling. > >I currently have openJMS setup using persistent Database storage, using >JNDI content lookup to Get the JMS connection factory, is this better >looked up once and bound to >servlet context as an >Application scope variable, etc, etc? > >Thanks for you any help, > >Rick 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: j_security_check - Bookmarking the login page. A teaser!
Yup. The error page only rarely comes into play (and is unrelated to the bookmarking issue). I've just tried it again to make sure i wasn't going mad: If you try to access a restricted page you get punted to the login page. If you then don't login until after the just created session times out you get a 400 error on j_security_check. The error page catches this and redirects back to the login page. Not the nicest user experience but better (arguably) than an error page. Jon Andoni wrote: Hi, I have implemented this and on first sight it seems to work perfectly. Can you please just confirm my understanding of it though so I am sure I know what I am doing: 1. The error page part need never really come in to play. 2. A user calls the login page and it basically is using the session's isNew method to decide whether this is a session just newly created from a bookmark or a session that was in existence before the login page was displayed as would be the case with one that had been created in whichever page had called index.jsp. Thanks, Andoni. - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 2:54 PM Subject: Re: j_security_check - Bookmarking the login page. A teaser! The bookmarking of the login page is a well known issue. However, without dumping CMS there seems to be little to do but resort to a few hacks ;( Our hack pt1: Add to the top of the login page a redirect to a sensible entry point for the app: <% if (request.getSession(false).isNew()) response.sendRedirect("/index.jsp"); %> Our hack pt2: Add an error page that catches the 'illegal direct reference to login page' (or whatever it is). Use this error page to redirect to a sensible entry point to the app. eg: <% Object badUri = request.getAttribute("javax.servlet.error.request_uri"); Object errorCode = request.getAttribute("javax.servlet.error.status_code"); if ("/j_security_check".equalsIgnoreCase(badUri.toString()) && "400".equals(errorCode.toString())) { response.sendRedirect("/index.jsp"); return; } %> Pt 2 also catches things like a user sitting on the login page until the session times out. HTH, Jon - 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: reading properties file....
Russ: In general, if application.properties is in your classes dir ResourceBundle rez = ResourceBundle.getBundle("application"); Put that in your singleton class. Then you could: MySingleton.accessMySingleton().getRez().getString("a_prop"); Then go nuts and write a taglib to access MySingleton properties. gary... > From: "Pitre, Russell" <[EMAIL PROTECTED]> > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Wed, 19 Nov 2003 13:13:19 -0500 > To: <[EMAIL PROTECTED]> > Subject: reading properties file > > Hi all, > > Trying to read a properties file for my web appI have a singleton class > that reads my properties file and sets my properties the first time the class > is called..It reads the file fine, but after the singleton gets loaded and > i go to a jsp page that hasnt' been compiled yet i recieve this error(at > the bottom).here's how i'm reading the propeties file...the error > is really wierd...when tomcat spits out the error, usually there's a carriage > return after each exception that is thrown.but thats not the > case...wierdness...does anyone have any insight to my situation, I'm > especially interested in how to read a properties file correctlymy > properties file is located in the "classes" directory (is this a good idea?) > and my webapp gets deployed as a .war file... > > InitProps.java > === > System.out.println(" Server Initilization > ##"); > > Properties props = new Properties(); > InputStream in = > getClass().getClassLoader().getResourceAsStream("application.properties"); > > props.load(in); > System.setProperties(props); > in.close(); > System.out.println("# Done > ##"); > = > > > > Error: > = > java.lang.NullPointerExceptionnull at > java.io.Writer.write(Writer.java:126)nullat java.io.PrintWriter > .newLine(PrintWriter.java:254)null at > java.io.PrintWriter.println(PrintWriter.java:405)nullat java.io > .PrintWriter.println(PrintWriter.java:516)null at > org.apache.catalina.logger.LoggerBase.log(LoggerBase.java:2 > 90)null at > org.apache.coyote.tomcat4.CoyoteAdapter.log(CoyoteAdapter.java:655)null > at org.apache.coyote.t > omcat4.CoyoteAdapter.service(CoyoteAdapter.java:230)nullat > org.apache.coyote.http11.Http11Processor.pr > ocess(Http11Processor.java:601)null at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pro > cessConnection(Http11Protocol.java:392)null at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEnd > point.java:565)null at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: > 619)n > ull at java.lang.Thread.run(Thread.java:534)nullNov 19, 2003 1:03:38 PM > org.apache.coyote.http11.Http11Pro > cessor process > === > > > > Thanx > Russ > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reading properties file....
Rock on! I will give that a try. Thanx Gary -Original Message- From: Gary Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 1:52 PM To: Tomcat Users List Subject: Re: reading properties file Russ: In general, if application.properties is in your classes dir ResourceBundle rez = ResourceBundle.getBundle("application"); Put that in your singleton class. Then you could: MySingleton.accessMySingleton().getRez().getString("a_prop"); Then go nuts and write a taglib to access MySingleton properties. gary... > From: "Pitre, Russell" <[EMAIL PROTECTED]> > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Wed, 19 Nov 2003 13:13:19 -0500 > To: <[EMAIL PROTECTED]> > Subject: reading properties file > > Hi all, > > Trying to read a properties file for my web appI have a singleton class > that reads my properties file and sets my properties the first time the class > is called..It reads the file fine, but after the singleton gets loaded and > i go to a jsp page that hasnt' been compiled yet i recieve this error(at > the bottom).here's how i'm reading the propeties file...the error > is really wierd...when tomcat spits out the error, usually there's a carriage > return after each exception that is thrown.but thats not the > case...wierdness...does anyone have any insight to my situation, I'm > especially interested in how to read a properties file correctlymy > properties file is located in the "classes" directory (is this a good idea?) > and my webapp gets deployed as a .war file... > > InitProps.java > === > System.out.println(" Server Initilization > ##"); > > Properties props = new Properties(); > InputStream in = > getClass().getClassLoader().getResourceAsStream("application.properties" ); > > props.load(in); > System.setProperties(props); > in.close(); > System.out.println("# Done > ##"); > = > > > > Error: > = > java.lang.NullPointerExceptionnull at > java.io.Writer.write(Writer.java:126)nullat java.io.PrintWriter > .newLine(PrintWriter.java:254)null at > java.io.PrintWriter.println(PrintWriter.java:405)nullat java.io > .PrintWriter.println(PrintWriter.java:516)null at > org.apache.catalina.logger.LoggerBase.log(LoggerBase.java:2 > 90)null at > org.apache.coyote.tomcat4.CoyoteAdapter.log(CoyoteAdapter.java:655)null > at org.apache.coyote.t > omcat4.CoyoteAdapter.service(CoyoteAdapter.java:230)nullat > org.apache.coyote.http11.Http11Processor.pr > ocess(Http11Processor.java:601)null at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pro > cessConnection(Http11Protocol.java:392)null at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEnd > point.java:565)null at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java: > 619)n > ull at java.lang.Thread.run(Thread.java:534)nullNov 19, 2003 1:03:38 PM > org.apache.coyote.http11.Http11Pro > cessor process > === > > > > Thanx > Russ > > - 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: Installation problem
Hi angelina, Tried as told. set the path in the older windows way, but still finding the same flickering window. if i type manually "http://127.0.0.1:8080/"; i get page cannot be displayed message. Dont know what to do. Hoping to recover from this problem Please help. Thanks in anticipation > > Sometimes we've had problems with older Tomcats on Windows > because of the space in the path name for your environment > variable. I'd bet it'd help here too. > > Try doing it the old Windows way, like this: > > c:\>Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0 > c:\>Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2 > > BTW, you can double-check these from a Windows command > prompt by running dir /X. > > Good luck! > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 1:30 PM > To: Tomcat Users List > Subject: Re: Installation problem > > > Hi Harry, > > Did as told. > > c:\>Set CATALINA_HOME=C:\Program Files\Apache Software > Foundation\Tomcat 5.0 > > c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 > > Still i am getting this flickering screen. > > Please tell me how to solve this problem. > > Thanks in anticipation > > > > > Hello > > > > > I changed that path name to > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > If you are talking about your $PATH system environment > > variable, the setting should be: > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > > > Til now , I didnt try to create any path for JAVA_HOME > > > AND CATALINA_HOME, do i have to do that? > > > > You need both. JAVA_HOME should be: > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > CATALINA_HOME should be the root-installation folder for > > Tomcat, wherever it is - analogous to JAVA_HOME. > > > > Good luck! > > > > Harry Mantheakis > > London, UK > > > > > > > I uninstalled and reinstalled tomcat still > > > experiencing the same flickering window error. > > > > > > While installing tomcat during the JVM path selection > > > the default path listed was > > > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > > > I changed that path name to > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > Til now , I didnt try to create any path for JAVA_HOME > > > AND CATALINA_HOME, do i have to do that? > > > > > > Your help is most appreciated.. > > > > > > Thanks in anticipation. > > > > > > bfn > > >> > > >> Try uninstalling, and then re-installing Tomcat. It > > should then >> pick up your J2SDK install path. If > > this doesn't work, then try >> > "ÊTALINA_HOME%\bin\catalina run" > > , >> and post the error messages on the list for more > > help. >> > > >> <[EMAIL PROTECTED]> wrote in message > > >> news:[EMAIL PROTECTED] > > >>> Sorry to bother you with this elementary question. > > But being a >>> neebie I am finding difficulties in > > installing >> tomcat 5.0 > > > >>> 1. I ran the installation file for installing the > > tomcat >>> 5.0. > > >>> 2. Then I ran the j2sdk setup file , since tomcat > > was asking for a >>> JVM. 3. > > >>> i. Now, i clicked the "Start Tomcat" icon the > > windows >>> key + Program files + Apache tomcat. I find > > a window >>> disappearing as soon as it appears. > > >>> > > >>> ii. I tried again by running the catalina.bat or > > startup.exe file >>> icon in the bin folder of tomcat. > > Again >>> , i find the disappearing window. > > >>> > > >>> iii. Even if i run that file in the command prompt i > > am >>> getting the same response. > > >>> > > >>> I also need to know as to how I could allow a friend > > access my >>> files via the browser. i.e where should i > > make >>> the appropriate modifications to allow him to > > view my >> files. > > > >>> > > >>> Your help will be most appreciated. > > >>> > > >>> Thanks for your help inanticipation > > > > > > > > > -- > > --- To unsubscribe, e-mail: > [EMAIL PROTECTED] For additional > > commands, e-mail: [EMAIL PROTECTED] > > > > -- > --- To unsubscribe, e-mail: > [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > -- > --- To unsubscribe, e-mail: > [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat & OpenJMS Design Pattern?
Howdy, I don't have much time before a meeting, but let's see if I can help. I have one class that reads the configuration (initial context factory class, JNDI URL, queue name, etc.) from a file, creates the initial context, connects to the server, and has a QueueReceiver. This class doesn't implement any interfaces, but it does expose a setMessageListener(MessageListener ml) method. This class is also a singleton. The setMessageListener(ml) method calls the setMessageListener(ml) on the QueueReceiver. Then I have a class that implements MessageListener. It does a getInstance() on the above singleton class, and then setMessageListener(this). This class gets notified when messages are sent to the queue, and it consumes the messages. I have it then create an Event object (POJO, not JMS) with some specific things I extract from the message, and do stuff with this event in a new Thread. The latter part is not strictly necessary but I've found it useful in separating the handling of multiple possibly concurrent messages. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Gavin, Rick [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 19, 2003 1:36 PM >To: Tomcat Users List >Subject: RE: Tomcat & OpenJMS Design Pattern? > >Hi Yoav, > I was looking for a basic design model, that worked well, such as a high >level class diagram( classes,interfaces, etc ) that shows a good way to >implement openJMS within tomcat. Some code snipets would be nice if >possible. As I said, my main consern in Point-to-Point Queue processing, I >don't have any need for Subscription / Topic. Basically I was looking to >have some manager class that on tomcat startup, would read in a config >file, >then create listeners for all specified queues. > >It my current tests, I have been having trouble getting the listeners to >work properly. I have no trouble putting messages in the queue, but my >listener some how is removing the item from the queue but not calling the >onMessage() method, so I never get a chance to handle the message, it just >vanishes. > >My listeners have this structure.. > >class FtpQueueListener implements javax.jms.MessageListener >{ > private QueueSession session; > private QueueReceiver receiver; > > FtpQueueListener() > > close() > // closes jms session > // clears the reciever's message listener.. >receiver.setMessageListener(null); > > startListener() > // gets a jms connection,session, receiver and bind them to local >variabls > // sets the reciever's message listener to self.. >receiver.setMessageListener(this); > > onMessage() > // handles messages, but seems to never get called, broken >} > >I was reading some info that talked about using the MessageListner.run() >method in a threaded sense. >You need to make the class implement runnable. Is this required for doing >async message handling? > >Thanks for your help, > >Rick > > >-Original Message- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 19, 2003 5:26 AM >To: Tomcat Users List >Subject: RE: Tomcat & OpenJMS Design Pattern? > > >Howdy, >I've used and use OpenJMS with tomcat all the time, including in several >production systems. > >What are you looking for specifically? A document? Code that sends >messages to an OpenJMS queue/topic, received from an OpenJMS queue/topic, >all of the above? > >I've actually gone from using tomcat's JNDI support to specifying the JMS >connection parameters in an app-specific configuration file and creating >the >JMS objects myself. But I had it working via tomcat's JNDI before as well. > >Yoav Shapira >Millennium ChemInformatics > > >>-Original Message- >>From: Gavin, Rick [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, November 18, 2003 6:25 PM >>To: Tomcat Users List >>Subject: Tomcat & OpenJMS Design Pattern? >> >>Hi All, >> Just wondering if any could post a working design pattern for using >>openJMS or another open JMS engine with tomcat, preferably a model >>using asynchronous queue >message >>handling. I >>figured someone around here has done it and I would rather use a tried >and >>true model. >> >>Looking for some basics about best intregration method, and or for >dealing >>with async message >>Handling. >> >>I currently have openJMS setup using persistent Database storage, using >>JNDI content lookup to Get the JMS connection factory, is this better >>looked up once and bound >to >>servlet context as an >>Application scope variable, etc, etc? >> >>Thanks for you any help, >> >>Rick > > > >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
RE: Installation problem
How are you starting Tomcat? You maybe should try setting the variables globally via Windows Environment settings (on Windows XP, right-click on My Computer, select Properties, Advanced tab, Environment Variables button). Add entries under System variables for CATALINA_HOME and JAVA_HOME here and then try starting tomcat. It may not be picking up your environment variable changes and thus won't start. Not sure if Tomcat 5 supports it, but you could also try running the Set commands then starting tomcat manually by running tomcat 5.0/bin/startup... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 2:02 PM To: Tomcat Users List Subject: RE: Installation problem Hi angelina, Tried as told. set the path in the older windows way, but still finding the same flickering window. if i type manually "http://127.0.0.1:8080/"; i get page cannot be displayed message. Dont know what to do. Hoping to recover from this problem Please help. Thanks in anticipation > > Sometimes we've had problems with older Tomcats on Windows because of > the space in the path name for your environment variable. I'd bet it'd > help here too. > > Try doing it the old Windows way, like this: > > c:\>Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0 > c:\>Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2 > > BTW, you can double-check these from a Windows command > prompt by running dir /X. > > Good luck! > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 1:30 PM > To: Tomcat Users List > Subject: Re: Installation problem > > > Hi Harry, > > Did as told. > > c:\>Set CATALINA_HOME=C:\Program Files\Apache Software > Foundation\Tomcat 5.0 > > c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 > > Still i am getting this flickering screen. > > Please tell me how to solve this problem. > > Thanks in anticipation > > > > > Hello > > > > > I changed that path name to > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > If you are talking about your $PATH system environment variable, the > > setting should be: > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > > > Til now , I didnt try to create any path for JAVA_HOME AND > > > CATALINA_HOME, do i have to do that? > > > > You need both. JAVA_HOME should be: > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > CATALINA_HOME should be the root-installation folder for Tomcat, > > wherever it is - analogous to JAVA_HOME. > > > > Good luck! > > > > Harry Mantheakis > > London, UK > > > > > > > I uninstalled and reinstalled tomcat still > > > experiencing the same flickering window error. > > > > > > While installing tomcat during the JVM path selection > > > the default path listed was > > > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > > > I changed that path name to > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > Til now , I didnt try to create any path for JAVA_HOME AND > > > CATALINA_HOME, do i have to do that? > > > > > > Your help is most appreciated.. > > > > > > Thanks in anticipation. > > > > > > bfn > > >> > > >> Try uninstalling, and then re-installing Tomcat. It > > should then >> pick up your J2SDK install path. If > > this doesn't work, then try >> > "ÊTALINA_HOME%\bin\catalina run" > > , >> and post the error messages on the list for more > > help. >> > > >> <[EMAIL PROTECTED]> wrote in message > > >> news:[EMAIL PROTECTED] > > >>> Sorry to bother you with this elementary question. > > But being a >>> neebie I am finding difficulties in installing >> > > tomcat 5.0 > > > >>> 1. I ran the installation file for installing the > > tomcat >>> 5.0. > > >>> 2. Then I ran the j2sdk setup file , since tomcat > > was asking for a >>> JVM. 3. > > >>> i. Now, i clicked the "Start Tomcat" icon the > > windows >>> key + Program files + Apache tomcat. I find > > a window >>> disappearing as soon as it appears. > > >>> > > >>> ii. I tried again by running the catalina.bat or > > startup.exe file >>> icon in the bin folder of tomcat. Again >>> , > > i find the disappearing window. > > >>> > > >>> iii. Even if i run that file in the command prompt i > > am >>> getting the same response. > > >>> > > >>> I also need to know as to how I could allow a friend > > access my >>> files via the browser. i.e where should i make >>> > > the appropriate modifications to allow him to view my >> files. > > > >>> > > >>> Your help will be most appreciated. > > >>> > > >>> Thanks for your help inanticipation > > > > > > > > > -- > > --- 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: Installation problem
To test that you've correctly set the paths, open a command window and type 'cd %java_home%'. This should put you in the java home dir. Then try 'cd %catalina_home%. If this puts you in the Tomcat home dir, you're good so far. Now, type 'catalina run'. This should start tomcat in the same window, and if it still fails to start, you'll have a trace to look at for further clues. Wendell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: RE: Installation problem How are you starting Tomcat? You maybe should try setting the variables globally via Windows Environment settings (on Windows XP, right-click on My Computer, select Properties, Advanced tab, Environment Variables button). Add entries under System variables for CATALINA_HOME and JAVA_HOME here and then try starting tomcat. It may not be picking up your environment variable changes and thus won't start. Not sure if Tomcat 5 supports it, but you could also try running the Set commands then starting tomcat manually by running tomcat 5.0/bin/startup... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 2:02 PM To: Tomcat Users List Subject: RE: Installation problem Hi angelina, Tried as told. set the path in the older windows way, but still finding the same flickering window. if i type manually "http://127.0.0.1:8080/"; i get page cannot be displayed message. Dont know what to do. Hoping to recover from this problem Please help. Thanks in anticipation > > Sometimes we've had problems with older Tomcats on Windows because of > the space in the path name for your environment variable. I'd bet it'd > help here too. > > Try doing it the old Windows way, like this: > > c:\>Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0 > c:\>Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2 > > BTW, you can double-check these from a Windows command > prompt by running dir /X. > > Good luck! > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 1:30 PM > To: Tomcat Users List > Subject: Re: Installation problem > > > Hi Harry, > > Did as told. > > c:\>Set CATALINA_HOME=C:\Program Files\Apache Software > Foundation\Tomcat 5.0 > > c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 > > Still i am getting this flickering screen. > > Please tell me how to solve this problem. > > Thanks in anticipation > > > > > Hello > > > > > I changed that path name to > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > If you are talking about your $PATH system environment variable, the > > setting should be: > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > > > Til now , I didnt try to create any path for JAVA_HOME AND > > > CATALINA_HOME, do i have to do that? > > > > You need both. JAVA_HOME should be: > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > CATALINA_HOME should be the root-installation folder for Tomcat, > > wherever it is - analogous to JAVA_HOME. > > > > Good luck! > > > > Harry Mantheakis > > London, UK > > > > > > > I uninstalled and reinstalled tomcat still > > > experiencing the same flickering window error. > > > > > > While installing tomcat during the JVM path selection > > > the default path listed was > > > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > > > I changed that path name to > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > Til now , I didnt try to create any path for JAVA_HOME AND > > > CATALINA_HOME, do i have to do that? > > > > > > Your help is most appreciated.. > > > > > > Thanks in anticipation. > > > > > > bfn > > >> > > >> Try uninstalling, and then re-installing Tomcat. It > > should then >> pick up your J2SDK install path. If > > this doesn't work, then try >> > "ÊTALINA_HOME%\bin\catalina run" > > , >> and post the error messages on the list for more > > help. >> > > >> <[EMAIL PROTECTED]> wrote in message > > >> news:[EMAIL PROTECTED] > > >>> Sorry to bother you with this elementary question. > > But being a >>> neebie I am finding difficulties in installing >> > > tomcat 5.0 > > > >>> 1. I ran the installation file for installing the > > tomcat >>> 5.0. > > >>> 2. Then I ran the j2sdk setup file , since tomcat > > was asking for a >>> JVM. 3. > > >>> i. Now, i clicked the "Start Tomcat" icon the > > windows >>> key + Program files + Apache tomcat. I find > > a window >>> disappearing as soon as it appears. > > >>> > > >>> ii. I tried again by running the catalina.bat or > > startup.exe file >>> icon in the bin folder of tomcat. Again >>> , > > i find the disappearing window. > > >>> > > >>> iii. Even if i run that file in the command prompt i > > am >>> getting the same response. > > >>> > > >>> I also need to know as to how I could allow a friend > > access my >>> files via the browser. i.e where should i m
RE: Installation problem
Hi Angelina, Followed your instructions. Made the changes in the mycomp+properties+advanced+environmentvariables+Uservariables and added catalina_home and java_home entries. Still no improvement. Hoping for your help again. bfn > > How are you starting Tomcat? You maybe should try setting > the variables globally via Windows Environment settings > (on Windows XP, right-click on My Computer, select > Properties, Advanced tab, Environment Variables button). > Add entries under System variables for CATALINA_HOME and > JAVA_HOME here and then try starting tomcat. It may not be > picking up your environment variable changes and thus > won't start. Not sure if Tomcat 5 supports it, but you > could also try running the Set commands then starting > tomcat manually by running tomcat 5.0/bin/startup... > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 2:02 PM > To: Tomcat Users List > Subject: RE: Installation problem > > > Hi angelina, > > Tried as told. > > set the path in the older windows way, but still finding > the same flickering window. > > if i type manually > "http://127.0.0.1:8080/"; > i get page cannot be displayed message. > > Dont know what to do. > > Hoping to recover from this problem > > Please help. > > Thanks in anticipation > > > > > Sometimes we've had problems with older Tomcats on > > Windows because of the space in the path name for your > > environment variable. I'd bet it'd help here too. > > > > Try doing it the old Windows way, like this: > > > > c:\>Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0 > > c:\>Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2 > > > > BTW, you can double-check these from a Windows command > > prompt by running dir /X. > > > > Good luck! > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 19, 2003 1:30 PM > > To: Tomcat Users List > > Subject: Re: Installation problem > > > > > > Hi Harry, > > > > Did as told. > > > > c:\>Set CATALINA_HOME=C:\Program Files\Apache Software > > Foundation\Tomcat 5.0 > > > > c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 > > > > Still i am getting this flickering screen. > > > > Please tell me how to solve this problem. > > > > Thanks in anticipation > > > > > > > > Hello > > > > > > > I changed that path name to > > > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > If you are talking about your $PATH system environment > > > variable, the setting should be: > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > > > > > Til now , I didnt try to create any path for > > > > JAVA_HOME AND CATALINA_HOME, do i have to do that? > > > > > > You need both. JAVA_HOME should be: > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > CATALINA_HOME should be the root-installation folder > > > for Tomcat, wherever it is - analogous to JAVA_HOME. > > > > > > Good luck! > > > > > > Harry Mantheakis > > > London, UK > > > > > > > > > > I uninstalled and reinstalled tomcat still > > > > experiencing the same flickering window error. > > > > > > > > While installing tomcat during the JVM path > > > > selection the default path listed was > > > > > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > > > > > I changed that path name to > > > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > > > Til now , I didnt try to create any path for > > > > JAVA_HOME AND CATALINA_HOME, do i have to do that? > > > > > > > > Your help is most appreciated.. > > > > > > > > Thanks in anticipation. > > > > > > > > bfn > > > >> > > > >> Try uninstalling, and then re-installing Tomcat. > > > It should then >> pick up your J2SDK install path. > > > If this doesn't work, then try >> > > "ÊTALINA_HOME%\bin\catalina run" > > > , >> and post the error messages on the list for more > > > help. >> > > > >> <[EMAIL PROTECTED]> wrote in message > > > >> news:[EMAIL PROTECTED] > > > >>> Sorry to bother you with this elementary question. > > > But being a >>> neebie I am finding difficulties in > > > installing >> tomcat 5.0 > > > > >>> 1. I ran the installation file for installing the > > > tomcat >>> 5.0. > > > >>> 2. Then I ran the j2sdk setup file , since tomcat > > > was asking for a >>> JVM. 3. > > > >>> i. Now, i clicked the "Start Tomcat" icon the > > > windows >>> key + Program files + Apache tomcat. I > > > find a window >>> disappearing as soon as it appears. > > > >>> > > > >>> ii. I tried again by running the catalina.bat or > > > startup.exe file >>> icon in the bin folder of > > > tomcat. Again >>> , i find the disappearing window. > > > >>> > > > >>> iii. Even if i run that file in the command prompt > > > i am >>> getting the same response. > > > >>> > > > >>> I also need to know as to how I could allow a > > > friend access my >>> files via the browser. i.e where > > > should i make >>> the appropriate modifications to > > > allow him to view my >> files. > >>> >
RE: Installation problem
Do try running it from the command line instead of shortcut. Usually that way it will print error messages and not just close the window and we can better see what's going on. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 2:29 PM To: Tomcat Users List Subject: RE: Installation problem Hi Angelina, Followed your instructions. Made the changes in the mycomp+properties+advanced+environmentvariables+Uservariables and added catalina_home and java_home entries. Still no improvement. Hoping for your help again. bfn > > How are you starting Tomcat? You maybe should try setting > the variables globally via Windows Environment settings > (on Windows XP, right-click on My Computer, select Properties, > Advanced tab, Environment Variables button). Add entries under System > variables for CATALINA_HOME and JAVA_HOME here and then try starting > tomcat. It may not be picking up your environment variable changes and > thus won't start. Not sure if Tomcat 5 supports it, but you > could also try running the Set commands then starting > tomcat manually by running tomcat 5.0/bin/startup... > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 2:02 PM > To: Tomcat Users List > Subject: RE: Installation problem > > > Hi angelina, > > Tried as told. > > set the path in the older windows way, but still finding > the same flickering window. > > if i type manually > "http://127.0.0.1:8080/"; > i get page cannot be displayed message. > > Dont know what to do. > > Hoping to recover from this problem > > Please help. > > Thanks in anticipation > > > > > Sometimes we've had problems with older Tomcats on > > Windows because of the space in the path name for your environment > > variable. I'd bet it'd help here too. > > > > Try doing it the old Windows way, like this: > > > > c:\>Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0 > > c:\>Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2 > > > > BTW, you can double-check these from a Windows command prompt by > > running dir /X. > > > > Good luck! > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 19, 2003 1:30 PM > > To: Tomcat Users List > > Subject: Re: Installation problem > > > > > > Hi Harry, > > > > Did as told. > > > > c:\>Set CATALINA_HOME=C:\Program Files\Apache Software > > Foundation\Tomcat 5.0 > > > > c:\>Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2 > > > > Still i am getting this flickering screen. > > > > Please tell me how to solve this problem. > > > > Thanks in anticipation > > > > > > > > Hello > > > > > > > I changed that path name to > > > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > If you are talking about your $PATH system environment > > > variable, the setting should be: > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin" > > > > > > > Til now , I didnt try to create any path for > > > > JAVA_HOME AND CATALINA_HOME, do i have to do that? > > > > > > You need both. JAVA_HOME should be: > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > CATALINA_HOME should be the root-installation folder > > > for Tomcat, wherever it is - analogous to JAVA_HOME. > > > > > > Good luck! > > > > > > Harry Mantheakis > > > London, UK > > > > > > > > > > I uninstalled and reinstalled tomcat still > > > > experiencing the same flickering window error. > > > > > > > > While installing tomcat during the JVM path > > > > selection the default path listed was > > > > > > > > "C:\Program Files\Oracle\jre\1.1.7" > > > > > > > > I changed that path name to > > > > > > > > "C:\Program Files\j2sdk_nb\j2sdk1.4.2" > > > > > > > > Til now , I didnt try to create any path for > > > > JAVA_HOME AND CATALINA_HOME, do i have to do that? > > > > > > > > Your help is most appreciated.. > > > > > > > > Thanks in anticipation. > > > > > > > > bfn > > > >> > > > >> Try uninstalling, and then re-installing Tomcat. > > > It should then >> pick up your J2SDK install path. > > > If this doesn't work, then try >> > > "ÊTALINA_HOME%\bin\catalina run" > > > , >> and post the error messages on the list for more help. >> > > > >> <[EMAIL PROTECTED]> wrote in message > > > >> news:[EMAIL PROTECTED] > > > >>> Sorry to bother you with this elementary question. > > > But being a >>> neebie I am finding difficulties in installing >> > > > tomcat 5.0 > > > > >>> 1. I ran the installation file for installing the > > > tomcat >>> 5.0. > > > >>> 2. Then I ran the j2sdk setup file , since tomcat > > > was asking for a >>> JVM. 3. > > > >>> i. Now, i clicked the "Start Tomcat" icon the > > > windows >>> key + Program files + Apache tomcat. I > > > find a window >>> disappearing as soon as it appears. > > > >>> > > > >>> ii. I tried again by running the catalina.bat or > > > startup.exe file >>> icon in the bin fold
Re: Installation problem
Hello > Hoping for your help again... Try Wendell's instructions (carefully) and tell us what happens (what you see on the DOS prompt command window). Regards Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problem
Hi Harry, Followed Wendell's instructions. when i ran in the cmd prompt i got the following message,(slightly long) -- C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>catalina run Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 5.0 Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5.0 Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 5.0\te mp Using JAVA_HOME: C:\Program Files\j2sdk_nb\j2sdk1.4.2 Nov 20, 2003 1:02:39 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Nov 20, 2003 1:02:39 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 4807 ms Nov 20, 2003 1:02:40 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 20, 2003 1:02:40 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.14 Nov 20, 2003 1:02:40 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 20, 2003 1:02:40 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Nov 20, 2003 1:02:40 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Sof tware Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml Nov 20, 2003 1:02:43 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Sof tware Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml Nov 20, 2003 1:02:45 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Nov 20, 2003 1:02:45 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Nov 20, 2003 1:02:47 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true Nov 20, 2003 1:02:52 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\Program Files \Apache Software Foundation\Tomcat 5.0\webapps\ROOT Nov 20, 2003 1:02:52 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:C:\P rogram Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs Nov 20, 2003 1:02:52 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples Nov 20, 2003 1:02:53 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL fil e:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-exampl es Nov 20, 2003 1:02:54 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Nov 20, 2003 1:02:55 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Nov 20, 2003 1:02:55 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=20/90 config=C:\Program Files\Apache Software Founda tion\Tomcat 5.0\conf\jk2.properties Nov 20, 2003 1:02:55 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 15742 ms i tried accessing the welcome page. Then, got the welcome page . Could you please tell me as to how should i allow my file to viewed by my friend in another machine? Thanks for your help in anticipation. bfn > > Hello > > > Hoping for your help again... > > Try Wendell's instructions (carefully) and tell us what > happens (what you see on the DOS prompt command window). > > Regards > > Harry Mantheakis > London, UK > > > -- > --- 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: "hot" deploy
I have been using "Likha DevCentre" to do just that. Download from http://download.com.com Makes my life a little bit easier. Enjoy. - Original Message - From: "Leonardo Kenji Shikida" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 8:38 AM Subject: "hot" deploy > is there an easy way to deploy a web application over another existent > one without stopping tomcat and without killing the current sessions? > > -- > > [] > > Leonardo Kenji Shikida > Vetta Technologies > http://www.vettatech.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: Installation problem
Hello > i tried accessing the welcome page. Then, > got the welcome page... Congratulations! At least we got over the flickering problem. > Could you please tell me as to how should > i allow my file to viewed by my friend in > another machine? Err... Is your friend connected to your machine? Regards Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Relationship between server.xml/Resource and web.xml/resource-ref.
Hello Chris > This is an apt analogy. The server.xml sets up the actual resource > (often in the section), then allows the > application to use it (by adding a section in the > where you want to use it). The webapp signifies its desire to > use that resource by including a complimentary section in > the deployment descriptor. I'm out of my depths with JNDI, but am I right in presuming that a webapp cannot 'set up' a JNDI resource all of its own, in its deployment descriptor? IOW, only the container (Tomcat) can set up a JNDI resource, which its webapps are then able to use. Sorry if this is labouring the point. A simple 'yes/no' will suffice! Kind regards Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problem
Hi Harry, My friend is in a sibling network. To access my machine, my friend isnt able to access my shared documents i.e becoz he needs to type in the machine name and password. My password doesnt seem to work(dont know what is the problem?). Not really interested in raising the issue to the network administrator. So since my friend is able to ping my machine s ip address from his machine, I guess asking him to access my documents thro the browser is an easier alternative. Hope you have the solution. Thanks in anticipation bfn > > Hello > > > i tried accessing the welcome page. Then, > > got the welcome page... > > Congratulations! > > At least we got over the flickering problem. > > > Could you please tell me as to how should > > i allow my file to viewed by my friend in > > another machine? > > Err... Is your friend connected to your machine? > > Regards > > Harry Mantheakis > London, UK > > > -- > --- 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: Relationship between server.xml/Resource and web.xml/resource-ref.
Thanks Chris, but here is the part I don't exactly understand : >The webapp signifies its desire to use that resource by including a complimentary > section in the deployment descriptor. A webapp ( at least under tomcat 4.1 ) does not require the section to be in place, for it to use a jndi resource that is already defined in a section of it's context element. Is Tomcat just being nice about this ? Or is the point on the to inform the container at deployment time, that the webapp requires such a resource to exist ? I think that's what the servlet spec is saying, but the English is a little muddled : "These developer uses these elements describe certain objects that the web application requires to be registered in the JNDI namespace in the web container at runtime" > -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 8:31 AM > To: Tomcat Users List > Subject: Re: Relationship between server.xml/Resource and > web.xml/resource-ref. > > > Florian, > > Is it completely up to the developers/deployers wether the necessary > > resources get declared in the server or in the application? > > This is correct. > > > Is it just > > for convenience, so that deployer doesn't have to unpack the WAR? > > No, this has nothing to do with unpacking WAR files. > > > Or -- > > like someone stated on this list (to my confusion) -- that the > > server.xml Resource element and the web.xml resource-ref have a relation > > that is similar to that of an implementation class instance and an > > interface? > > This is an apt analogy. The server.xml sets up the actual resource > (often in the section), then allows the > application to use it (by adding a section in the > where you want to use it). The webapp signifies its desire to > use that resource by including a complimentary section in > the deployment descriptor. > > -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: Installation problem
Hello > So since my friend is able to ping my machine s ip address > from his machine, I guess asking him to access my documents > thro the browser is an easier alternative. Ask your friend to request the following URL: http://your_ip_address:8080/ He might be lucky! To share documents, I suggest you create a new context (say we call it 'xxx') in the '$CATALINA_HOME/webapps' directory. Basically, create an empty folder named 'xxx' (whatever) within '$CATALINA_HOME/webapps'. Within 'xxx' create another folder named 'WEB-INF'. Go to '$CATALINA_HOME/webapps/ROOT/WEB-INF' and *copy* the 'web.xml' file into the '$CATALINA_HOME/webapps/xxx/WEB-INF' directory you have just created. Place some documents in the 'xxx' folder, start Tomcat and have your friend point their browser to the 'xxx' application: http://your_ip_address:8080/xxx/ Good luck. Harry Mantheakis London, UK > Hi Harry, > > My friend is in a sibling network. To access my machine, my > friend isnt able to access my shared documents i.e becoz he > needs to type in the machine name and password. My password > doesnt seem to work(dont know what is the problem?). Not > really interested in raising the issue to the network > administrator. > > So since my friend is able to ping my machine s ip address > from his machine, I guess asking him to access my documents > thro the browser is an easier alternative. > > Hope you have the solution. > > Thanks in anticipation > > bfn > > > > >> >> Hello >> >>> i tried accessing the welcome page. Then, >>> got the welcome page... >> >> Congratulations! >> >> At least we got over the flickering problem. >> >>> Could you please tell me as to how should >>> i allow my file to viewed by my friend in >>> another machine? >> >> Err... Is your friend connected to your machine? >> >> Regards >> >> Harry Mantheakis >> London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem "finding" external Linux shared object library under Red Hat/Tomcat 4.1.24
My configuration is Tomcat 4.1.24 running on a Red Hat Linux 7.3 system. I am starting and stopping Tomcat as the root user via the ./bin/startup.sh and ./bin/shutdown.sh scripts. I am trying to tie into a service that I am creating a 3rd party component that does some native calls from Java to a C++ library that are bundled into an accompanying .so library. I am having trouble getting Tomcat to find the lib.so unless I put the file in the directory that I startup Tomcat from. So depending which directory I startup Tomcat from I, either it works or I get a log entry in the catalina.out saying that it "Failed to load Can't load library" for the lib.so with the path being the directory where Tomcat has been started from. I tried putting the shared object file into /usr/local/lib. This did not work. I have tried adding the directory that the shared object file exists into LD_LIBRARY_PATH in the startup.sh script file. This did not work. I also tried putting the path to the shared object file into the /etc/ld.so.conf. This also did not work. How can I define a path for Tomcat to use so my application is not prone to requiring the shared object file exist in the directory that the startup.sh script is run from? --mark
Re: Problem "finding" external Linux shared object library under Red Hat/Tomcat 4.1.24
Mark, Once you put the directory where the library lives in /etc/ld.so.conf, you'll need to run ldconfig. If you put it in the startup script, you might have something like: export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH /mde/ just my two cents . . . . __ 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]
Is this a bug???
Hi... I've read all the stuff about repoting bugs, but I still don't want to report this, cause I don't know if this is a bug or not...It is too hard to know... isn't it? Here is the deal... I have clean installation. Every first time, after startup, I try to get to the "tomcat administration", I get this error... Then I just reload the page and everithing works great I've tried to stop the "tomcat administration" application and then re-start it... and I still get the error on the first attempt to surf to the application.. what's this??? Thanks Gabriel PS: I am using this configuration...Apache Tomcat/4.1.29 1.4.2_02-b03 Sun Microsystems Inc. Windows 98 4.10 x86 HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Malformed \u encoding. at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:534) root cause java.lang.IllegalArgumentException: Malformed \u encoding. at java.util.Properties.loadConvert(Properties.java:387) at java.util.Properties.load(Properties.java:336) at org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessageResources.java:300) at org.apache.struts.util.PropertyMessageResources.getMessage(PropertyMessageResources.java:192) at org.apache.struts.util.MessageResources.getMessage(MessageResources.java:339) at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1051)
Re: Is this a bug???
Gabriel, Hi... I've read all the stuff about repoting bugs, but I still don't want to report this, cause I don't know if this is a bug or not...It is too hard to know... isn't it? Here is the deal... I have clean installation. Every first time, after startup, I try to get to the "tomcat administration", I get this error... Then I just reload the page and everithing works great I've tried to stop the "tomcat administration" application and then re-start it... and I still get the error on the first attempt to surf to the application.. what's this??? > org.apache.jasper.JasperException: Malformed \u encoding. > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) It looks like you have a JSP that you've run through native2ascii (or used your own escape codes), and one of them is bogus. Look in your JSPs for the string "\u" and see if any of those references are broken. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to convert SSL Certificates and Private Keys to Tomcat (JKS) format?
Hi Experts, Need your help on figuring out how to do the following. I have the private key (Generated using OpenSSH) and the certificate signed by Verisign. Both are in Base-64 encoded format. How can I get both the private key and certificate imported into Tomcat Keystore? In other words, what do I need to do to get the verisign certificate working with my tomcat server? Do I need to just import the certificate or both the certificate and the private key? Your help will be appreciated. Thanks, Raghu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]