Re: where is a text/html;charset= ?

2005-10-12 Thread Jon Wingfield
You need to submit a valid HTTP request. Yours doesn't have the version at the end of the request line. Try: GET / HTTP/1.0 (Thats a two linefeeds: one marking the end of the request line and one blank line indiating the end of the http headers) You should then see the HTTP response,

Re: SessionListener invoked sometimes and not others

2005-10-10 Thread Jon Wingfield
And possibly a HttpSessionActivationListener object as a session attibute. The sessionDidActivate() method on the object gets called if the session is still valid when tomcat restarts. You can use this to fix your state. HTH, Jon Mark Thomas wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: Wish: add a header in mail subject

2005-10-06 Thread Jon Wingfield
If what you are after is a way to filter messages then use a good email client and filter on the message header List-Id. For this list it is set to: List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Seak, Teng-Fong wrote: It would be nice if this mailing-list could add a header

Re: precompiling JSPs -- how to resolve references normally resolved by apache?

2005-10-06 Thread Jon Wingfield
Unless you have a directory ${TOP}/web/html/jsp/jsp your uribase/uriroot probably aren't right. [EMAIL PROTECTED] wrote: Hi, I am trying to get our JSPs to be precompiled as part of our ant build process to catch all syntax errors at compile time. The problem I have run into is that we are

Re: ClassCastException while sharing objects accross applications

2005-10-04 Thread Jon Wingfield
What Chuck says is right. This approach has a few gotchas though, especially if ClassX is complex and references many other objects loaded from the same (WebApp) classloader. You can end up with a lot of classes up in the common repository. -o Make ClassX an interface, if you can. That way

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Jon Wingfield
Yep. It's a FAQ, but not in the FAQ. Tomcat not quitting generally means your webapp has started a non-daemon thread which does not exit when the webapp is destroyed. If so, shut them down in a ServletContextListener. If you aren't explicitly creating threads in your webapp then the usual

Re: Default Charset in Content-Type Header

2005-09-22 Thread Jon Wingfield
Return binary content from a servlet using the ServletOutputStream and you should have no problem. This is the way we vend MMS data. (In fact all of our binary data.) HTH, Jon Alpay Ozturk wrote: Thanks Kerem , But I need to set the content-type of a servlet response as

Re: tomcat detecting http header

2005-09-20 Thread Jon Wingfield
Of course, you could just call request.getRemoteAddr(); Tomcat is a Servlet Specification container. You don't get headers with CGI naming conventions. Check out the api documentation: http://java.sun.com/j2ee/1.4/docs/api/index.html It's the packages starting with javax.servlet that will be

Re: Do URL query strings with semi-colons work with TC ?

2005-09-06 Thread Jon Wingfield
Aye. It just states for that, amongst others, amphersand and semi-colon are reserved characters within the query string. This got me looking coz I assumed that the structure of the http get query string was defined somewhere in rfc rather than just a convention. I found a few resources

Re: Do URL query strings with semi-colons work with TC ?

2005-09-05 Thread Jon Wingfield
In a URL the semi-colon indicates the start of path parameters (as opposed to the normal query parameters) as defined in rfc2616 (HTTP1.1 spec) et al. Thus, you can't tell tomcat to use it as a query string delimiter. JSESSIONID is a well known path parameter for Servlet 2.2+ Containers. To

Re: http404 error in tomcat5.5.9

2005-08-18 Thread Jon Wingfield
I'm not sure the whitespace in your directory structure came out right so I'll make a few comments: web.xml should be in myapp/WEB-INF context.xml should be in myapp/META-INF (or rename it to myapp.xml and move it to the webapps directory) Your servlet class should be in a package. Have a

Re: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Jon Wingfield
It doesn't like the agent_report_all_in_jsp classname. I'm guessing that's supposed to be the name of the servlet class generated from the jsp. Are you sure it's correct? If it is then you may have to use a String argument instead of a class when calling the Logger factory method. Gary Zhu

Re: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Jon Wingfield
with log4j statements -- Tomcat 5.5.9 I think Jon maybe onto something ... to use agent_report_all_in_jsp.class your JSP would need to be called agent_report_all_in.jsp Is that the case? Allistair/ -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 16

Re: Shall jdom be handled differently?

2005-08-11 Thread Jon Wingfield
Works for me. Show us the snippet of the jsp with the import statement... Jon Vernon wrote: I have the jdom-1.0.jar in the application library directory, that is WEB-INF/lib, where other jar files are. The jar doesn't seem to be loaded. I get the following error: ERROR

Re: Shall jdom be handled differently?

2005-08-11 Thread Jon Wingfield
in the content1.jsp file as %@ page import='org.jdom.*' % That doesn't make any difference. --- Jon Wingfield [EMAIL PROTECTED] wrote: Works for me. Show us the snippet of the jsp with the import statement... Jon Vernon wrote: I have the jdom-1.0.jar in the application library directory

Re: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-09 Thread Jon Wingfield
I'm pretty sure Tomcat doesn't allow a session to migrate from a secure (ssl) channel to an insecure one. It does allow the session to be maintained in the other direction, however. The rationale for this behaviour is that if the login is supposed to be secure why allow the session cookie to be

Re: Exception during the startup!

2005-08-08 Thread Jon Wingfield
The key info in the stracktrace is: root cause java.lang.NoClassDefFoundError: org/apache/xalan/templates/OutputProperties at com.test.wmtool.gui.SessionHelper.saveState(Unknown Source) The SessionHelper class uses Xalan classes that the webapp classloader cannot find at runtime. This

Re: [OT] JSP 1.2 JAR

2005-08-08 Thread Jon Wingfield
For Servlet 2.3 containers both the JSP and Servlet APIs are in servlet.jar. It's only later they were split out into servlet-api.jar and jsp-api.jar Frank W. Zammetti wrote: Hi all... does anyone know where I can grab a copy of the JSP 1.2 spec JAR? I've checked iBiblio, they only have 2.0

Re: load on startup

2005-08-05 Thread Jon Wingfield
Use a ServletContextListener, they were added to the Servlet 2.3 spec for this very purpose. You set up your object in the contextInitialized(...) method of your implementation and tear it down in contextDestroyed(...). For it to be used you need to add it to your web.xml. The container is

Re: loading resources from the servlet.

2005-08-05 Thread Jon Wingfield
http://wiki.apache.org/jakarta-tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc HTH, Jon Maciej Stoszko wrote: I have a class X which needs to load a .properties file. Here is a code snippet: ClassLoader cl = this.getClass().getClassLoader(); InputStream stream =

Re: Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Jon Wingfield
From one of Allistair's posts yesterday: www.adcworks.com/blog Mladen Turk wrote: Allistair Crossley wrote: Hi Chaps, If anyone is interested, I blogged last night on my experience setting up ... It would be great if you provide a link to your blog :) Regards, Mladen.

Re: Tomcat Configuration

2005-07-14 Thread Jon Wingfield
Do you have a web.xml in WEB-INF? What do the tomcat logs say on startup? You can tweak the logger verbosity by increasing the debug attributes on elements within server.xml. What version of tomcat? Not sure Logger elements are supported in 5.5.x Jon PS: books are generally out of date by the

Re: Caching static content - Bug in Filter implementation?

2005-07-07 Thread Jon Wingfield
I think that's expected behaviour: You can't set headers after the response has been committed (more body data has been written to the outputstream than the buffer size). In the case of the 200 response code the call to filterChain.doFilter(...) actually serves the content. Setting of the

Re: error messages during tomcat 4.1 startup

2005-07-07 Thread Jon Wingfield
It looks like your web.xml DOCTYPE definition is either missing or incorrect. Digester is using a validating parser and so barfs. Review your web.xml document(s). Jon Tewari,kuldeep wrote: Hi, I am getting following messages during tomcat 4.1 startup. What could be the cause? Jul 7, 2005

Re: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-06 Thread Jon Wingfield
I agree; it does the job :) There is an equivalent for IE: http://www.blunck.info/iehttpheaders.html Enjoy, Jon Woodchuck wrote: GB Developer, thanks so much for your suggestion, Live HTTP Headers is awesome! and my hunch was correct. the problem is Tomcat 5.5 does not produce any

Re: can a context log to windows event log?

2005-07-06 Thread Jon Wingfield
log4j has an appender which can write to the Event Log http://logging.apache.org/log4j/docs/api/index.html http://jakarta.apache.org/tomcat/faq/logging.html HTH, Jon Mark wrote: Is it possible for only one context to log to the Windows Event Log? What I want is for logs for the tomcat

Re: can a context log to windows event log?

2005-07-06 Thread Jon Wingfield
to only place audits from one context in the Event Log, not all of Tomcat's audits. On 7/6/05, Jon Wingfield [EMAIL PROTECTED] wrote: log4j has an appender which can write to the Event Log http://logging.apache.org/log4j/docs/api/index.html http://jakarta.apache.org/tomcat/faq/logging.html HTH, Jon

Re: Implementing my own realm

2005-07-05 Thread Jon Wingfield
We've implemented our own realm. The step's are quite easy: 1) Implement your custom Realm, we subclassed RealmBase. 2) compile your Realm class with catalina.jar in the classpath 3) jar up your Realm class and any helper classes 4) deploy realm jar to server/lib The only thing you really need

Re: [OT] Sharing session with manual jsessionid

2005-06-24 Thread Jon Wingfield
The jsessionid would have to be a path parameter not a url parameter (append prefixed with a semi-colon rather than a question mark). There was a thread last week called isRequestedSessionIdFromURL() returns false which discussed what happens when the id is both in the url and a cookie: the

Re: [OT] Sharing session with manual jsessionid

2005-06-24 Thread Jon Wingfield
. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: 24 June 2005 15:13 To: Tomcat Users List Subject: Re: [OT] Sharing session with manual jsessionid The jsessionid would have to be a path parameter not a url parameter (append prefixed with a semi-colon rather than

Re: Version issue in coding

2005-06-23 Thread Jon Wingfield
+1 on dev matching uat and production environments as closely as possible. As to the issue: IIRC the JDTCompiler shipping with 5.5.9 does not support J2SE 5 features in jsp scriptlets. This may be your problem. Jon Mark Benussi wrote: Well without wishing to sound petty Your

Re: New user, help!

2005-06-22 Thread Jon Wingfield
You need some JkMount directives to tell Apache which requests to forward to Tomcat. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html Jon Katherine Faella wrote: I am a new user of Apache and of Tomcat. I am using a Redhat AS 4.0 system. I am running Apache V2.0.54

Re: isRequestedSessionIdFromURL() returns false

2005-06-16 Thread Jon Wingfield
Something like this maybe: String url = request.getRequestURL().toString(); if (url.indexOf(jsessionid)-1 url.indexOf(request.getRequestedSessionId())-1) { // do redirect } Jon Michael Jouravlev wrote: If both methods return true, they would identify the first request after session

Re: Getting DBCP Exception

2005-06-14 Thread Jon Wingfield
Ajay, That's a mySQL error message. In the jdbc url you can add parameters to automate reconnection: extract-from-doco autoReconnect should the driver attempt to re-connect if the connection dies? (true/false) - false maxReconnects if autoReconnect is enabled, how many times should the

Re: JMX implementation - Tomcat 5.0.28

2005-06-07 Thread Jon Wingfield
That's because it's hardcoded to look for jmx.jar. One jar, singular. Sitting on my local dev machine I've got a jmx.jar which is a concatenation of mx4j.jar and mx4j-tools.jar. It's a bit horrible but it works. There are other ways to do it: 1) Add your jars to the bootstrap classpath by

Re: AW: Logging the HTTP headers

2005-06-03 Thread Jon Wingfield
You can also just watch these on the fly with browser plug-ins: IE: google for ieHTTPHeaders Mozilla/FireFox: http://livehttpheaders.mozdev.org/index.html Both have been very useful to us. Jon Bernhard Slominski wrote: Hi Cristi, they are in the Apache Logfile anyway, why do you want to log

Re: error-page not catching errors? Tomcat 4.1.31

2005-05-26 Thread Jon Wingfield
You should check tomcat's logs to see if there are any warnings. The last error-page def'n is invalid. It should be: error-page exception-typejava.lang.Exception/exception-type location/error.jsp/location /error-page Maybe tomcat is ignoring all the error-page definitions due to the

Re: sending redirects to relative/absolute URLs

2005-05-20 Thread Jon Wingfield
Section 14.30 of the http spec. rfc2616 http://www.faqs.org/rfcs/rfc2616.html Jon Angelov, Rossen wrote: Len, Can you point me a place where I can read about these HTTP requirements? I thought this might be the case but I couldn't find anything helpful online. Probably didn't search enough.

Re: Tomcat banner

2005-05-17 Thread Jon Wingfield
The ability to change the Server header in a filter depends on the connector. The Coyote connector uses the response.addHeader(..., ...) variant so you get your custom header AND coyote's: HTTP/1.1 304 Not Modified Server: IMP/4.1 Date: Tue, 17 May 2005 08:54:10 GMT Server: Apache-Coyote/1.1 A

Re: [Slightly OT] CLASSPATH variable in catalina.sh

2005-04-07 Thread Jon Wingfield
I don't think ${catalina.home}/common/classes/log4j.properties is a valid classpath element. An excerpt from the java tools doc says: How the Java Launcher Finds User Classes: User classes are classes which build on the Java platform. To find user classes, the launcher refers to the user class

Re: [Slightly OT] CLASSPATH variable in catalina.sh

2005-04-07 Thread Jon Wingfield
2 access.err access.out to be useful for debugging security issues. J Jon Wingfield wrote: I don't think ${catalina.home}/common/classes/log4j.properties is a valid classpath element. An excerpt from the java tools doc says: How the Java Launcher Finds User Classes: User classes are classes which

Re: error-page in web.xml and cache-control

2005-04-06 Thread Jon Wingfield
Sounds like the message IE gives when you hit back to a page served in response to a POST request. http://theserverside.com/news/thread.tss?thread_id=28366 http://theserverside.com/news/thread.tss?thread_id=29758 Anto Paul wrote: On Apr 6, 2005 1:46 PM, Pawson, David [EMAIL PROTECTED] wrote: I'm

Re: Overriding the browser language setting?

2005-03-21 Thread Jon Wingfield
One solution would be to map a Filter to whichever URLs you wish to override the browser settings. In the Filter wrap the request, using a sub-class of javax.servlet.http.HttpServletRequestWrapper, before passing the request to the rest of the chain. In your wrapper sub-class override the

Re: Servlet pops up as download

2005-03-17 Thread Jon Wingfield
Mozilla doesn't understand how to deal with wml. But you can get a plug-in: http://wmlbrowser.mozdev.org/ Nick Wolters wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD

Re: Trouble with JDBC (I need a little help)

2005-03-16 Thread Jon Wingfield
It's a NullPointerException causing all your woes. In the Connect method of DBConnection you are assigning to a local variable of type Connection instead of the instance variable. The instance variable is always null, which causes issues in the QueryDataBase and TotalRows methods. The code as

Re: Servlet Streaming file to client: Can't override file name

2005-03-14 Thread Jon Wingfield
What happens in FireFox if you do this: response.setHeader(Content-Disposition, attachment; filename=\ + theFile.getName() + \); The relevant spec is here: http://www.ietf.org/rfc/rfc2183.txt And for the definition of 'value' it references: http://www.ietf.org/rfc/rfc2045.txt The filename

Re: R: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Jon Wingfield
Tomcat doesn't pick up CATALINA_OPTS when run as a service. The arguments for the service are held in the registry. More details here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/windows-service-howto.html and in the archives of this list. HTH, Jon PS: you should still profile your app, though

Re: Very Straneg problem with MySQL-Connector

2005-02-24 Thread Jon Wingfield
Have you got the right permissions set up in the database? log into mysql. switch to the mysql database and look in the user table. You'll need to have an entry for host=monkinetwork, user=root. If you don't refer to the mysql admin docs for assigning privileges:

Re: Tomcat IE on a stand-alone PC

2005-02-08 Thread Jon Wingfield
I work with a similar setup when I'm at home. It should all be fine. Check the File menu in IE. Does the Work Offline item have a tick next to it? If so, click it and then hover over the link again. Should be available. Jon Clyde, Judy, Robert Kate Thomson wrote: Hi, I have Tomcat 4.1.12

Re: bug? invalid url-pattern - 'schemas/content.xsd'

2005-01-20 Thread Jon Wingfield
What about a leading slash? Giving a mapping of: /schemas/content.xsd Jon Robert Koberg wrote: Caldarale, Charles R wrote: From: Robert Koberg [mailto:[EMAIL PROTECTED] Subject: Re: bug? invalid url-pattern - 'schemas/content.xsd' sevlet-mapping /sevlet-mapping Do you really have sevlet in the

Re: TC Drops bytes when client uses Chunked Encoding AND specifying Content-Length at the same time.

2005-01-06 Thread Jon Wingfield
Section 4.4 of rfc2616 (HTTP1.1 spec) has rules for message-length processing. Rules 2 and 3 seem most pertinent. extract 2.If a Transfer-Encoding header field (section 14.41) is present and has any value other than identity, then the transfer-length is defined by use of the chunked

Re: New Babie query - pls pls help me

2004-12-13 Thread Jon Wingfield
Argh. Triple hijack! This thread started as JSP expressions are displayed as string, became Do not allow browsing the root directory to tomcat, then problem starting tomcat 5.5/jdk1.3.1_11 and now New Babie query - pls pls help me. For the sake of the archives and those of us using

[OT] Re: wrong time in Java Applications to my location (new Date())

2004-11-18 Thread Jon Wingfield
The default timezone of a Sun JVM is determined by user locale settings. If the runtime can't determine a sensible timezone from those it defaults to GMT, which is 3hrs off from Brazilia time, i think. Looking at the source of TimeZone it uses the following system properties: user.timezone

Re: Sessions on restart

2004-11-18 Thread Jon Wingfield
Yep. Read the docs more carefully ;) The activation/passivation methods are called on objects that implement the listener AND are attributes of the session to be activated/passivated. Tomcat works as Yoav described. HTH, Jon Mark O'Driscoll wrote: Well, as you can see my listener implements this

Re: Use of Referer header

2004-11-11 Thread Jon Wingfield
Also from Section 14.36 of rfc2616: extract The Referer field MUST NOT be sent if the Request-URI was obtained from source that does not have its own URI, such as input from the user keyboard. /extract So you can't rely on it being present. Shapira, Yoav wrote: Hi, But I have 2 questions: 1.

Re: What's a sealing violation please?

2004-11-02 Thread Jon Wingfield
It's part of the core java security model. If a package is sealed within a jar then packages of the same name cannot be defined in another jar, or elsewhere on the classpath. Within the manifest file of the jar file which is being loaded by your putpr servlet you'll probably have a couple of

Re: can not run a servlet that generates a pdf

2004-11-02 Thread Jon Wingfield
You are calling getWriter in your catch clause after you have already called getOutputStream. That's illegal. You could set up an error page in web.xml to report the exception instead of catching it. Jon Lina MarĂ­a Rojas Barahona wrote: Hello: I am trying to write a PDF using a servlet in

Re: SSL on tomcat breaks file download

2004-11-02 Thread Jon Wingfield
Archives: http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2 Jon Dobson Paul L Contr OO-ALC/LGFBR wrote: I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF.

Re: Fw: Internet Explorer Bug under SSL Connection

2004-10-18 Thread Jon Wingfield
Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 15, 2004 9:57 AM Subject: Re: Internet Explorer Bug under SSL Connection Yep. This comes up every so often on the list. Whenever IE downloads content we change the Pragma response header

Re: Servlet caching?

2004-10-15 Thread Jon Wingfield
One thing you might want to check is that whatever PrintService SPI implementation is looking up your printers doesn't cache the result for the lifetime of the JVM. Does your command line app show new printers and then exit? If so, you might want to change it so you can: 1) list the printers 2)

Re: Internet Explorer Bug under SSL Connection

2004-10-15 Thread Jon Wingfield
Yep. This comes up every so often on the list. Whenever IE downloads content we change the Pragma response header to be public instead of no-cache: String userAgent = request.getHeader(user-agent); if (response.containsHeader(Pragma) userAgent!=null

Re: method level synchronization doesn't work

2004-09-30 Thread Jon Wingfield
I'd be surprised if synchronization was broken. Given one assumption I think I can explain what you are seeing. Assumption: The two concurrent requests are handled by two different instances of a jsp servlet. If there are two instances then each request will be able to sucsessfully obtain the

Re: cannot deploy the war file..Tomcat 4.1.30 --- please suggest...

2004-09-28 Thread Jon Wingfield
== -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 10:59 AM To: Tomcat Users List Subject: Re: cannot deploy the war file..Tomcat 4.1.30 --- please suggest... Ok, wait a minute. Have

Re: Tomcat Problems - Any help is appreciated

2004-09-16 Thread Jon Wingfield
Suddenly? ;) The error message tends to imply there is no DOCTYPE (at all) in one of your web.xml files. The parser fails when validating the doc with this rather strange error message. HTH, Jon Wilson, Allen wrote: Hello... I am running 4.1.18 and I suddenly started having problems with

Re: IE6 and download problem using tomcat java servlet

2004-09-14 Thread Jon Wingfield
IE feels the need to cache the content before saving it to the desired location. You probably have some headers in the response designed to stop caching. You could comment in the RequestDumperValve to confirm this. Add to your code: response.setHeader(Pragma, public); We saw similar problems

Re: Can't get servlet to work on tomcat5.0.x.

2004-09-08 Thread Jon Wingfield
You need a servlet-mapping for your servlet. The Invoker servlet, which gives you a configuration shortcut, has been disabled since Tomcat 4.1.12. http://jakarta.apache.org/tomcat/faq/misc.html#invoker nyhgan wrote: Hi, I finished the apach2 and tomcat5.0.27 integration today, The JSP is

Re: JSP WhiteSpace

2004-08-23 Thread Jon Wingfield
I've used a Filter to strip out redundant whitespace from text/html output. I wrapped the ServletResponse so that a custom ServletOutputStream filters out empty and recurring linefeeds. Works pretty well. As for mod_gzip, I would be very surprised if it didn't respect the Accept-Encoding

Re: docBase attribute in context element doesn't recognize c$

2004-08-23 Thread Jon Wingfield
You may want to watch the status of the following bug: Hi, There's a known escaping issue there, http://issues.apache.org/bugzilla/show_bug.cgi?id=28219. Yoav Shapira Millennium Research Informatics HTH, Jon Sun House wrote: Chuck , YOU ARE THE MAN Escaping the dollar sign doesn't

Re: How to write a Valve that can inspect the HTTP Body, without damaging the InputStream?

2004-08-23 Thread Jon Wingfield
Can't you use a java.io.PushbackInputStream? You could write a Filter instead of a Valve. In the Filter wrap the ServletRequest and provide a custom ServletInputStream which uses the PushbackInputStream around the real ServletInputStream. Once security checks have passed you can push back the

Re: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Jon Wingfield
If you're using 4.1.x you can place a context-name.xml file in the webapps (appBase) directory. It contains the Context element that would have gone in server.xml. The custom Realm classes still need to be in the common classloader.

Re: explorer can't open protected files but mozilla can

2004-08-18 Thread Jon Wingfield
This has come up several times recently. It's all to do with how IE handles content. It seems, whenever a plug-in is used (excel, word, acrobat etc) IE has to download the content to its cache before the plug-in can be passed the content. So, when content is served from a protected area Tomcat

Re: security-constraint in web.xml

2004-08-16 Thread Jon Wingfield
Not sure you can do this with Tomcat alone (but would be happy to be shown the error of my ways). This is because every ssl connection uses the same SSLSocketFactory configuration irrespective of requested URI. The mod_ssl module for Apache has support for this type of config, though:

Re: Tomcat 4.1.30 adding no-cache to http headers

2004-08-13 Thread Jon Wingfield
- Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 12, 2004 6:09 AM Subject: Re: Tomcat 4.1.30 adding no-cache to http headers Yep. Tomcat (reasonably) adds these headers when the requested url is within a security constraint

Re: Tomcat 4.1.30 adding no-cache to http headers

2004-08-12 Thread Jon Wingfield
Yep. Tomcat (reasonably) adds these headers when the requested url is within a security constraint defined within the web.xml. In all places on our site where pdf, excel, word docs etc can be downloaded we have the following code: final String userAgent = request.getHeader(user-agent);

Re: Tomcat error

2004-08-04 Thread Jon Wingfield
The 49.0 is a magic number within the class bytecode. This type of error typically means the class was compiled using a newer version of the jdk than the runtime that is interpreting the bytecode. So, did you, say, compile the lawSearch class using jdk 1.5 but are running Tomcat against jdk

Re: Mysterious null pointer exception

2004-07-29 Thread Jon Wingfield
Your instance variable conn will always be null. In your init method you are assigning the result of the ds.getConnection() to a local variable. Change it from Connection conn = ds.getConnection(); to conn = ds.getConnection(); and you may be ok. Of course, conn may also

Re: Rewriting URLs in Tomcat

2004-07-29 Thread Jon Wingfield
sendRedirect(...) tells the browser to use a resource in a different location. That location can be same webapp, different webapp, different server. forward(...) is for the same server only. In context: servletContext.getRequestDispatcher(path).forward(...); Out of context:

Re: tomcat hangs, top displays 99%

2004-07-08 Thread Jon Wingfield
Just a thought. Does your error page also have header.jsp included? Have you got yourself into an infinite loop of Session already invalidated IllegalStateExceptions? Jon Hans Wichman wrote: Hi, while stresstesting my application using tomcat 4.1.29, oracle, dbcp connection pooling and a

Re: Tomcat logging and the referer

2004-05-28 Thread Jon Wingfield
Extract from the HTTP spec: The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard. http://www.w3.org/Protocols/rfc2616/rfc2616.txt So unless someone links to your index page you'll probably never get a

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Jon Wingfield
An invocation of a Tomcat Valve gives you a Request object. This is a facade to a ServletRequest, which you can access via the getRequest() method. You could set your info object as an attribute on the ServletRequest. This should then be visible to your filter.

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Jon Wingfield
://web.comlab.ox.ac.uk/oucl/research/areas/softeng/eWLM/ Cheers, Rui On Fri, 21 May 2004, Jon Wingfield wrote: An invocation of a Tomcat Valve gives you a Request object. This is a facade to a ServletRequest, which you can access via the getRequest() method. You could set your info object as an attribute

Re: ClassCastException with own Principal interface and implementation

2004-04-22 Thread Jon Wingfield
This is probably a classloader issue. The Realm will load classes from the server classloader. Your webapp will also load the same classes in its own classloader. The two types of CrmPrincipal are not assignable so a ClassCastException results. Try placing the CrmPrincipal class in common/lib

Re: Tomcat does not start !

2004-04-20 Thread Jon Wingfield
Download the binary not the source zip: http://jakarta.apache.org/site/binindex.cgi If you execute catalina run instead of startup you'll see the error in the same shell. HTH, Jon [EMAIL PROTECTED] wrote: Hi, I have installed Tomcat on my windows machine and set the CATALINA_HOME and

Re: Where to set JAVA_OPTS

2004-04-07 Thread Jon Wingfield
No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon Giorgio Ponza wrote: [EMAIL PROTECTED] ha

Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Jon Wingfield
I may be way off but... I don't think http://myserver.com/portal maps to /portal/* ajp13 http://myserver.com/portal/ or http://myserver.com/portal/whatever.jsp probably will, though. Give it a go, may work, Jon Wilson, Allen wrote: Bill..thanks for the reply... I will read through the link you

Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Jon Wingfield
not know how to tell..when I check the running ports I see the 8009 port running but it does not hand to Tomcat -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 2:09 PM To: Tomcat Users List Subject: Re: Connecting the HTTP Server and Tomcat I

Re: Problem with UserTransaction reference within Servlet code.

2004-04-06 Thread Jon Wingfield
The answer's in the question ;) Tomcat is not a J2EE Server but an implementation of the Servlet Specification (which is but a part of the whole J2EE spec). Tomcat's JNDI lookups are in-process only. Need an open source J2EE container? Have a look at JBoss... Hassan Sajjad wrote: Hi Can anyone

Re: Problem with UserTransaction reference within Servlet code.

2004-04-06 Thread Jon Wingfield
/tomcat-4.1-doc/jndi-resources-howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all

Re: Problem with UserTransaction reference within Servlet code.

2004-04-06 Thread Jon Wingfield
And of course: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool Although I'm not sure how actively maintained Tyrex is these days. http://sourceforge.net/projects/tyrex/ Jon Jon Wingfield wrote: There is always a way ;) Saw

Re: Tomcat Java OutOfMemory Error

2004-04-06 Thread Jon Wingfield
JAVA_OPTS only works for standalone startup not as a service. Found this by googling. http://forum.java.sun.com/thread.jsp?thread=290568forum=33message=1211179 Solution is about six down and by user dfortae HTH, Jon shyam wrote: Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the

Re: Unix utils for Windows?

2004-04-02 Thread Jon Wingfield
http://www.cygwin.com/ I'm using grep, tail and scp on windows xp all the time :) I also like gVim on windows. http://www.vim.org/ Shaw, Laurence wrote: Does anyone know where I can find a workable version awk for Windows,( and for that matter most common [U}[Lin]ix utilities) that will run on

Re: Getting Context Parameters from server.xml

2004-03-25 Thread Jon Wingfield
If you had String name = config.getInitParameter(companyName); it might work ;) HTH, Jon Michael Jones wrote: Hello- I'm trying to store some values in my server.xml and then get them with my Servlet. I followed the instructions at:

Re: Getting Context Parameters from server.xml

2004-03-25 Thread Jon Wingfield
parameters to webapps. The Parameter tags within server.xml are related to Resources (Data Sources etc) and probably not what you want. Jon Jon Wingfield wrote: If you had String name = config.getInitParameter(companyName); it might work ;) HTH, Jon Michael Jones wrote: Hello- I'm trying

Re: tomcat4.1 for windows,pl

2004-03-24 Thread Jon Wingfield
I just looked at the code you posted. I think it's a NullPointerException within line 33 of your LoginServlet int kode = Integer.parseInt(request.getParameter(kode)); This will throw an NPE if the kode parameter is not set... Is your MIDLet TextField empty when you get this error? If not, check

Re: webapps\ROOT\WEB-INF\classes

2004-03-10 Thread Jon Wingfield
I'm fairly certain classes deployed to web-app\WEB-INF\classes have to be in packages. So your Fruit class should be deployed to web-app\WEB-INF\classes\com\stevensons if the Fruit class is in the com.stevensons package. In your jsp you also MUST import the class you want to use. eg: %@ page

Re: The purpose of WEB-INF\classes ?

2004-03-02 Thread Jon Wingfield
WEB-INF/classes takes precedence over WEB-INF/lib in the servlet spec: 2.3fcs, section SRV.9.5 Directory Structure. If WebLogic 6.1 behaves differently then it's another spec violation ;) Jon Justin Ruthenbeck wrote: To you (the end-user), there's no purpose for it other than convenience. One

Re: using jar files in place of class files

2004-02-23 Thread Jon Wingfield
Also make sure that the user running tomcat has write permissions to $CATALINA_TMPDIR. That's where the JVM does its temporary io work. HTH, Jon Evgeny Gesin wrote: I set ownership tomcatUser:tomcatUser and permission 770 to the entire path $CATALINA_HOME/webapps/app/WEB-INF/lib, including jar

collated phone profiles site

2004-02-11 Thread Jon Wingfield
http://w3development.de/rdf/uaprof_repository/ This list is not exhaustive bay any means. I will talk you through what the data means and what other information we need to gather. Jon - To unsubscribe, e-mail: [EMAIL

Re: collated phone profiles site

2004-02-11 Thread Jon Wingfield
oops. wrong list. Jon Wingfield wrote: http://w3development.de/rdf/uaprof_repository/ This list is not exhaustive bay any means. I will talk you through what the data means and what other information we need to gather. Jon

Re: IOException while loading persisted sessions continued..

2004-01-30 Thread Jon Wingfield
Did you read as far as the NotSerializableException bit? ;) If you don't want to make MyLinks serializable but want Tomcat to serialize sessions you could (amongst other things) implement a HttpSessionActivationListener. Add this object to the session at the same time as your MyLinks object.

  1   2   3   >