** Apache Tomcat Configuration on Linux - Error while doing the same: Needhelp **
Hi, I am trying to configure Tomcat+Apache on Linux. I am having some problems while configuring the same. Please help resolving following problem. Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Regards, Prashanth Marathe D
Tomcat 4.0-beta-3 Released (SECURITY VULNERABILITY)
Tomcat 4.0-beta-3 is an update to the Tomcat 4.0-beta-2 distribution that was released on 30 March 2001. It fixes a further security vulnerability related to potentially exposing JSP source that was only partially corrected in beta 2. Anyone using versions of Tomcat 4.0 earlier than the beta 3 release (or the nightly build dated 20010403 or later) is strongly encouraged to immediately update to the beta 3 release. Craig McClanahan
java.lang.UnsatisifedLinkError
hello, I found some talk of this in the archives but no solution was ever suggested and it's becoming a real problem for me. My code calls JNI functions, if i compile and build everything and then start up tomcat all my pages work, all the java classes behind them work and everybody's happy. The problem appears when i modify a java class and recompile it, the next time i visit a page (even one which doesn't call code which uses the JNI lib) i get this unsatisfied link error and a message about my .so already being loaded in another class loader. All of my .class get put in a jar which then gets put in my app's WEB-INF directory, i'm assuming that this is why i get the unsatisifed link error even if the page i try to view calls code which doesn't call the JNI lib, correct? Is this a mistake of mine or a bug? in the later case is there a work around? should i try with tomcat 4? possibily useful info: jdk 1.3 tomcat 3.2.1 linux 2.4 thanks, -- -Marco Ring the bells that still can ring. Forget the perfect offering. There's a crack in everything. It's how the light gets in. -Isonard Cohen PGP signature
AW: Keepalive connections in Tomcat ???
AFAIK keep-alive is part of HTTP 1.1. Tomcat 3.* implements HTTP 1.0. Tomcat 4.* implements HTTP 1.1. > -Ursprüngliche Nachricht- > Von: pradeep sankaranthi [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 2. April 2001 19:39 > An: [EMAIL PROTECTED] > Betreff: Keepalive connections in Tomcat ??? > > > Hi > I wanted to findout if persistent/keepalive connections are > supported by > tomcat3.2 /3.3 > In my application I am trying to invoke a servlet from a C > application > through plain sockets In my post header I am specifying Connection : > keep-alive parameter, > however when I try to reuse the connection and post again > using the same > socket, I get an error saying the socket has been shutdown. > So my question > is if Tomcat supports connection keep alive and if there is > anyother way to > support persistent connections in the above scenario. > > thanks > deep > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com > >
java.net.MalformedURLException: unknown protocol: jndi
tomcat 4.0 beta2 overview/symptom A servlet instance invokes a method on an enterprise bean.. the bean is a CLASS/STATIC field of the servlet - execution occurs normally however when this servlet calls a class that invokes the same field reference of the servlet class everything fails. detail 1 AbstractPortal.service ( servlet ) does naming lookup for ejb and invokes Manager.load method [ OK ] 2 delegates processing to WorkFlow.processEvent 3 WorkFlow invokes store method on AbstractPortal.Manager ejb reference [FAILED] 4 control returns to AbstractPortal 5 AbstractPortal.service ( servlet ) invokes Manager.store method [ OK ] both calls can c class access to org.jboss.ejb.plugins.jrmp.server in www/WEB-INF/lib step 3 cannot c ${CATALINA_HOME}/common/lib/jndi.jar and causes stack trace 1 boundary condition if i take ${CATALINA_HOME}/common/lib/jndi.jar and place it in www/WEB-INF/lib i receive stacktrace 2 @ point 1 i know the sequence works in tomcat 4.0 beta1 launching catalina with -nonaming has no effect assumption org.apache.naming is not used in any calls.. the classloader that loaded AbstractPortal also loaded WorkFlow the classloader that loaded WorkFlow is used to access AbstractPortal.Manager question what is different about these calls.. 1 form 3 from 5 ?? except 1 & 5 occur from the class with the STATIC reference and is a servlet.. or something.. could it be a subtle classloader/classpath issue?? i will move the code around and try to reproduce it in a simple context.. stacktrace 1 java.lang.reflect.UndeclaredThrowableException: java.net.MalformedURLException: unknown protocol: jndi at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless SessionProxy.java:188) at $Proxy1.store(Unknown Source) at nu.tradeforce.portal.content.WorkFlow.processEvent(WorkFlow.java:74) at nu.tradeforce.portal.control.AbstractPortal.dispatch(AbstractPortal.java:110 ) at nu.tradeforce.portal.control.AbstractPortal.service(AbstractPortal.java:174) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) stack trace 2 javax.naming.CommunicationException. Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: unknown protocol: jndi java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: unknown protocol: jndi java.net.MalformedURLException: unknown protocol: jndi at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279) at javax.naming.InitialContext.lookup(InitialContext.java:354) at nu.tradeforce.portal.control.AbstractPortal.lookupManager(AbstractPortal.jav a:73) at nu.tradeforce.portal.control.AbstractPortal.init(AbstractPortal.java:36) its completly bugged my out!! any ideas? -wozza
URL rewriting ignored for "/whatever" context path; broken for "/" context path
Hi, I'm using Tomcat 3.2.1, and after searching the archives it appears URL rewriting is working OK. I must be doing something to mess things up. Thanks in advance for your help. Bill My com.xxx.MyServlet servlet executes the following 3 lines of code as the last step in processing each request in "doPost": 1. String encodedNextURL = httpServletResponse.encodeURL(this.nextURL); 2. RequestDispatcher rd = this.getServletContext().getRequestDispatcher(encodedNextURL); 3. rd.forward(httpServletRequest, httpServletResponse); When my servlet's context path is "/whatever", then encodedNextURL is always the same as this.nextURL after line 1 is executed. Why? The following happens in HttpServletResponseFacade.java for this.nextURL=/ShoppingStep.jsp toAbsolute(/ShoppingStep.jsp) returns http://localhost:8080/ShoppingStep.jsp isEncodeable(http://localhost:8080/ShoppingStep.jsp) always returns false at lines 363-368 because !file.startsWith(contextPath) is true. Stopped at line 366 in HttpServletResponseFacade.java Thread-103[1] locals Method arguments: this = org.apache.tomcat.facade.HttpServletResponseFacade@80e6674 location = http://localhost:8080/ShoppingStep.jsp Local variables: request = R( /whatever + /servlet/com.xxx.MyServlet + null) url = http://localhost:8080/ShoppingStep.jsp urlPort = 8080 contextPath = /whatever file = /ShoppingStep.jsp String contextPath = request.getContext().getPath(); if ((contextPath != null) && (contextPath.length() > 0)) { String file = url.getFile(); if ((file == null) || !file.startsWith(contextPath)) return (false); } encodedNextURL gets assigned /ShoppingStep.jsp When my servlet's context path is "/", then this.nextURL get's rewritten and encodedNextURL gets assigned /ShoppingStep.jsp;jsessionid=2nrrjkjci1 but Forwarding the URL (see line 3 above) "/ShoppingStep.jsp;jsessionid=2nrrjkjci1" results in a "The document contains no data" message being displayed by the browser. It appears the jsessionid is the problem per StaticInterceptor.java lines 199-212, because file is not a file or a directory as a result of jessionid hanging off the end of the path. Thread-102[1] locals Method arguments: this = org.apache.tomcat.request.StaticInterceptor@80f0ddb req = R( + /ShoppingStep.jsp;jsessionid=lo3hbfjvp1 + null) Local variables: pathInfo = /ShoppingStep.jsp;jsessionid=lo3hbfjvp1 ctx = Ctx( ) absPath = /home/maurer/ejpos/unix/local/jakarta-tomcat/webapps/ROOT/ShoppingStep.jsp;jsessionid=lo3hbfjvp1 requestURI = /ShoppingStep.jsp;jsessionid=lo3hbfjvp1 file = /home/maurer/ejpos/unix/local/jakarta-tomcat/webapps/ROOT/ShoppingStep.jsp;jsessionid=lo3hbfjvp1 welcomeFile is not in scope redirectURI is not in scope File file=new File( absPath ); if( file.isFile() ) { if( debug > 0 ) log( "Setting handler to file " + absPath); req.setNote( realFileNote, absPath ); req.setWrapper( ctx.getServletByName( "tomcat.fileHandler")); return 0; } if( ! file.isDirectory() ) { // we support only files and dirs if( debug > 0) log( "No file and no directory"); return 0; // no handler is set - will end up as 404 }
Tradeoffs: running servlets + EJB in same VM or different VM?
In a J2EE scenario, is it reasonable to consider both the possibility of running the servlet container and the EJB container in the same VM, and running them in different VMs? I would guess the former would give a small plus to performance, whereas the latter would be a small plus for scalability. -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
RE: Should "tomcat-auto" do this?
>So, my question is: shouldn't tomcat-auto also contain JkMount commands for >all servlets that I've mapped to paths in web.xml? nope, you have to set this up yourself JkMount /tomcat-example/newserv ajp12 ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net > -Original Message- > From: Joe Emenaker [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 6:02 PM > To: [EMAIL PROTECTED] > Subject: Should "tomcat-auto" do this? > > > When I run Tomcat, it auto-generates an include file for Apache called > "tomcat-auto". It uses a directive called "JkMount" to redirect certain > URL's to Tomcat's non-http interface. For example, my "tomcat-examples" > webapp yields a couple of entries that look like: > >JkMount /tomcat-examples/servlet/* ajp12 >JkMount /tomcat-examples/*.jsp ajp12 > > So that anything beginning with "/tomcat-examples/" and ending in > ".jsp" or > anything beginning with "/tomcat-examples/servlet" will get redirected to > Tomcat. > > Okay fine. However, I can define other servlet mappings in the web.xml > file that don't get reflected in tomcat-auto. For example, > suppose I made a > servlet called MyNewServlet.class and put it into tomcat-examples. Let's > also suppose that I mapped that to the path "newserv" in my web.xml. > > If I do this, I can get to the servlet through Tomcat's HTTP port > in one of > two ways: > /tomcat-examples/servlet/MyNewServlet > or > /tomcat-example/newserv > > However, going through *Apache*, I can only use the first one, because > tomcat-auto tells Apache to only forward requests to Tomcat if it sees > something ending in *.jsp or something with "servlet" in the path. > > So, my question is: shouldn't tomcat-auto also contain JkMount > commands for > all servlets that I've mapped to paths in web.xml? > > - Joe > > >
Should "tomcat-auto" do this?
When I run Tomcat, it auto-generates an include file for Apache called "tomcat-auto". It uses a directive called "JkMount" to redirect certain URL's to Tomcat's non-http interface. For example, my "tomcat-examples" webapp yields a couple of entries that look like: JkMount /tomcat-examples/servlet/* ajp12 JkMount /tomcat-examples/*.jsp ajp12 So that anything beginning with "/tomcat-examples/" and ending in ".jsp" or anything beginning with "/tomcat-examples/servlet" will get redirected to Tomcat. Okay fine. However, I can define other servlet mappings in the web.xml file that don't get reflected in tomcat-auto. For example, suppose I made a servlet called MyNewServlet.class and put it into tomcat-examples. Let's also suppose that I mapped that to the path "newserv" in my web.xml. If I do this, I can get to the servlet through Tomcat's HTTP port in one of two ways: /tomcat-examples/servlet/MyNewServlet or /tomcat-example/newserv However, going through *Apache*, I can only use the first one, because tomcat-auto tells Apache to only forward requests to Tomcat if it sees something ending in *.jsp or something with "servlet" in the path. So, my question is: shouldn't tomcat-auto also contain JkMount commands for all servlets that I've mapped to paths in web.xml? - Joe
content-length limited to an int?
Hi, Is anyone else having problems with content-length using an int? If I try to serve any files > 4gig, the content-length returned is incorrect (I assume the cutoff is 2 gig since ints are signed in java, but I have only tested > 4gig files). I took a quick look at the source code, found a method called getHeaderInt() which surely looks the culprit and is surely doing an Integer.parseInt() to get the value. This looks cut and dry to me, am I missing anything? Thanks. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Beginner question
Thank you!
hashtables in session
Hi guys just wondering if it was possible to store Hashtable objects in the implicit session object? thanks Jason _ http://my.yahoo.com.au - My Yahoo! - Have news, stocks, weather, sports and more in one place.
Re: Need help on getting work Tomcat4.0 Nightly build (04/02/01)...
Thanks , You are right ... I've put also the servlet.jar on lib so 2 copy whas in the CLASSPATH . - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 1:03 AM Subject: Re: Need help on getting work Tomcat4.0 Nightly build (04/02/01)... > > > On Mon, 2 Apr 2001, Meir Faraj wrote: > > > Hi all , > > I've installed on windows 98 Tomcat 4.0 Nightly build (04/02/01) > > And got it run but context not start because of Exception... > > localhost_log.2001-04-02.txt log contain the error . > > the file is appended . > > > > > > Most likely explanation is you have a copy of servlet.jar somewhere on > your classpath, in your system extensions directory > ($JAVA_HOME/jre/lib/ext), or in your webapp itself. Doing any of these > things will interfere with th way that Tomcat sets up its class loaders. > > Craig McClanahan > > >
JNDI & LDAP Realm for Tomcat 4.0 & Tomcat 3.2x alpha3 available: NEED YOUR FEEDBACK!
Title: JNDI & LDAP Realm for Tomcat 4.0 & Tomcat 3.2x alpha3 available: NEED YOUR FEEDBACK! Dear tomcat users and developers, This is an implementation of JNDI and LDAP realm for Tomcat 3 and 4 I would greatly appreciate you feedback regarding its functionality. Alex Roytman download from http://www.peacetech.com/java/files/apache/tomcat/ JndiRealm authenticates and authorizes users against JNDI. It was tested against LDAP JNDI with Sun's and Netscape's jndi providers LdapRealm authenticates and authorizes users directly against LDAP using Netscape LDAP JDK. These two realms are interchangeable you can switch between them without many configuration changes. According to my tests it performs 10 faster under 20 concurrent threads than JNDI with Sun's LDAP provider. This is not final result because I need to test and tune-up multithreaded access and synchronization there might be some misunderstanding on my part. I also noticed some cases of JNDI loosing connection to the server under heavy multithreaded load while Netscape's LDAP handled it nicely. There are four classes in the package : JndiRealm and LdapRealm are for Tomcat 3.2x JndiRealmCatalina and LdapRealmCatalina for Tomcat 4.0 className="com.peacetech.webtools.tomcat.JndiRealm" JNDI TOMCAT 3.2x className="com.peacetech.webtools.tomcat.JndiRealmCatalina" JNDI TOMCAT 4.0 className="com.peacetech.webtools.tomcat.LdapRealmCatalina" LDAP TOMCAT 4.0 className="com.peacetech.webtools.tomcat.LdapRealm" LDAP TOMCAT 3.2x Jndi/LdapRealm uses searchBindDN and searchBindCredentials to connect to a directory. Then it looks for exactly one user name matching searchFilter in searchBaseContext scoped by searchScopeAsString (values are "base", "one", "sub" according to LDAP URL rules) If one and only one matching directory object is found it will use this object and tomcat supplied credentials to authenticate the user. If successful Realm will fetch user roles using JNDI attributes listed in securityAttributes (comma separated directory attribute names). If attributesReadByOwner = "true" Realm will use authenticated user itself to pool the attributes from directory otherwise it will use searchBindDN to retrieve the attributes. If roleMapperClass is specified Realm will use it to map user roles onto application roles specific for each web context for tomcat 3.2x and specific for each defined Realm for tomcat 4.2. Provided SimpleRoleMapper implementation will read role map from either roleMapperSourceUrl (if specified) or for tomcat 3.2x from WEB-INF/role-map.xml file in each web context if no roleMapperSourceUrl was defined (if WEB-INF/role-map.xml file does not exist in a context no mapping for this context will occur) PARAMETERS: jndiInitialContextFactory = "com.sun.jndi.ldap.LdapCtxFactory" (or "com.netscape.jndi.ldap.LdapContextFactory") This attribute for JndiRealm ONLY. It corresponds to javax.naming.Context.INITIAL_CONTEXT_FACTORY directoryUrl = "ldap://207.176.93.66:389" This attribute for both JndiRealm and LdapRealm. It corresponds to javax.naming.Context.PROVIDER_URL jndiSecurityAuthentication = "simple" This attribute for JndiRealm ONLY. It corresponds to javax.naming.Context.SECURITY_AUTHENTICATION jndiSecurityProtocol = "" ("" vendor default or "ssl", or vendor specific) This attribute for JndiRealm ONLY. It corresponds to javax.naming.Context.SECURITY_PROTOCOL searchBindDN = "cn=ldap-user,o=pti" This attribute for both JndiRealm and LdapRealm. User name to bind to directory a to perform user name lookups. It corresponds to javax.naming.Context.SECURITY_PRINCIPAL searchBindCredentials = "mypassword" This attribute for both JndiRealm and LdapRealm. Password for searchBindDN It corresponds to javax.naming.Context.SECURITY_CREDENTIALS searchBaseContext = "o=pti" Base context for user lookups ldapVersion = "3" This attribute for LdapRealm ONLY. Defines LDAP version. searchScopeAsString = "base" | "one" | "sub" defines search scope "base" - object scope, "one" - one level scope, "sub" - subtree scope. attributesReadByOwner = "true" defines who will read securityAttribures from the directory. If "true" authenticating user account will be used to retrieve the roles otherwise the searchBindDN account used for user name lookups will fetch the attributes. It is useful when either one or the other do not have permission to read the attributes so you can chose the one which has this permissions searchFilter = "cn={0}" Filter to lookup authorizing user. Support java.text.MessageFormat. The only parameter is to java.text.MessageFormat pattern authorizing username. i.e. jndiSearchFilter = "cn={0}" for user alex will result in lookup for "cn=alex" securityAttributes = "securityEquals" One or more directory attributes separated with semicolon which contains security roles attributes can be multivalued. If blank no attempt to retrieve roles from directory will be done r
Re: NullPointerException in Catalina StandardClassLoader when JARwi th no manifest is added to one of the lib directories
On Mon, 2 Apr 2001, Roytman, Alex wrote: > NullPointerException in Catalina StandardClassLoader when JAR with no > manifest is added to one of the lib directories > Adding manifest to the jar fixes the problem > Just checked in a fix for this. It will be in tonight's nightly build, and also in the upcoming beta 3 release. Craig
Subscribe me to this list.
I need some help. How do I make Database connection using Tomcat. How do I go about using the Oracle Connection Manager for Database connections. I am not currently subscribed, so please reply to [EMAIL PROTECTED]
Re: [CATALINA]
Craig R. McClanahan wrote: > > On Mon, 2 Apr 2001, Scott Sanders wrote: > > >> Using the latest CVS of Catalina, I am having an issue with my web >> application. When I build my webapp with Ant, I create many xml files >> under WEB-INF/classes/xml/oem/*. Then when a request comes in, I use >> getClass().getResource() to return the URL to the xml file. >> >> In Tomcat 3.x (3.0,3.1,3.2,3.2.1), the URL returned looks something like >> file:///opt/tomcat/webapps/app-name/WEB-INF/classes/xml/oem/file.xml >> >> In Catalina, the URL returned is: >>/WEB-INF/classes/xml/oem/file.xml > > Doesn't the actual URL returned have jndi: on the front? > > Apologies, Craig the URL is: jndi:/WEB-INF/classes/xml/oem/file.xml the jndi: is on the front, that's what I get for looking at it in the debugger. JBuilder is handy, but I just did not look deep enough. ;-) >> The problem is when I use this URL as an InputSource to my XSLT >> processor (Saxon), which is contained in /WEB-INF/lib/saxon.jar, it says >> that it cannot find the file. In Tomcat 3.x, it finds the file fine and >> continues processing. > > Could you provide a code snippet of exactly what you are trying? I have > used resources from /WEB-INF/classes and JAR files under /WEB-INF/lib with > great success in Catalina, so it's probably something specific about what > you are doing. > > It looks as though a test using getClass.getResourceAsStream() works just fine. I think that it is possible that Saxon is trying to do its own URL-processing and does not recognize the URL syntax starting with 'jndi:'. I will convert my code to use getResourceAsStream() instead. Craig, thanks for the push in the right direction. I probably should have thought about it more, as another service in the same webapp uses it without problems... ;-) Scott Sanders
Re: ClassNotFound exceptions with Tomcat/4.0-b2
On Mon, 2 Apr 2001, S Ramakrishnan wrote: > Environment: >Windows2000 >Tomcat4.0-b2 standalone > > Problem: > I recently upgraded to Tomcat/4.0-b2 from the previous version of > 4.0. I find that its not able to locate the servlet class files > under webapps//web-inf/classes. > I do not have a security manager installed. > If the actual directory name is "web-inf", then that is your problem. All pathnames in Tomcat 4.0 are case sensitive, so this must really be webapps//WEB-INF/classes instead. > This used to work before I upgraded. Is there a quirk with > TC4.0-b2 about loading classes that I should be aware of? > Also, what should be approach to troubleshoot this failure > to load this class? I have set debug to 4 and am tracking > logs\localhost_log*txt. > > > 2001-04-02 14:13:21 StandardContext[/rks]: Mapping contextPath='/rks' with > reque > stURI='/rks/servlet/Quote' and relativeURI='/servlet/Quote' > 2001-04-02 14:13:21 StandardContext[/rks]: Decoded > relativeURI='/servlet/Quote' > 2001-04-02 14:13:21 StandardContext[/rks]: Trying exact match > 2001-04-02 14:13:21 StandardContext[/rks]: Trying prefix match > 2001-04-02 14:13:21 StandardContext[/rks]: Mapped to servlet 'invoker' with > ser > vlet path '/servlet' and path info '/Quote' and update=true > 2001-04-02 14:13:21 StandardWrapper[/rks:org.apache.catalina.INVOKER.Quote]: > Mar > king servlet org.apache.catalina.INVOKER.Quote as unavailable > 2001-04-02 14:13:21 invoker: serveRequest.load > javax.servlet.ServletException: Wrapper cannot find servlet class Quote or a > cla > ss it depends on > [...] > > The context is defined as follows: > > > > Quote > > > > Quote > > > Is "Quote.class" in the WEB-INF/classes directory? Along with any other classes that it depends on? > > Any hints appreciated, > > Thanks, > > Rk > > Craig
Re: Storing property file
On Mon, 2 Apr 2001, Milt Epstein wrote: > On Mon, 2 Apr 2001, Scott Walter wrote: > > > Hi, > > > > I want to get your guys/girls input on the following: > > > > I am building an app that will run under Tomcat and in > > the future J2EE app servers. Currently I am storing > > parameters for connecting to a database (i.e. jdbc > > url, driver, etc.) inside a .properties file. > > > > When the app is started for the first time I want the > > user to enter values for db parameters and then to > > write them to the property file. > > > > Currently I am reading the properties file off the > > classpath via getResource(). Is there anyway that I > > can figure where exactly on the file system where the > > properties file is located at so I can write to it in > > the correct location??? > > > > I took a look at the Jive open source project and they > > have the user put the location where the file exists > > on the file system as an entry in the properties file, > > I would like a more elegant solution. > > FWIW, resources found via getResource() can be written to, when > appropriate. I have an article written by Jason Hunter (author of > O'Reilly's Servlets book) from JavaWorld Dec. 1998 that covers the > changes from servlet spec 2.0 to 2.1 (I don't have the exact URL, but > you should be able to find it from that info), and it talks about this > there (page 7, near the bottom, "Writing to an abstract resource"). > Take a look at that for details. > Note that while it is *possible* the URL returned to you by getResource() will be writeable, this is definitely not guaranteed. For example, if your container runs the webapp directly out of a WAR file, it is highly unlikely that you will be able to do this. There is no elegant portable solution to writeable resources within the servlet API. This was discussed by the expert group during the development of the 2.3 spec, but unfortunately no consensus was reached. Using the absolute pathname of a disk file is probably the closest thing to a portable solution. Craig McClanahan
Re: Need help on getting work Tomcat4.0 Nightly build (04/02/01)...
On Mon, 2 Apr 2001, Meir Faraj wrote: > Hi all , > I've installed on windows 98 Tomcat 4.0 Nightly build (04/02/01) > And got it run but context not start because of Exception... > localhost_log.2001-04-02.txt log contain the error . > the file is appended . > > Most likely explanation is you have a copy of servlet.jar somewhere on your classpath, in your system extensions directory ($JAVA_HOME/jre/lib/ext), or in your webapp itself. Doing any of these things will interfere with th way that Tomcat sets up its class loaders. Craig McClanahan
Re: [CATALINA]
On Mon, 2 Apr 2001, Scott Sanders wrote: > Using the latest CVS of Catalina, I am having an issue with my web > application. When I build my webapp with Ant, I create many xml files > under WEB-INF/classes/xml/oem/*. Then when a request comes in, I use > getClass().getResource() to return the URL to the xml file. > > In Tomcat 3.x (3.0,3.1,3.2,3.2.1), the URL returned looks something like > file:///opt/tomcat/webapps/app-name/WEB-INF/classes/xml/oem/file.xml > > In Catalina, the URL returned is: >/WEB-INF/classes/xml/oem/file.xml > Doesn't the actual URL returned have jndi: on the front? > The problem is when I use this URL as an InputSource to my XSLT > processor (Saxon), which is contained in /WEB-INF/lib/saxon.jar, it says > that it cannot find the file. In Tomcat 3.x, it finds the file fine and > continues processing. > Could you provide a code snippet of exactly what you are trying? I have used resources from /WEB-INF/classes and JAR files under /WEB-INF/lib with great success in Catalina, so it's probably something specific about what you are doing. > Any suggestions? Is this a bug? Undefined behavior? Is there a > workaround? > > Thanks, > Scott Sanders > > Craig
Re: Tomcat SSL & Equifax
I won't call it "stupid", but you are still doing something wrong. In a little greater detail, here are instructions I wrote for the procedure I use (with Tomcat 3.2.1 and IBM JDK 1.3 currently): In response to a Certificate Signing Request, EquifaxSecure sends a mail message containing two "certificates". The first asserts the key binding requested, and is signed by EquifaxSecure. The second is actually a chain of two certificates: one asserts EquifaxSecure's key and is signed by Thawte, and the other is a self-signed certificate of Thawte's. I first tried `keytool -import` on the web server's certificate. This lead to a complaint about keytool not being able to establish trust in the certificate. I fixed this by: (1) using `keytool` to load, as a "new trusted certificate", the certificate-that's-actually-a-chain into $JAVA_HOME/jre/lib/security/cacerts on the web server machine, and (2) adding the "-trustcacerts" flag to the `keytool -import` of the web server's certificate. After that, `keytool -list` shows a chain of three certificates associated with the "tomcat" alias. Upon restarting Tomcat, I find that Netscape 4.75 and IE 5 on my Win 2K laptop both recognize the web site as secure without pestering the user --- provided there is only one key entry in the keystore used by Tomcat (when there is more than one key entry, Tomcat seems to pick one at random to use as the server's SSL/TLS identity). I hope this helps. Mike
RE: Core Dump - Again
It is not my linix box thaT is having problem, it is Rick Roberts [SMTP:[EMAIL PROTECTED]] who is having the problem. And my suggestion was to make sure you have the correct Kernel etc... so i hope Rick try out updating couple of his software versions on his linux box. JDK should not have any problems, let him get the latest JDK from sun. Thanks, Anand > -Original Message- > From: Kevin Sangeelee [SMTP:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 3:53 PM > To: Patil, Anand > Subject: RE: Core Dump - Again > > Hi Anand, > > I sent this to you directly. Unfortunately I don't run kernel 2.4.x on any > of my boxes, so I won't be able to help. > > However, my advice is that, because Tomcat is 100% pure Java, and pure > Java can't core dump (this is not a function of the JVM), then the problem > *has* to be with your JDK. > > I don't expect finding/fixing bugs in a JDK is a trivial task, so you may > be better checking for latest versions (or different vendors). > > Good luck, sorry there's nothing more I can do. > > Kevin >
ClassNotFound exceptions with Tomcat/4.0-b2
Environment: Windows2000 Tomcat4.0-b2 standalone Problem: I recently upgraded to Tomcat/4.0-b2 from the previous version of 4.0. I find that its not able to locate the servlet class files under webapps//web-inf/classes. I do not have a security manager installed. This used to work before I upgraded. Is there a quirk with TC4.0-b2 about loading classes that I should be aware of? Also, what should be approach to troubleshoot this failure to load this class? I have set debug to 4 and am tracking logs\localhost_log*txt. 2001-04-02 14:13:21 StandardContext[/rks]: Mapping contextPath='/rks' with reque stURI='/rks/servlet/Quote' and relativeURI='/servlet/Quote' 2001-04-02 14:13:21 StandardContext[/rks]: Decoded relativeURI='/servlet/Quote' 2001-04-02 14:13:21 StandardContext[/rks]: Trying exact match 2001-04-02 14:13:21 StandardContext[/rks]: Trying prefix match 2001-04-02 14:13:21 StandardContext[/rks]: Mapped to servlet 'invoker' with ser vlet path '/servlet' and path info '/Quote' and update=true 2001-04-02 14:13:21 StandardWrapper[/rks:org.apache.catalina.INVOKER.Quote]: Mar king servlet org.apache.catalina.INVOKER.Quote as unavailable 2001-04-02 14:13:21 invoker: serveRequest.load javax.servlet.ServletException: Wrapper cannot find servlet class Quote or a cla ss it depends on [...] The context is defined as follows: Quote Quote Any hints appreciated, Thanks, Rk
Re: problem with virtual hosting
Doh! On Mon, 2 Apr 2001, Kieran Barry wrote: > On Mon, 2 Apr 2001, Christopher Shade wrote: > > > I tried to map www.domain.com to www.domain.com/webapp by using > > ServerName and ServerAlias in the config file, but it's not working. > > Below is what I tried in my-tomcat-apache.conf. What am I doing wrong? > > Is there a better way to map a domain to a webapp? Thanks! > > ...Christopher > > > > ### my-tomcat-apache.conf # > > > > LoadModule jserv_module libexec/mod_jserv.so > > ApJServManual on > > ApJServDefaultProtocol ajpv12 > > ApJServSecretKey DISABLED > > ApJServMountCopy on > > ApJServLogLevel notice > > > > ApJServDefaultPort 8010 > > > > # Name the Virtual Host IP > > NameVirtualHost ...server IP is here... > > > > # Define the Virtual Hosts > > > > ServerName www.domain.com/fas > > ServerAlias www.domain.com > > ApJServMount /fas ajpv12://www.domain.com:8010/fas > > DocumentRoot /usr/local/apache/prod/htdocs/fas > > > > > > AddType text/jsp .jsp > > AddHandler jserv-servlet .jsp > > > > ...and the Alias entries for my webapps... > > > > > > > Something to look at would be RedirectMatch or Redirect. > > Stick in something like: > > Redirect / http://www.domain.com/fas > > in the Virtualhost. > > Of course, I could be wrong. > And I am! This would rewrite everything which included / in its path. Try RedirectMatch /$ http://www.domain.com/fas Sorry about the mistake. Regards Kieran
Re: problem with virtual hosting
On Mon, 2 Apr 2001, Christopher Shade wrote: > I tried to map www.domain.com to www.domain.com/webapp by using > ServerName and ServerAlias in the config file, but it's not working. > Below is what I tried in my-tomcat-apache.conf. What am I doing wrong? > Is there a better way to map a domain to a webapp? Thanks! > ...Christopher > > ### my-tomcat-apache.conf # > > LoadModule jserv_module libexec/mod_jserv.so > ApJServManual on > ApJServDefaultProtocol ajpv12 > ApJServSecretKey DISABLED > ApJServMountCopy on > ApJServLogLevel notice > > ApJServDefaultPort 8010 > > # Name the Virtual Host IP > NameVirtualHost ...server IP is here... > > # Define the Virtual Hosts > > ServerName www.domain.com/fas > ServerAlias www.domain.com > ApJServMount /fas ajpv12://www.domain.com:8010/fas > DocumentRoot /usr/local/apache/prod/htdocs/fas > > > AddType text/jsp .jsp > AddHandler jserv-servlet .jsp > > ...and the Alias entries for my webapps... > > > Something to look at would be RedirectMatch or Redirect. Stick in something like: Redirect / http://www.domain.com/fas in the Virtualhost. Of course, I could be wrong. regards Kieran
need help
dear friends, kindly help me on jdbc connectivity using Tomcat. I'm not able run servlet program containing connectivity code, which is running fine in the jvm otherwise.It is giving error 404. Servlets w/o db connectivity are running fine. I'm using Tomcat3.2.1(with jdk1.3) and Personal Oracle8 as database. I tried but i'm not sure about setting classpath about driver and url in Tomcat.bat file. I've installed tomcat at c:/Program Files/Apache Group/jakar.. Oracle is installed at c:/ORAWIN95 Thank you all, Sumit.S Get free email and a permanent address at http://www.netaddress.com/?N=1
Re: Tomcat SSL & Equifax
Hi Mike, Thanks for that - I am still having problems though Did your certificate from equifax contain a one from Thawte as your mail seems to suggest. The file I have only has one from Equifax. I have imported the Equifax certificate with keytool -import -alias equifax -file equifax.cert -trustcacerts and this is then listed as a trusted certificate with keytool -list I then attempt to add the server certificate with a similar command. Am I doing something really stupid? Is there any way to check the 'chain' is a> linking properly b> 'complete' - ie back to a self-signed certificate? Many thanks Hugh -Original Message- From: Mike Spreitzer <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: 02 April 2001 16:09 Subject: Re: Tomcat SSL & Equifax >It's working for me. I'm not sure from your note whether you did the same >thing, but what I did is to load the "certificate" (really a chain of two >certs) for equifax into cacerts and then load the certificate for my site >into the keystore used by tomcat. This left the keystore holding a chain >of 3 certificates (the three mentioned above) under the alias "tomcat". > >Hope this helps, >Mike
problem with virtual hosting
I tried to map www.domain.com to www.domain.com/webapp by using ServerName and ServerAlias in the config file, but it's not working. Below is what I tried in my-tomcat-apache.conf. What am I doing wrong? Is there a better way to map a domain to a webapp? Thanks! ...Christopher ### my-tomcat-apache.conf # LoadModule jserv_module libexec/mod_jserv.so ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8010 # Name the Virtual Host IP NameVirtualHost ...server IP is here... # Define the Virtual Hosts ServerName www.domain.com/fas ServerAlias www.domain.com ApJServMount /fas ajpv12://www.domain.com:8010/fas DocumentRoot /usr/local/apache/prod/htdocs/fas AddType text/jsp .jsp AddHandler jserv-servlet .jsp ...and the Alias entries for my webapps...
Apache-SSL or Tomcat-SSL
Hey All, Newbie here. Been working with this stuff for about a week and a half now. Boss told me to get Tomcat and SOAP and add them to the apache server and demonstrate they work. Well, it took some time but that's done. Now he says: Add SSL My question is I've been reading every thing I can get my hands on and it looks like I can add SSL to apache and run two servers (http on 80 and https on 443 or whatever) or use the Virtual host stuff -or- Add SSL to Tomcat. Should I be doing both? Is one easier than the other? Particulars: I'm running Apache 1.3.19, Tomcat 3.1.1, Soap 2.0, on a Solaris 7 System. TIA. Patrick. -- e-mail: [EMAIL PROTECTED]
404 handler in Tomcat.
Hello all, I'm a new user in this mail-list, and I appologize if this question was already discussed in this list. I've a Tomcat working with Apache. I've configured Apache to handle 404 error by /404.jsp : ErrorDocument 404 /404.jsp When I try to access non-existed resource ( like /foo.html ), this handler works excellent. But when I try to access non-exised servlet ( something like /servlet/foo )... I got a "404 Not found" message from Tomcat. And it looks dramatically different from Apache's one :)) How should I configure Tomcat to use Apache's error handler? Sincerely yours, Felix.
log messages from a bean
Hello How can I write to the servlet.log file from a bean that I'm writing like I can from jsp pages using log()? Thanks dave -- Dave Weis
404 handler in Tomcat.
Hello all, I'm a new user in this mail-list, and I appologize if this question was already discussed in this list. I've a Tomcat working with Apache. I've configured Apache to handle 404 error by /404.jsp : ErrorDocument 404 /404.jsp When I try to access non-existed resource ( like /foo.html ), this handler works excellent. But when I try to access non-exised servlet ( something like /servlet/foo )... I got a "404 Not found" message from Tomcat. And it looks dramatically different from Apache's one :)) How should I configure Tomcat to use Apache's error handler? Sincerely yours, Felix.
RE: Core Dump - Again
>There's no connection at all (AFAIK!) between Linux loadable >modules, and >the Jakarta Tomcat project, or the Linux kernel. Or gcc for >that matter, >apart from building mod_jk, which is more an Apache component than a >Tomcat one! > +1 Tomcat works perfectly on Redhat 6.2 and 7.0 boxes, with all RPM updates. mod_jk also works fine but 6.2/7.0 is using kernel 2.2.16/17. If you're running kernel 2.4.x the problem is certainly in JDK. > >On Fri, 30 Mar 2001, Patil, Anand wrote: > >> I think your modules for tomcat are messed up. >> Rebuild your kernel. >> go to /usr/src/linux, do 'make xconfig'. >> In the configuration menu, chose auto load modules feature. >> Then save it. >> Then do >> >> make dep >> make clean >> make modules >> make modules_install >> make bzImage >> copy vmlinux to /boot and run lilo. >> >> Then clean install the tomcat. >> Hope Helps. >> Anand >> > -Original Message- >> > From: Rick Roberts [SMTP:[EMAIL PROTECTED]] >> > Sent: Friday, March 30, 2001 6:06 PM >> > To:Patil, Anand >> > Subject: Re: Core Dump - Again >> > >> > I think that you are giving me the corect answer. >> > I just don't know how to follow up. >> > >> > What is the name of the tomcat module? >> > >> > How can I load the correct one? >> > >> > lsmod reports the following: >> > >> > ide-cd 23628 0 (autoclean) >> > nfs28768 1 (autoclean) >> > autofs 9124 1 (autoclean) >> > lockd 31176 1 (autoclean) [nfs] >> > sunrpc 52964 1 (autoclean) [nfs lockd] >> > tulip 31872 1 (autoclean) >> > >> > >> > Thanks for any help. >> > >> > Rick >> > >> > >> > >> > "Patil, Anand" wrote: >> > > >> > > Is your kernel still linking to the old tomcat module? >> > > you can find out by lsmod, do modprobe to see whether >> > > the new kernel is pulling correct module. >> > > Hope helps. >> > > Anand >> > > >> > > > -Original Message- >> > > > From: Rick Roberts [SMTP:[EMAIL PROTECTED]] >> > > > Sent: Friday, March 30, 2001 3:58 PM >> > > > To: Tomcat >> > > > Subject: Core Dump - Again >> > > > >> > > > Everything was beautiful under RedHat 6.2. >> > > > >> > > > I just had to try out the new RH v7.0. >> > > > >> > > > All sorts of things went bad!!! >> > > > >> > > > I got everything running again, except Tomcat. >> > > > >> > > > startup.sh core dumps. >> > > > >> > > > I re-installed Tomcat, using the unmodified >tomcat.conf and it still >> > > > core dumps. >> > > > >> > > > Any one else seen this? >> > > > >> > > > I need help!! >> > > > >> > > > Thanks, >> > > > >> > > > Rick >> >
Re: Storing property file
On Mon, 2 Apr 2001, Scott Walter wrote: > Hi, > > I want to get your guys/girls input on the following: > > I am building an app that will run under Tomcat and in > the future J2EE app servers. Currently I am storing > parameters for connecting to a database (i.e. jdbc > url, driver, etc.) inside a .properties file. > > When the app is started for the first time I want the > user to enter values for db parameters and then to > write them to the property file. > > Currently I am reading the properties file off the > classpath via getResource(). Is there anyway that I > can figure where exactly on the file system where the > properties file is located at so I can write to it in > the correct location??? > > I took a look at the Jive open source project and they > have the user put the location where the file exists > on the file system as an entry in the properties file, > I would like a more elegant solution. FWIW, resources found via getResource() can be written to, when appropriate. I have an article written by Jason Hunter (author of O'Reilly's Servlets book) from JavaWorld Dec. 1998 that covers the changes from servlet spec 2.0 to 2.1 (I don't have the exact URL, but you should be able to find it from that info), and it talks about this there (page 7, near the bottom, "Writing to an abstract resource"). Take a look at that for details. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: Security Constraints
Depends on what realm you are using. Assuming you are using the default MemoryRealm, users are defined in $TOMCAT_HOME/conf/tomcat-users.xml If you are using JDBCRealm then it is presumably assumed that there is an existing mechanism to manage users/passwords for your database. If you are usign another Realm, then the chances are you have written it yourself, so should know the answer ;-) Tim > -Original Message- > From: Martin Mauri [mailto:[EMAIL PROTECTED]] > Sent: 28 March 2001 19:52 > To: [EMAIL PROTECTED] > Subject: Security Constraints > > > Hi users! > > I'm trying to configure the security constraints with FORM > login method. > I've defined to name the rola as "role1" but where and how do > I add users to > that roles and where do I configure their passwords? > > regards. > > Martin > > > Lic. Martin O. Mauri > Profesion + Auge A.F.J.P > Parana 666 - Cap. Federal > TE: (011) 4373-7786/7 int: 422 > [EMAIL PROTECTED] > www.profesi.com.ar > -- DISCLAIMER: This message contains proprietary information some or all of which may be confidential and/or legally privileged. It is for the intended recipient only who may use and apply the information only for the intended purpose. Internet communications are not secure and therefore the British Biotech group does not accept legal responsibility for the contents of this message. Any views or opinions presented are only those of the author and not those of the British Biotech group. If you are not the intended recipient please delete this e-mail and notify the author immediately by calling ++44 (0)1865 748747; do not use, disclose, distribute, copy, print or rely on this e-mail.
Storing property file
Hi, I want to get your guys/girls input on the following: I am building an app that will run under Tomcat and in the future J2EE app servers. Currently I am storing parameters for connecting to a database (i.e. jdbc url, driver, etc.) inside a .properties file. When the app is started for the first time I want the user to enter values for db parameters and then to write them to the property file. Currently I am reading the properties file off the classpath via getResource(). Is there anyway that I can figure where exactly on the file system where the properties file is located at so I can write to it in the correct location??? I took a look at the Jive open source project and they have the user put the location where the file exists on the file system as an entry in the properties file, I would like a more elegant solution. thanks in advance. = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
FW: tomcat-user : tomcat 3.2 returning partial page
Hello - We're currently having a problem w/Tomcat not returning the complete content back to the client. The behavior we are seeing on a request is: - client makes a request to servlet - server processes request - client receives approx the first 1/2 of the page as the response - when you hit 'refresh' in the browser (IE or Netscape) you immediately receive the second half of the previous response, along with the HTTP headers and full content of the second response rendered in the browser. This behavior is repeatable with both IE and Netscape browsers. However, we do not see this behavior when using Allaire's JRun 3.0 servlet engine. More specifically, our situation is this : - an HTTP request comes into our servlet - this request is packaged up and passed via CORBA to our application server - the server processes the request and returns a byte[] via CORBA - we send the response back to the client in the servlet via the code: // responsePage is a CORBA container class for the application server's response // set servlet's response headers: // the content length header is the same as the length of the byte array res.setContentLength(responsePage.body.length); // iterate through the name value pairs and set them in the servlet headers NVPArrayToHeaders(responsePage.head.headers, res); try { // get servlet response's output stream & send server response byte array ServletOutputStream sos = res.getOutputStream(); sos.write(responsePage.body); sos.flush(); sos.close(); } catch (IOException e) { myLogger.logHTTPError(ServletError.SERVLET_IO_ERROR,res); myLogger.logError(ServletError.SERVLET_IO_ERROR,e); } We have verified that the headers are correct and well formed(by dumping them to the console), and that the entire response document is contained in the byte array coming back from the CORBA method (by dumping it to a file). Am I misusing the ServletOutputStream? Should I wrap the ServletOutpurStream object with a BufferedOutputStream? Any help/insights would be appreciated, Craig Pfeifer Craig Pfeifer Software Engineer Aether Systems, Software Products Division 703.847.3303 x2053 [EMAIL PROTECTED]
Keepalive connections in Tomcat ???
Hi I wanted to findout if persistent/keepalive connections are supported by tomcat3.2 /3.3 In my application I am trying to invoke a servlet from a C application through plain sockets In my post header I am specifying Connection : keep-alive parameter, however when I try to reuse the connection and post again using the same socket, I get an error saying the socket has been shutdown. So my question is if Tomcat supports connection keep alive and if there is anyother way to support persistent connections in the above scenario. thanks deep _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: session tracking documents,how-to...
http://java.sun.com look at the servlet specification Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: João Folha [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 10:13 AM To: [EMAIL PROTECTED] Subject: Fw: session tracking documents,how-to... - Original Message - From: João Folha To: [EMAIL PROTECTED] Sent: Monday, April 02, 2001 4:42 PM Subject: session tracking documents,how-to... Hi there, I need documents about session tracking.
Fw: session tracking documents,how-to...
- Original Message - From: João Folha To: [EMAIL PROTECTED] Sent: Monday, April 02, 2001 4:42 PM Subject: session tracking documents,how-to... Hi there, I need documents about session tracking.
RE: Core Dump - Again
Kevin please don't get confused, Let's see what is causing the core dump. Have you got kernel 2.4.2? Have you got latest tomcat? DId you do make xconfig? and chose correct setting? Does your tomcat compile on your machine? What do you see in /var/log/messages after compile? Have you installed latest apache? Is apache up and running? Have you got the binary version of tomcat or you build it from source? If binary version did you dowmload the release version? Hope helps! Anand > -Original Message- > From: Kevin Sangeelee [SMTP:[EMAIL PROTECTED]] > Sent: Saturday, March 31, 2001 11:30 AM > To: Tomcat-User@Jakarta. Ap > Subject: RE: Core Dump - Again > > There's no connection at all (AFAIK!) between Linux loadable modules, and > the Jakarta Tomcat project, or the Linux kernel. Or gcc for that matter, > apart from building mod_jk, which is more an Apache component than a > Tomcat one! > > > > On Fri, 30 Mar 2001, Patil, Anand wrote: > > > I think your modules for tomcat are messed up. > > Rebuild your kernel. > > go to /usr/src/linux, do 'make xconfig'. > > In the configuration menu, chose auto load modules feature. > > Then save it. > > Then do > > > > make dep > > make clean > > make modules > > make modules_install > > make bzImage > > copy vmlinux to /boot and run lilo. > > > > Then clean install the tomcat. > > Hope Helps. > > Anand > > > -Original Message- > > > From: Rick Roberts [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, March 30, 2001 6:06 PM > > > To: Patil, Anand > > > Subject: Re: Core Dump - Again > > > > > > I think that you are giving me the corect answer. > > > I just don't know how to follow up. > > > > > > What is the name of the tomcat module? > > > > > > How can I load the correct one? > > > > > > lsmod reports the following: > > > > > > ide-cd 23628 0 (autoclean) > > > nfs28768 1 (autoclean) > > > autofs 9124 1 (autoclean) > > > lockd 31176 1 (autoclean) [nfs] > > > sunrpc 52964 1 (autoclean) [nfs lockd] > > > tulip 31872 1 (autoclean) > > > > > > > > > Thanks for any help. > > > > > > Rick > > > > > > > > > > > > "Patil, Anand" wrote: > > > > > > > > Is your kernel still linking to the old tomcat module? > > > > you can find out by lsmod, do modprobe to see whether > > > > the new kernel is pulling correct module. > > > > Hope helps. > > > > Anand > > > > > > > > > -Original Message- > > > > > From: Rick Roberts [SMTP:[EMAIL PROTECTED]] > > > > > Sent: Friday, March 30, 2001 3:58 PM > > > > > To: Tomcat > > > > > Subject: Core Dump - Again > > > > > > > > > > Everything was beautiful under RedHat 6.2. > > > > > > > > > > I just had to try out the new RH v7.0. > > > > > > > > > > All sorts of things went bad!!! > > > > > > > > > > I got everything running again, except Tomcat. > > > > > > > > > > startup.sh core dumps. > > > > > > > > > > I re-installed Tomcat, using the unmodified tomcat.conf and it > still > > > > > core dumps. > > > > > > > > > > Any one else seen this? > > > > > > > > > > I need help!! > > > > > > > > > > Thanks, > > > > > > > > > > Rick > >
j_security_check problem with embedded Tomcat 3.2.1 on Widows 2000 with IIS 5.0
Hi, I am trying to use IIS 5.0 web server on Windows 2000 with embedded Tomcat 3.2.1 running in JBoss. I followed the instructions in "Tomcat IIS How To" and I am able to see the login page. Once after typing in the login information, I am getting j_security_check error. Somebody has suggested on this mailing list that I need to register ".class" , ".jsp" etc. extensions to be forwarded to Tomcat using isapi_redirect.dll in IIS console. I did this too. It appears that I might be missing some of these forward requests to be registered in IIS console, that's why I might be having j_security_check. So could you please help me on this. "Tomcat IIS How To" instructions worked perfectly on IIS4.0 on NT, but these are not working properly Windows 2000 with IIS 5.0. Regards, Rao
RE: Re-Setting the bean in a session scope
Title: RE: Re-Setting the bean in a session scope I tried doing Display properties as got from the bean... Set some properties Display those newly set properties <% myBean = new MyPackage.MyBean(); %> Display the properties... It seemed to pick the default values and did appear to reset the bean but was not adding it to the session so I had to make an explicit call to <% session.setAttribute("myBean", myBean); %> and this seemed to do the trick try and see if this works for you... === Gary Grewal
Re: How to re-use a request scope bean?
Joe, I still haven't had a chance to try this yet, but I wanted to let you know that this seems like the right way to go and I appreciate the suggestion. - Todd Chaffee At 02:02 PM 03/21/01 -0800, you wrote: > > The ideal would be for me to be able to pass the existing request's bean >to > > the new request. Is this possible? > >Short of trying to serialize the object and encode it into the URLs on the >page, I don't know of a way of getting a request-scope object to survive >outside of the scope of the request (go figure!). > >I think my first try would be to write a "container" bean that would hold >all search results (either in the application scope or the session scope). >Whenever someone wanted a new search, the search container would handle the >process of making a new SearchResults object and it would merely pass back >some identifier that you could use to get it later: > > class="mypackage.SearchManager"/> > > property="newsearch" arg="hot teenage lesbian sluts" >class="mypackage.SearchResults"/> > > > > >Then, in your product_list.jsp, you'd have something to recall the results >based on their ID something like: > > class="mypackage.SearchManager"/> > > property="existingsearch" arg="<%= request.getParameter(\"searchid\") %>" >class="mypackage.SearchResults"/> > >Let me know if this helps, > >- Joe
RE: Beginner question
The JAVA_HOME should be : /usr/java/jdk1.3 > -Original Message- > From: Joey A. Gartin [SMTP:[EMAIL PROTECTED]] > Sent: á 02 àôøéì 2001 17:59 > To: [EMAIL PROTECTED] > Subject: Beginner question > > Hi, > > I just installed Tomcat, and set the TOMCAT_HOME and JAVA_HOME environment > variables in profile, when I export them and try to run startup.sh it is > no > go. I get an error message that says there is no such directory > /usr/java/jdk1.3/bin/bin/java . If you take the /bin/java off the end you > have my path for the JAVA_HOME, but I do not get where the concatenation > of > the last portion is coming from. > > If I do not export the variables and run startup.sh it guesses the > TOMCAT_HOME and runs fine. Any suggestions? > > Thank you all in advance. > > New to Linux > >
Fw: CD ROM Project, Read-only Tomcat ??
- Original Message - From: "Thomas Viohl" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 02, 2001 1:44 PM Subject: CD ROM Project, Read-only Tomcat ?? > Has somebody build a CDROM Project with Tomcat? > We try to use it as a web- and servlet server on a CDROM. Now there is the > problem with the write access by tomcat (auto.conf files, log-files a.s.o.) > My questions: > 1. How to stop tomcat from generating the auto-conf files in bin-directory? > 2. Can I point to conf files (server.xml, web.xml) on a temp dir on harddisk > with write access? > 3. Can I configure a webapp context to use files (html, gifs, xml) not under > the webapps dir (e.g. webapp on harddisk, html and gifs on CD ROM) ? > > > thank you for an answer > > -- > Thomas > > >
FW: RE: how to access a properties file as a resource.
But that would mean that the property file is somewhere on the class path. I want it in the web-inf/ directory. Do you understand what I mean? >Date: Mon, 2 Apr 2001 06:53:38 -0700 >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >From: William Kaufman <[EMAIL PROTECTED]> >Subject: RE: how to access a properties file as a resource. >Message-ID: <635802DA64D4D31190D500508B9B04108214E1@dcsrv0> >Use java.util.ResourceBundle.getBundle(). > -- Bill K.
Beginner question
Hi, I just installed Tomcat, and set the TOMCAT_HOME and JAVA_HOME environment variables in profile, when I export them and try to run startup.sh it is no go. I get an error message that says there is no such directory /usr/java/jdk1.3/bin/bin/java . If you take the /bin/java off the end you have my path for the JAVA_HOME, but I do not get where the concatenation of the last portion is coming from. If I do not export the variables and run startup.sh it guesses the TOMCAT_HOME and runs fine. Any suggestions? Thank you all in advance. New to Linux
RE: load balancing and synchronization
>if i do load balancing with tomcat (w/ mod_jk), what happens >if the two tomcat servers at the same time execute a >synchronized method? With mod_jk, even in load balancing mode, a request is allways sent a a SINGLE tomcat ! >will they know that they mustn't execute >it concurrently or not? if synchronization worked only per >JVM, would there be a workaround? The Tomcat didn't (and must'nt) know about others tomcats >thanks, > >-nico > > >Nico Wieland > >NETVERTISING AGAgentur fuer zeitgerechte Kommunikation >Samariterstrasse 5, CH 8032 Zuerich >Telefon +41 1 267 11 11, Fax +41 1 267 11 99 >mailto:[EMAIL PROTECTED] http://www.netvertising.ch > >
RE: load balancing and synchronization
Synchronization does only work per-JVM. (Consider that you're synchronizing on an object: that same object cannot possibly appear in two different JVMs.) The only work-around is to do locking yourself, using some resource (like a file, a database, a servlet, or an RMI server) which is accessible from all server machines/processes. -- Bill K. > -Original Message- > From: Nico Wieland [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 8:40 AM > To: [EMAIL PROTECTED] > Subject: load balancing and synchronization > > > hi list > > if i do load balancing with tomcat (w/ mod_jk), what happens > if the two tomcat servers at the same time execute a > synchronized method? will they know that they mustn't execute > it concurrently or not? if synchronization worked only per > JVM, would there be a workaround? > > thanks, > > -nico > > > Nico Wieland > > NETVERTISING AGAgentur fuer zeitgerechte Kommunikation > Samariterstrasse 5, CH 8032 Zuerich > Telefon +41 1 267 11 11, Fax +41 1 267 11 99 > mailto:[EMAIL PROTECTED] http://www.netvertising.ch > >
NullPointerException in Catalina StandardClassLoader when JAR with no manifest is added to one of the lib directories
NullPointerException in Catalina StandardClassLoader when JAR with no manifest is added to one of the lib directories Adding manifest to the jar fixes the problem D:\java\apache\tomcat4\bin>catalina runUsing CLASSPATH: d:\java\apache\tomcat4\bin\bootstrap.jar;c:\java\jdk\lib\tools.jarjava.lang.NullPointerException at org.apache.catalina.loader.Extension.getAvailable(Extension.java:300) at org.apache.catalina.loader. .addRepositoryInternal(StandardClassLoader.java:1133) at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:219) at org.apache.catalina.startup.Bootstrap.createCatalinaLoader(Bootstrap.java:328) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:121)Exception in thread "main" java.lang.IllegalArgumentException: addRepositoryInternal: java.lang.NullPointerException at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1145) at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:219) at org.apache.catalina.startup.Bootstrap.createCatalinaLoader(Bootstrap.java:328) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:121)D:\java\apache\tomcat4\bin>
load balancing and synchronization
hi list if i do load balancing with tomcat (w/ mod_jk), what happens if the two tomcat servers at the same time execute a synchronized method? will they know that they mustn't execute it concurrently or not? if synchronization worked only per JVM, would there be a workaround? thanks, -nico Nico Wieland NETVERTISING AGAgentur fuer zeitgerechte Kommunikation Samariterstrasse 5, CH 8032 Zuerich Telefon +41 1 267 11 11, Fax +41 1 267 11 99 mailto:[EMAIL PROTECTED] http://www.netvertising.ch
Re: Need help on getting work Tomcat4.0 Nightly build (04/02/01)...
but I've tried also the b2 and it does the same thing . thanks. Meir Faraj - Original Message - From: "Benoît Jacquemont" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 02, 2001 5:31 PM Subject: RE: Need help on getting work Tomcat4.0 Nightly build (04/02/01)... > Hi Meir, > > You're using a nightly build of a beta version... > So it's twice more instable than the current 3.2.1 version... > You shouldn't expect it to work fine. > > Benoît > > > Hi all , > > I've installed on windows 98 Tomcat 4.0 Nightly build (04/02/01) > > And got it run but context not start because of Exception... > > localhost_log.2001-04-02.txt log contain the error . > > the file is appended . > > please help.. > > > > > >
session tracking documents,how-to...
Hi there, I need documents about session tracking.
RE: Need help on getting work Tomcat4.0 Nightly build (04/02/01)...
Hi Meir, You're using a nightly build of a beta version... So it's twice more instable than the current 3.2.1 version... You shouldn't expect it to work fine. Benoît > Hi all , > I've installed on windows 98 Tomcat 4.0 Nightly build (04/02/01) > And got it run but context not start because of Exception... > localhost_log.2001-04-02.txt log contain the error . > the file is appended . > please help.. > >
Need help on getting work Tomcat4.0 Nightly build (04/02/01)...
Hi all , I've installed on windows 98 Tomcat 4.0 Nightly build (04/02/01) And got it run but context not start because of Exception... localhost_log.2001-04-02.txt log contain the error . the file is appended . please help.. 2001-04-02 17:12:41 StandardLoader[/examples]: Reloading checks are enabled for this Context 2001-04-02 17:12:41 Manager[/examples]: Seeding random number generator class java.security.SecureRandom 2001-04-02 17:12:41 Manager[/examples]: Seeding of random number generator has been completed 2001-04-02 17:12:41 ContextConfig[/examples]: Configured an authenticator for method FORM 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Compression Filter java.lang.ClassCastException: compressionFilters.CompressionFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:2881) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Servlet Mapped Filter java.lang.ClassCastException: filters.ExampleFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:2881) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Request Dumper Filter java.lang.ClassCastException: filters.RequestDumperFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:2881) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Path Mapped Filter java.lang.ClassCastException: filters.ExampleFilter at org.a
Need help on getting work Tomcat4.0 Nightly build (04/02/01)...
Hi all , I've installed on windows 98 Tomcat 4.0 Nightly build (04/02/01) And got it run but context not start because of Exception... localhost_log.2001-04-02.txt log contain the error . the file is appended . 2001-04-02 17:12:41 StandardLoader[/examples]: Reloading checks are enabled for this Context 2001-04-02 17:12:41 Manager[/examples]: Seeding random number generator class java.security.SecureRandom 2001-04-02 17:12:41 Manager[/examples]: Seeding of random number generator has been completed 2001-04-02 17:12:41 ContextConfig[/examples]: Configured an authenticator for method FORM 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Compression Filter java.lang.ClassCastException: compressionFilters.CompressionFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:2881) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Servlet Mapped Filter java.lang.ClassCastException: filters.ExampleFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:2881) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Request Dumper Filter java.lang.ClassCastException: filters.RequestDumperFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:2881) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) 2001-04-02 17:12:41 StandardContext[/examples]: Exception starting filter Path Mapped Filter java.lang.ClassCastException: filters.ExampleFilter at org.apache.cata
Re: Tomcat SSL & Equifax
It's working for me. I'm not sure from your note whether you did the same thing, but what I did is to load the "certificate" (really a chain of two certs) for equifax into cacerts and then load the certificate for my site into the keystore used by tomcat. This left the keystore holding a chain of 3 certificates (the three mentioned above) under the alias "tomcat". Hope this helps, Mike
RE: Redirect System.setOut() to response.out
> -Original Message- > From: Mike Slinn [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 31, 2001 7:51 PM > To: Tomcat Users > Subject: Redirect System.setOut() to response.out > > > Can anyone give me the magic incantation (if there is one) to redirect > System.out to response.out? > > Something along the lines of: > System.setOut([magic dust goes here] out); By "response.out", you mean the ServletResponse's output? Then, "magic dust" = "new java.io.PrintStream(response.getOutputStream())". Note, though, that System.setOut() may be disallowed by the security manager: you should try to avoid calling it, by using (and exposing) methods which allow the caller to specify the output, wherever possible. -- Bill K.
security provider problem with tomcat
hi there! i'm trying to make cryptix security work with tomcat. the installation guide says to register the security provider with the jre 1.3 (which i did). the installation was successful and added the following lines to java.security # Added by Cryptix V3 installation program: security.provider.3=cryptix.provider.Cryptix now, when i run a example batch (without tomcat), it works perfectly. but when i call the same method (the one that uses the encryption) from a jsp file, i get a error on the tomcat saying: NoSuchProviderException: Provider Cryptix not available whats the problem here ? i already made sure that i start the tomcat with the same java.exe i used to register the security provider. first i had the cryptix.jar in the web-inf/lib of my webapplication... then i thought apparenty tomcat is missing the jar and put it to tomcat/lib (restarted tomcat) but it didnt help. so either way, the cryptix library _is_ in the classpath, so what am i missing ? thanks in advance! greetings, lukas
RE: how to access a properties file as a resource.
Use java.util.ResourceBundle.getBundle(). -- Bill K. > -Original Message- > From: Alex Colic [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 6:51 AM > To: Tomcat-User > Subject: how to access a properties file as a resource. > > > Hi, > > I have a properties file in the web-inf directory of my web > app. How can I > access that file. It holds my localization settings I have tried. > > String pathSeperator =File.separator. > > InputStream is=context.getResourceAsStream("Web-inf" + pathSeperator + > "pwWorkRequestProLocalization"); > > PropertyResourceBundle res= new PropertyResourceBundle(is); > > When the input stream tryes to get the resource I get the > following Tomcat > error: > > Ctx( ): Unsafe path C:\JBuilder4\Projects\pwWorkRequest > /Web-inf\pwWorkRequestProLocalization" > > And when the PropertyResourceBundle tries to read the input > stream I get a > nullpointerexception. > > I have tried various strings to pass to > context.getResourceAsStream() but I > have not been successful. Any help is appreciated. > >
how to access a properties file as a resource.
Hi, I have a properties file in the web-inf directory of my web app. How can I access that file. It holds my localization settings I have tried. String pathSeperator =File.separator. InputStream is=context.getResourceAsStream("Web-inf" + pathSeperator + "pwWorkRequestProLocalization"); PropertyResourceBundle res= new PropertyResourceBundle(is); When the input stream tryes to get the resource I get the following Tomcat error: Ctx( ): Unsafe path C:\JBuilder4\Projects\pwWorkRequest /Web-inf\pwWorkRequestProLocalization" And when the PropertyResourceBundle tries to read the input stream I get a nullpointerexception. I have tried various strings to pass to context.getResourceAsStream() but I have not been successful. Any help is appreciated.
RE: unexistant webapp problem
Add your root configuration back or upgrade to 3.2.2 or 3.3 - the problem is that when there is no context to handle a request then Tomcat gets into an infinite loop (mentioned in the docs\readme file, item number 6.11 - isn't documentation wonderful?). Randy > -Original Message- > From: Michaël Bellefroid [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 8:49 AM > To: '[EMAIL PROTECTED]' > Subject: unexistant webapp problem > > > Hi all, > > I have the following problem using Tomcat 3.2 : > > If I enter a URL like http://www.host.com/someWebapp and there is no > someWebapp web application, the java process starts running > with 99% CPU > usage. > I waited about 10 minutes but it was still 99% CPU usage. > > Any solution against this ? > > thx > > mikl > > _ > Bellefroid Michael > Software Engineer > IT Architect > Icon Medialab Belgium > www.iconmedialab.com >
tomcat-3.2.1 dies after a couple of hours
Hi, our tomcat Solaris-2.6 server with jdk-1_3_0_02 disappears after a couple of hours? I cannot find any "core" file. Does anybody know why? Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
** Need help - Error while opening the workers **
Hi, I am getting an error during startup of Apache httpd can't be started - No such file or directory: Error while opening the workers. Has anyone else had this problem. Any thoughts or help? Thanks. My OS: Linux Regards, Prashanth Marathe D
unexistant webapp problem
Hi all, I have the following problem using Tomcat 3.2 : If I enter a URL like http://www.host.com/someWebapp and there is no someWebapp web application, the java process starts running with 99% CPU usage. I waited about 10 minutes but it was still 99% CPU usage. Any solution against this ? thx mikl _ Bellefroid Michael Software Engineer IT Architect Icon Medialab Belgium www.iconmedialab.com
Re: ** Help required: Err in Apache httpd could not be started **
Have you examined the paths in tomcat/conf/workers.properties? you need to set workers.tomcat_home and workers.java_home, and also your path separator '/' for NIX, '\' for Windows. HTH Alex - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Mon 02 April 2001 09:22 Subject: ** Help required: Err in Apache httpd could not be started ** : Hi, : : When I tried to start apache, which is configured to tomcat, it gives me : following error. : : httpd could not be started : : the error log file of apache says : [emerg] (2)No such file or directory: Error while opening the workers : : My OS: linux : : Regards, : Prashanth :
CD ROM Project, Read-only Tomcat ??
Has somebody build a CDROM Project with Tomcat? We try to use it as a web- and servlet server on a CDROM. Now there is the problem with the write access by tomcat (auto.conf files, log-files a.s.o.) My questions: 1. How to stop tomcat from generating the auto-conf files in bin-directory? 2. Can I point to conf files (server.xml, web.xml) on a temp dir on harddisk with write access? 3. Can I configure a webapp context to use files (html, gifs, xml) not under the webapps dir (e.g. webapp on harddisk, html and gifs on CD ROM) ? thank you for an answer -- Thomas
How to call a CAB file from a JSP page
smime.p7m
Re: Namespace clarification
-Original Message- From: Christian Seifert <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Monday, April 02, 2001 1:45 PM Subject: Re: Namespace clarification >tomcat puts together the classpath dynamically and you >have no way of influencing the order it does so. so >the sax parser might me loaded before xerces. >one way to get around this is to edit the tomcat.bat >and change the dynamically setting of the classpath to >statically setting the classpath and taking care that >xerces.jar is at the beginning. >you might also want to check out the cocoon project as >this provides the functionality of what you are trying >to do. it also allows you to create XSP pages (hybrid >of JSP and XML)the url is xml.apache.org. > >hope this helps > >christian > >--- "Prasanna.N" <[EMAIL PROTECTED]> wrote: >> Hi, >> I am using TOMCAT 3.2. I am trying to transform an >> xml >> doc with XSL to generate a HTML. When i write a >> simple Java Class and use >> xerces, xalan it works just fine. When written in >> JSP using JAVA, When i call >> the page i am getting the following error >> >> "Namespace not supported by SAX Parser". >> >> I think Tomcat uses SAX Parser. How to come around >> this problem. I am using >> namespaces. Is there any option, to plug in XERCES >> parser with TOMCAT, if so >> how to do it. Since XERCES supports namespaces could >> this be a option to come >> around this problem? Please help. >> >> Regards, >> Prasan >> >> Prasanna N >> Indo-Fuji Information Technologies Pvt. Ltd. >> No: 484, II Cross >> 25th Main, II Stage >> BTM Layout, Bangalore 560 076. >> Tel : 91-80-6784122/33/44/55 >> > > >__ >Do You Yahoo!? >Get email at your own domain with Yahoo! Mail. >http://personal.mail.yahoo.com/?.refer=text Hi prassan i am also from bangalore and am looking for a job do you think that i could forward my resume to you.i am from iit delhi and have 18 months of work exp with TCS Shall i forward my resume to you. YOURS SINCERELY Shivakanth
Tomcat SSL & Equifax
Hi, Has anyone had success installing an Equifax certificate on Tomcat (3.2.1) ? These come as a certificate chain. I can load the certificate for the machine and the equifax certificate into the keystore, and these appear correct (or atleast I can list and see the details of them using the keytool -list command). When I use the keytool command to generate a self-signed certificate (alias tomcat) the SSL server works. However when I delete that and use the machine certificate (again aliased to tomcat), my browser (IE4) complains that it does not understand the response stream. Tomcat appears to start correctly and I can find no errors in the log files. Cheers Hugh
Sending HTTP request from a servlet to ASP.
Dear All, I am trying to send an HTTP request to an ASP page. Actually, i am writing a servlet which runs on tomcat 3.2 and wants to call an ASP page and send it some form data. This is a requirement of the third party software we are using to validate credit card details. How can i call an ASP page from a java servlet using HTTP? Thanx in advance, Hitesh
RE: HOTSPOT VIRTUAL MACHINE error
have u looked at the tomcat startup script ? -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 31, 2001 10:37 AM To: [EMAIL PROTECTED] Subject: HOTSPOT VIRTUAL MACHINE error Hi, I have the HOTSPOT VIRTUAL MACHINE error and I know I should be able to avoid this error by giving the +classic option to the java command. The problem is that Tomcat doesn't allow any extra java options ... Anyone knows how I can still use it ? or avoid the hotspot error ? Thanks, Christoph
** Help required: Err in Apache httpd could not be started **
Hi, When I tried to start apache, which is configured to tomcat, it gives me following error. httpd could not be started the error log file of apache says [emerg] (2)No such file or directory: Error while opening the workers My OS: linux Regards, Prashanth
Re: unsetting bean w/ session scope
On Mon, 2 Apr 2001, Kris Gonzalez wrote: > ... name = new Name(); session.setAttribute("name",name); -- (assuming the session is an HttpSession object of course)
Re: Namespace clarification
tomcat puts together the classpath dynamically and you have no way of influencing the order it does so. so the sax parser might me loaded before xerces. one way to get around this is to edit the tomcat.bat and change the dynamically setting of the classpath to statically setting the classpath and taking care that xerces.jar is at the beginning. you might also want to check out the cocoon project as this provides the functionality of what you are trying to do. it also allows you to create XSP pages (hybrid of JSP and XML)the url is xml.apache.org. hope this helps christian --- "Prasanna.N" <[EMAIL PROTECTED]> wrote: > Hi, > I am using TOMCAT 3.2. I am trying to transform an > xml > doc with XSL to generate a HTML. When i write a > simple Java Class and use > xerces, xalan it works just fine. When written in > JSP using JAVA, When i call > the page i am getting the following error > > "Namespace not supported by SAX Parser". > > I think Tomcat uses SAX Parser. How to come around > this problem. I am using > namespaces. Is there any option, to plug in XERCES > parser with TOMCAT, if so > how to do it. Since XERCES supports namespaces could > this be a option to come > around this problem? Please help. > > Regards, > Prasan > > Prasanna N > Indo-Fuji Information Technologies Pvt. Ltd. > No: 484, II Cross > 25th Main, II Stage > BTM Layout, Bangalore 560 076. > Tel : 91-80-6784122/33/44/55 > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
[CATALINA]
Using the latest CVS of Catalina, I am having an issue with my web application. When I build my webapp with Ant, I create many xml files under WEB-INF/classes/xml/oem/*. Then when a request comes in, I use getClass().getResource() to return the URL to the xml file. In Tomcat 3.x (3.0,3.1,3.2,3.2.1), the URL returned looks something like file:///opt/tomcat/webapps/app-name/WEB-INF/classes/xml/oem/file.xml In Catalina, the URL returned is: /WEB-INF/classes/xml/oem/file.xml The problem is when I use this URL as an InputSource to my XSLT processor (Saxon), which is contained in /WEB-INF/lib/saxon.jar, it says that it cannot find the file. In Tomcat 3.x, it finds the file fine and continues processing. Any suggestions? Is this a bug? Undefined behavior? Is there a workaround? Thanks, Scott Sanders
Namespace clarification
Hi, I am using TOMCAT 3.2. I am trying to transform an xml doc with XSL to generate a HTML. When i write a simple Java Class and use xerces, xalan it works just fine. When written in JSP using JAVA, When i call the page i am getting the following error "Namespace not supported by SAX Parser". I think Tomcat uses SAX Parser. How to come around this problem. I am using namespaces. Is there any option, to plug in XERCES parser with TOMCAT, if so how to do it. Since XERCES supports namespaces could this be a option to come around this problem? Please help. Regards, Prasan Prasanna N Indo-Fuji Information Technologies Pvt. Ltd. No: 484, II Cross 25th Main, II Stage BTM Layout, Bangalore 560 076. Tel : 91-80-6784122/33/44/55