RE: memory allocation

2001-06-14 Thread Warren Crossing
um.. i'm pretty sure that it doesn't matter. the system garbage collector MAY reap memory for objects that are set to null. remember once the service method executes all the method variables ( al & it ) go out of scope and are elegible for gc. if you had static or class level members using <%! %

RE: installation problems.

2001-06-12 Thread Warren Crossing
you would of got a solution if you searched the mailing list by now.. hope you have. if not the problem lies in jaxp classes only allowed to come from one single source ( jar ). the classloader freaks coz its got tooo.. the trick is to put jaxp1.1011.101.10 into a dir loaded by another classloade

RE: JDBC (and other) Realm problem on Tomcat 3.2 with Apache 1.3

2001-06-12 Thread Warren Crossing
hi, obviously jdbc is really cool because its easy to add users and groups to your website, instead of manually editing the file or eeek.. automatically editing the file.. also realms are kinda like weblogix [realms] so you could maybe use ldap or trxn system instead of jdbc. regards, warren

RE: An opensource (apache style license) file upload servlet

2001-06-12 Thread Warren Crossing
oreilly sucks the kumara anyway because you end up with a file?? the deal is that you (really) have (really) a mulitpart mime encoded request possibly containing binary content. so if you are.. and i am.. requiring anything useful like a binaryinputstream to the content.. your out of luck because

RE: where do i place my application ?

2001-06-08 Thread Warren Crossing
i know its all really confusing at first.. but if you want to master the j2ee spec then patience and learning is required.. i will give you two hints and the third is free advice.. 1) search this mailing list archives for information relatinf to /WEB-INF/lib & /WEB-INF/classes * web.xml & serve

RE: default page

2001-06-07 Thread Warren Crossing
Title: default page hey chris,   it doesn't sound like your using tomcat java security.. but why dont you.. its simplish and allows you to protect areas of you website based on role and server path && file and database user names & passwords. also alows digesting a password.   just put th

RE: Importing Java code from mySQL

2001-06-07 Thread Warren Crossing
real quick dumb suggestion, can i pesudo code.. i know its a bit quick, but i'm gonna get fired if i dont finnish the next shopping cart =( servlet service method. dbconnection get resultset use request.getSomePath "/tmp" that i can lock with web.xml mk new file called sessionId.datetime.tmp.jsp

RE: Using include from a servlet

2001-06-06 Thread Warren Crossing
you'd only need to search the mailing list to find that out.. use the servlet api context.getRequestDispatcher().forward/.include ( request,response ) have a look at the javadoc api javax.servlet.http.ServletContext regards, warren. -Original Message- From: Zsolt Koppany [mailto:[EMAIL

RE: tomcat logging

2001-06-06 Thread Warren Crossing
hey, i thought tomcat had a combine logging mechanism see server.xml you'll get more than you bargain 4 if you try apache & mod_k & tomcat on windows ( just have a look at the list 2 c what i mean ) =) regards, warren -Original Message- From: Terence Kwan [mailto:[EMAIL PROTECTED]

RE: tomcat logging

2001-06-06 Thread Warren Crossing
mmm.. scott, if your running tomcat 3.2 or tomcat4.0 you have various control over the logs that tomcat produce.. however i think stdout is a java & os thing and tomcat doesn't replace this ( correct me i'm probably wrong ) the best procedure for you is to java tomcat %1 > std.out >2&1 ( run jav

RE: JSP files not working after upgrade

2001-06-06 Thread Warren Crossing
eee.. check the working directory for the jsp source file that its trying to compile and balking on.. ok.. cat the file.. does it repeat a particular line over and over and over and over and over and over ( you get the idea ) ?? -Original Message-From: Bob Law [mailto:[EMAI

RE: How to control the http reponse code from Servlet ?

2001-06-06 Thread Warren Crossing
response.sendResponse(); look at the javadoc api for javax.servlets.http -Original Message- From: Mandar Joshi [mailto:[EMAIL PROTECTED]] Sent: Thursday, 7 June 2001 10:34 AM To: [EMAIL PROTECTED] Subject: How to control the http reponse code from Servlet ? Hi, My application demands

topics 4 newsgroup/mailing list 4 tomcat/catalina

2001-06-06 Thread Warren Crossing
i have noticed some familiar topics that arise on this mailing list and have grouped them under the following, please feel free to contribute. deployment/tomcat/catalina/runtime/configuration ajp,performance tuning, server.xml config, virtual hosting classpath. catalina operating systems, iis, ne

FW: java.net.MalformedURLException: unknown protocol: jndi

2001-06-04 Thread Warren Crossing
5 June 2001 11:21 AM To: Warren Crossing Subject: Re: java.net.MalformedURLException: unknown protocol: jndi Okay, there's a jndi URL context factory in the COS naming package, but that's not compatible with the jnp provider. Here, from cosnaming-1.2.1/lib/providerutil.jar: 0

RE: Netscape and Tomcat

2001-05-31 Thread Warren Crossing
check that netscape is accepting cookies correctly if so required, manually delete cookies.txt ( NS 4 ) -Original Message- From: Stephen Oakes [mailto:[EMAIL PROTECTED]] Sent: Friday, 1 June 2001 1:47 PM To: '[EMAIL PROTECTED]' Subject: Netscape and Tomcat Does anybody know of any reas

RE: Still Have SSL problems

2001-05-28 Thread Warren Crossing
it should jsut use keytool that comes with the jdk.. have a look at the tools java doc. i think that netscape object signing uses netscapes keystore. but java ( jdk ) also has a keystore and tool. hope this helps. -Original Message- From: Todd Sussman [mailto:[EMAIL PROTECTED]] Sent: Tue

RE: out of ideas on an error

2001-05-28 Thread Warren Crossing
Hey nullpointers happen all the time look at the stack trace and c if you can work out whats wrong.. adcl loads the class at line 518 .. check it out what could be null?? the byte stream.. wouldn't yu xpect a IOException ?? resolveClass is inherited and works pretty damn well.. but what co

RE: Help Needed

2001-05-22 Thread Warren Crossing
Maybe you can write to the file wil java.io.FileOutputStream, not nice to code really. & would apache even listen to a runtime modification of this value? Probably just best to pick a value and run with it. -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: We

RE: IDE for tomcat

2001-05-22 Thread Warren Crossing
hey how are you =) i think forte netbeans sun for java community edition is pretty good at jsp servlet dev with tomcat.. but you need a sixtybillion-gigaflop supercomputer to get it running smoothly ( its a bit of a resource hog ) but its features really rule! l8r. -Original Message- Fr

RE: ===>Session Question<===

2001-05-22 Thread Warren Crossing
hi anil, i hope i've got your intention, you want to pass an object graph from servlet1 to servlet2. tomcat provides session management through request.getSession().setAttribute() these objects are accessible for the duration of the session. If you only want the object graph to live for the lif

RE: Help Needed

2001-05-22 Thread Warren Crossing
embedding tomcat mean something like the other application controls the configuration and startup of tomcat.. the main benifit is that it allows jboss & tomcat to run in the same jvm which makes things faster. but on the whole you wouldn't need to provide this embedding tomcat stuff.. it just co

RE: resultset Question

2001-05-22 Thread Warren Crossing
did you use rs.next(); ?? you have to do this first to move the cursor to the first record.. makes sense. regards, warren. -Original Message- From: Manish [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 22 May 2001 9:00 AM To: [EMAIL PROTECTED] Subject: Re: resultset Question Kevin Fonner

RE: java.lang.NullPointerException....Helllloo PLZ HELP me

2001-05-18 Thread Warren Crossing
can you trouble shoot the null pointers.. i mean is pagecontext initialized.. do a system.out.println on it what the the exact lines of code the npe comes from.. are you using jikes to compile jsp or default javac?? man my boss is gonna kill me 2.. -Original Message- From: Naeem Malik

RE: mailing list or news group??

2001-05-17 Thread Warren Crossing
maybe they should keep the tomcat-user list and add a tomcat-luser list =D geee.. tomcats' such a funny webserver it never falls over. ( lol ) no, sorry phew.. what do they put in the water round hear =D -Original Message- From: Brian Murray [mailto:[EMAIL PROTECTED]] Sent: Friday, 18 May

RE: Has anybody resolved no-refresh of servlets?

2001-05-17 Thread Warren Crossing
yeah funny, it does work in 3 with "RELOAD NOW!!" is the only indication of a classloader reload. although i have found in 4 it only works with classes being updated in the WEB-INF classes dir and not with jars in the WEB-INF lib dir. if you set debug to 99 in the web.xml file you should get a m

RE: What's a sealing violation?

2001-05-17 Thread Warren Crossing
search through some of the tomcat archives.. basically their really annoying classloader problems.. when it tries to load a jar library and its already loaded. you can add a line to the manifest of the jar file.. but like i said search this archive.. theres heaps of stuff about them. regards, wa

RE: start tomcat server remotely --Help needed

2001-05-17 Thread Warren Crossing
hey use putty.. its really cool & most of us use it cause its just a rad tool! http://www.chiark.greenend.org.uk/~sgtatham/putty/ its really easy to download and easier to run.. just point & click =) -Original Message- From: Alain RAVET [mailto:[EMAIL PROTECTED]] Sent: Thursday, 17 May

RE: Common (or combined) log format from a servlet/JSP?

2001-05-17 Thread Warren Crossing
It does produce the apache combined format in the access.log however.. tomcat 4 must use an extened combined ( commonly irregular ) format, a superset. awstats.sourceforge.net is a perl stats package, it doesnt like this extended format but it is open source so we can change it. sorry i know t

RE: Changing Catalina's naming port

2001-05-10 Thread Warren Crossing
look at the jnp.properties file in the conf directory. =) -Original Message- From: John Menke [mailto:[EMAIL PROTECTED]] Sent: Friday, 11 May 2001 9:21 AM To: tomcat Subject: Changing Catalina's naming port I am using the Turbine TDK that uses Catalina and I'm having problems with JNDI

RE: session.setMAxInactiveInterval()

2001-05-10 Thread Warren Crossing
dude =) you should use server side includes or forwards.. getServletContext().getRequestDispatcher().forward() regards, warren. -Original Message- From: teh j [mailto:[EMAIL PROTECTED]] Sent: Friday, 11 May 2001 9:35 AM To: [EMAIL PROTECTED] Subject: session.setMAxInactiveInterval()

RE: multiple servlet to 1 html page? Is it possible.

2001-05-09 Thread Warren Crossing
hey kev,   yep have a look at getServletContext().getRequestDispatcher("/servletB").include( request,response ) ;   regards,   wozza -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Thursday, 10 May 2001 9:44 AMTo: [EMAIL PROTECTED]Subject: multiple se

RE: Error whilst executing Tomcat on Windows 2000

2001-05-07 Thread Warren Crossing
hey ian. i think you might be trying to start tomcat on port 80 or port 8080, which will be used by iis, either shut down iis or change the port in the server.xml file. alternativley u can connect iis and tomcat but its probably too prone to problem.. regards, warren. -Original Message

RE: sessions

2001-05-07 Thread Warren Crossing
hi jason.. check the javax.servlet.HttpSession class javadocs.. you should be able to set the timeout using setTimeout( long ms ) don't try and use client-side cookie lifetimes to manage a server side state. hope this helps.. regards, warren. -Original Message- From: teh j [mailto:[EM

RE: Why does Internet Explorer think it is offline?

2001-05-07 Thread Warren Crossing
i've been activley deving servlets 4 bout.. hmm.. almost ?4? years??  & i agreed micro$oft internet exploder sux 4 open source development testing.. cross standard development is the call sign of a higher intellect!!   you should tell ie to connect to the lan for net connection.. then it'll

RE: Startup Tomcat

2001-05-07 Thread Warren Crossing
it sounds likes tomcats getting a HUP ( hung up ) signal.. you can start java with the "nohup" command or in the background by appending & to the command. ( or ctrl-z and then "bg" ) or "disown" pid.. make sure you issue exit when you logoff the console. fuck! are you sure you should be anywhere

AutoLogon J_Security_Check

2001-05-03 Thread Warren Crossing
hey all, i'm about to build a servlet class component that proactively & automatically ( without being prompted ) logs the user into servlet security and bypasses a browser request for j_security_check.. i plan to achieve this by using; a static html page with a form on it a known dummy protect

RE: tomcat

2001-05-02 Thread Warren Crossing
run it on an e450   http://www.sun.com/servers/workgroup/450/   =) -Original Message-From: Hariy [mailto:[EMAIL PROTECTED]]Sent: Thursday, 3 May 2001 3:13 PMTo: [EMAIL PROTECTED]Subject: tomcat How to increase the speed of tomcat.

RE: JDBC Realm

2001-05-02 Thread Warren Crossing
j2ee web application security from a jdbc database -Original Message-From: Hariy [mailto:[EMAIL PROTECTED]]Sent: Thursday, 3 May 2001 3:13 PMTo: [EMAIL PROTECTED]Subject: JDBC Realm What is JDBC Realm.

RE: back button

2001-04-30 Thread Warren Crossing
you have to maintain server-side state so that a second confirm will not start on the server maybe unless the initial confirm failed.. yeah server side check!! -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 May 2001 7:02 AM To: [EMAIL PROTECTED] Subject: Re:

RE: core java <>

2001-04-29 Thread Warren Crossing
i think what you want is an executable .jar file i think it has the icon in the manifest.inf file and a main.class with public static void main ( str [] ).   pc workgroup.. fuck.. what sort of application are you building =) can you ask the dhcp server for a? list probably not.. um can y

RE: Wierd Casting Problem. Tomocat Bug?

2001-04-29 Thread Warren Crossing
Hi, I have experienced the same problem, in varying degrees of complexity.. I think it may be possible to trick java using Serialization & the serialVersionUID field in a class. the tool serialver displays the serialVersionUID of a class and this use of serialization is typically used in stream

RE: EJB's

2001-04-26 Thread Warren Crossing
jboss is pretty cool & powerful.. but can be more difficult to configure & operate.. -Original Message- From: unplug [mailto:[EMAIL PROTECTED]] Sent: Friday, 27 April 2001 11:36 AM To: [EMAIL PROTECTED] Subject: Re: EJB's Also jonas. I want to know whick one is better. People would like

RE: MySQL Driver Problem on Win 2k

2001-04-22 Thread Warren Crossing
sorry cant chat!! but add the .jar file to the /tomcat/server/lib directory.. its the classpath classloader location. -Original Message- From: Evdin Ursan [mailto:[EMAIL PROTECTED]] Sent: Monday, 23 April 2001 4:44 PM To: [EMAIL PROTECTED] Subject: MySQL Driver Problem on Win 2k Hi A

RE: multiple accounts

2001-04-22 Thread Warren Crossing
yeah brent, our developers have a script to stop and start and restart tomcat. but keep in mind to choose ports above 1024 on unix due to permission restricitions. um catalina is the webserver engine codename for tomcat.. ohh i dont really know. regards, warren -Original Message- From:

RE: multiple accounts

2001-04-22 Thread Warren Crossing
come closer and i will tell you all i know. i have all our developers running their own process instance of tomcat, its a load but you know its up and down all day so i figure that the best way.. 1 tomcat per developer.. /usr/local/tomcat3.2/bin/tomcat -f ${USER_HOME}/conf/server.xml start /usr/l

RE: multiple accounts

2001-04-22 Thread Warren Crossing
hi, i guess you create multiple hosts running on seperate ports. probably best for tomcat 4. in tomcat 3.2 you can specify a -f switch at command line to point tomcat to the server.xml file. regards, warren. -Original Message- From: Brent and Maria [mailto:[EMAIL PROTECTED]] Sent: Mon

RE: AutoRefreshing of apps

2001-04-22 Thread Warren Crossing
log writes saying things like 'myservlet was modified' " thanx again for making me feel completely senile. -Original Message- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: Monday, 23 April 2001 12:57 PM To: Warren Crossing Subject: RE: AutoRefreshing of apps On

RE: AutoRefreshing of apps

2001-04-22 Thread Warren Crossing
hey Jeremy, I've been using tomcat 4.2 for the last 6 months. I am yet to see it reload a war or unload and reload a servlet. I'm have been through the yet to jump into the source code and see if its been disabled. I figure reloading is not part of the j2ee spec so maybe its fallen of priority.

RE: Where does System.out.println go under Tomcat

2001-04-18 Thread Warren Crossing
i reckon use log4j.. its a really good looking product! -Original Message-From: Sam Newman [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 18 April 2001 5:25 PMTo: [EMAIL PROTECTED]Subject: Re: Where does System.out.println go under Tomcat I would strongly suggest you don't use

RE: forcing load from server, not cache

2001-04-16 Thread Warren Crossing
disable client-side and proxy caching with response.setHeader("Cache-Control","no-cache"); tomcat should use the jsp-servlet in the workingdir.. i hope this helps. -Original Message- From: teh j [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 17 April 2001 3:15 PM To: [EMAIL PROTECTED] Subje

RE: db driver unavailable

2001-04-16 Thread Warren Crossing
i think the msql drivers should be available to the server classloader in /server/lib? hope this helps? read the classloader.html file in the source tree for heaps more info! warren. -Original Message- From: Shun-Luoi Daniel Fong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 17 April 2001 7

RE: stdout/err logging - how?

2001-04-11 Thread Warren Crossing
umm you could do something like append tomcat-start-command >> or &> logfile.name i think this gets stdout but stderr uses 2> or something.. i think its called redirecting output, i'm not sure.. but i think its really pathetitc that your not using logforge which is also an apache code license j

RE: servlet start-up

2001-04-09 Thread Warren Crossing
the load-on-startup child element of servlet in web.xml is documented and specified in the j2ee servlet stuff things.. -Original Message- From: Pradeep Kumar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 10 April 2001 5:08 PM To: [EMAIL PROTECTED] Subject: servlet start-up Hello group, I am

RE: NetDynamics and Tomcat

2001-04-09 Thread Warren Crossing
Title: NetDynamics and Tomcat can you increase the number of workers for the ejb service through the nd control panel? i mean it may not be performance issue with load and or requests but tuning the service may lead to discover the issue? -Original Message-From: Zhao, Zhipeng [

RE: Multiple sites on RequestController..

2001-04-08 Thread Warren Crossing
have a look at my posting "RE: How to set extension mapping" i'm not really that cool and don't know how to link to other email posts.. sorry! -Original Message- From: Christian Bjørnbak [mailto:[EMAIL PROTECTED]] Sent: Monday, 9 April 2001 4:28 PM To: '[EMAIL PROTECTED]' Subject: Multip

RE: Connecting to ms sql

2001-04-05 Thread Warren Crossing
hey, go to java.sun.com/products go to the jdbc site. they have a list of jdbc drivers. you might be better of using a jdbc odbc bridge from sun. l8r. -Original Message- From: Bahl, ankur [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 April 2001 4:09 PM To: '[EMAIL PROTECTED]' Subject: Conn

RE: simple way to spawn new threads in jsp?

2001-04-05 Thread Warren Crossing
hey, theres no ultimatley easy way.. but thank duke for inner classes.. so you can.. new Thread () { public void run () { boolean warren_rulz = true; do {

RE: How to reload library classes?

2001-04-05 Thread Warren Crossing
tomcat only reloads classes that are in WEB-INF/lib/ or WEB-INF/classes where the reloadable is set to true in web.xml the classes cannot be in the classpath look at classloader.html in the src tree documentation ?? anyone can write some! -Original Message- From: Felix A. Milovanov [mai

RE: forward question

2001-04-04 Thread Warren Crossing
Title: forward question have a quick look at web application deployment structure it should be something like     www     bill     majicJsp.jsp     WEB-INF     classes     com     wgblackmon     UserProcess   then add a context tag to your serv

RE: How to set extension mapping

2001-04-04 Thread Warren Crossing
and when i made request for my specified extension ".xyz", its asking me to download that file, and the whole file is downloaded. Any Clue ??? Regards, Lomesh... -Original Message- From: Warren Crossing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001

RE: NoClassDefFoundError

2001-04-03 Thread Warren Crossing
gt; # > # > # I get > # JAVACMD is /usr/jdk1.3/bin/java > # > # Apparently, it doesn't find the > # /usr/jdk1.3/lib/tools.jar that has the > # sun.tools.javac.Main. But, tools.jar is in its > # classpath. > # > # Thanks! > # > # Warren Crossing wrote: > # &

RE: How to set extension mapping

2001-04-03 Thread Warren Crossing
ok.. quickly.. add a servlet myRedirectServlet myRedirectServlet com.nowhere.myRedirectServlet *.xyz myRedirectServlet the in the servlet ( pseudo code ) void service(ServletRequest req, ServletResponse res) { String jsp

RE: NoClassDefFoundError

2001-04-03 Thread Warren Crossing
dk1.3/lib/tools.jar that has the # sun.tools.javac.Main. But, tools.jar is in its # classpath. # # Thanks! # # Warren Crossing wrote: # > # > hey it sounds like your tomcat is using the jre not the jdk! check the # > JAVA_HOME value tomcat startup up script is using by putting # a

RE: Session problem -- sessions being recreated, browser related?

2001-04-03 Thread Warren Crossing
check ie.. it stores all cookies in a folder called cookies somewhere each cookie in a seperate file.. however theres an index.dat .. no idea what this does but you could delete it ( backup!! ) and all the cookies.. ( ??sorry?? but i've had this "general cookie issue" with netscrap and ie. ) chu

RE: NoClassDefFoundError

2001-04-03 Thread Warren Crossing
hey it sounds like your tomcat is using the jre not the jdk! check the JAVA_HOME value tomcat startup up script is using by putting an echo command in the script.. -Original Message- From: Hossein Tahani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 12:08 PM To: tomcat users Su

java.net.MalformedURLException: unknown protocol: jndi

2001-04-02 Thread Warren Crossing
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. deta