You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Darren Lee Deliang <ju...@hotmail.com> on 2000/06/30 19:26:07 UTC

Memory violation

Hi guys, wonder if you can help one of my fellow programmers with this 
knocker:

her JSP app works fine but when she tries to click back and reuse the forms 
in her jsp and clicks submit button, this error message pops out and shuts 
down the tomcat server. her code is almost the same as mine but mine works 
fine.

message:

The instruction at "0x77f6coe6" referenced memory at "0x00000010". The 
memory could not be written.

i think she needs to flush something izzit?

Darren
Nanyang Poly School of Info Tech
Singapore
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Re: Since there's no FAQ...

Posted by Luc Saint-Elie <lu...@interpasnet.com>.
Le 12:26 30/06/00 -0400, Ken Overton a écrit:
>I have some absurdly simple questions.  Mostly they're the result
>of trying to get an existing application which was deployed
>under Jserver-Apache to work under a standalone Tomcat.
>
>Thus, the big problems are a) getting my classes to succesfully
>find their data files; and b) getting the HTML <servlet> references to
>class objects (a la "com.bar.foo.Thingy.Thinglette") to work.


Following is NOT the answer you look for as its for a standalone Tomcat 
install, but maybe it can be a good starting point


>1) What does tomcat understand it's working directory to be at
>startup?  Can that be specified somewhere?

For Tomcat standalone its (with distribution settings) 
<install-dir>\webapps\ROOT


>2) What does tomcat understand it's CLASSPATH to be at startup?  Can
>that be specified somewhere?

For 3.2 dev and Tomcat standalone : tomcat add at startup the content of 
<install-dir>\lib for the global CLASSPATH and the 
<install-dir>\webapps\name_of_the_webapp\web-inf\lib for each individual webapp

>3) In my binary distribution there was a conf directory with XML
>(server&web) and conf/properties files
>(tomcat.conf,tomcat.properties).  I removed tomcat.conf and
>tomcat.properties; is there a point to having them?

As far as I know, at startut Tomcat generate automatically a generic conf 
fig for Apache

+------------------------------------------------+
| Luc Saint-Elie                                 |
| email : luc@interpasnet.com                    |
+------------------------------------------------+
|  Java Server Side  Open Source technologies    |
|       http://www.interpasnet.com/JSS           |
+------------------------------------------------+


Re: Since there's no FAQ...

Posted by Alex Chaffee <gu...@edamame.stinky.com>.
...yes, there is:

http://jakarta.apache.org/faq/faqindex.html

http://www.jguru.com/jguru/faq/faqindex.jsp?topic=28150 is also
helpful (it's the Tomcat subtopic on my Servlet FAQ)

> 1) What does tomcat understand it's working directory to be at
> startup?  Can that be specified somewhere?

TOMCAT_HOME environment, and/or the parent of whatever bin directory
the tomcat.sh script was run from, and/or you can specify it

But the whole concept of "current durectory" is problematic in a
servlet engine, so you should always use absolute file paths in
servlets.

> 2) What does tomcat understand it's CLASSPATH to be at startup?  Can
> that be specified somewhere?

It's specified in tomcat.bat / tomcat.sh, plus it includes a variety
of directories and JARs from TOMCAT_HOME/lib and the webapp's lib and
classes directories, not to mention JSP and Servlet class directories.

What do you want to include?  A jar or a class?  Is it a system
library or your own code?  Is it global to all servlets, or just used
in your own servlet or your own webapp?

> 3) In my binary distribution there was a conf directory with XML
> (server&web) and conf/properties files
> (tomcat.conf,tomcat.properties).  I removed tomcat.conf and
> tomcat.properties; is there a point to having them?

I believe tomcat.properties and tomcat.conf are both obsolete.
Especially if you use mod_jk instead of mod_jserv.

tomcat-apache.conf is automatically generated by the tomcat engine,
and should be included into your apache config with a trivial
"include" directive.

> I had high hopes for the XML config-files, but I'm underwhelmed 
> with the apparent options in them. Has anyone written complete 
> documentation  for server.xml and web.xml?  Maybe I'm just looking 
> in the wrong place (i.e., at the tomcat site).

web.xml is documented in the Servlet Spec -- see Sun's site
java.sun.com/products/servlet

server.xml is self-documenting, and getting better all the time,
though it's still pretty sparse, I know.  Part of the problem is the
options themselves are in development; that's kind of the point of the
file, that it allows us to easily add options to Tomcat.


-- 
Alex Chaffee                       mailto:alex@jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/