Grokbase
Topics Posts Groups | in
x
[ help ]

- (a...@webcapacity.com)

Profile | Posts (14)
1) - Re: AW: redirect problems?
| +1 vote
yeah, I have returns, why does this do this, there is no documentation in the JSP spec saying i...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
yeah, I have returns, why does this do this, there is no documentation in the
JSP spec saying i have to do returns after a redirect. Is this a bug in tomcat?


On Mon, 30 Oct 2000, you wrote:
> Do you make a return after the sendRedirect?
> ...
> rresponse.sendRedirect("/checkout2.jsp");
> return;
> ...
>
> Otherwise, the output of checkout2.jsp is added (and not a 'new' output).
>
> Hint: Call sendRedirect before you make any output!!!
>
>
> -----Ursprüngliche Nachricht-----
> Von: jim [email protected: 1...@novagate.com]
> Gesendet am: Freitag, 27. Oktober 2000 18:41
> An: [email protected: tomcat...@jakarta.apache.org]
> Betreff: redirect problems?
>
> Hi,
> We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird problems.
>
> 1. checkout.jsp (FORM collecting new user info)
>    - POSTs to checkout_eng1.jsp
>
> 2. checkout_eng1.jsp
> - adds user from #1 and does a response.sendRedirect("/checkout2.jsp");
>
> 3. checkout2.jsp shows the next FORM asking for mailing address information
>
>
> Weird Symptom #1
> ------------------
> On any version of Internet Explorer (never on netscape) the POST to step #2
> above fails and up comes this IE error "cannot find server or DNS error"
> which
> leads me to beleive that the response.sendredirect() is doing something odd,
> maybe not sending back the correct http location header or something
>
> If you immediatly hit the browsers back button and re-submit the form, it
> then
> works with no problem and as expected. This only seems to occur the first
> time
> submitting forms to a page that re-directs after an operation.
>
> Weird Symptom #2
> ----------------
> occasionally on Internet Explorer AND Netscape.
> User submits info from form #1 above (checkout.jsp), their information is
> added
> to the database and they are redirected to checkout2.jsp, HOWEVER what is
> shown
> on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND the
> expected contents of checkout2.jsp with a visible HTTP response header
> printed
> out in between checkout.jsp's contents and checkout2.jsp's contents ALL on
> visible on the URL checkout2.jsp................
>
> Anyone have any ideas? I tried checking the bug database but it appears to
> be
> down.
2) - RE: Help signing off
| +1 vote
SHUT UP ALREADY! > list member!...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
SHUT UP ALREADY!


On Wed, 09 Aug 2000, you wrote:
> Sorry, is this better? The question still stands....
>
> How can you filter the email though when the sender
> isn't [email protected: tomcat...@jakarta.apache.org], but each individual
> list member!
3) - ant classpath
| +1 vote
When taking a build.xml from UNIX to Windows, are directory slash changes necessary? Also what is...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
When taking a build.xml from UNIX to Windows, are directory slash changes
necessary? Also what is the delimeiter in the JAVAC tag for classpath attribute?

: or ;

thanks
4) - Re: help!
| +1 vote
Its in web.xml, I now see that it IS loading the servlet. Next question a. I have a JSP page which...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Its in web.xml, I now see that it IS loading the servlet.
Next question

a. I have a JSP page which is calling a singleton class loaded by the
initialization below.

b. I keep getting a null pointer exception. Any ideas? Don't JSP and Servlets
and other classes access the same JVM?

thanks
-aaz


On Fri, 30 Jun 2000, you wrote:
> In what files are you putting this "<servlet>" entry?
> It should be in a web.xml file. Not in server.xml
> Just a guess...
> --- - <aaz@webcapacity.com> wrote:
> > Hi,
> > Can't seem to find an example, anyways, I have a
> > startup servlet that does not
> > appear to be starting on tomcat start. What is wrong
> > with the below?
> >
> >     <servlet>
> > <load-on-startup>1</load-on-startup>
> > <servlet-name>Init</servlet-name>
> >      
> > <servlet-class>org.cub.servlets.Init</servlet-class>
> >       <init-param>
> > <param-name>bootfile</param-name>
> >        
> >
> <param-value>/usr/local/apache/tomcat/webapps/cubdev/WEB-INF/bootstrap.xml</param-value>
> >       </init-param>
> >       <init-param>
> > <param-name>rootTag</param-name>
> > <param-value>ROOT</param-value>
> >       </init-param>
> >     </servlet>
> >
> >
> --------------------------------------------------------------------------
> > To unsubscribe, email:
> > [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> > For additional commmands, email:
> > [email protected: tomcat-user...@jakarta.apache.org]
> >
>
>
> =====
> Wyn Easton
> [email protected: wyn_e...@yahoo.com]
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> --------------------------------------------------------------------------
> To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
5) - help!
| +1 vote
Hi, Can't seem to find an example, anyways, I have a startup servlet that does not appear to be...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,
Can't seem to find an example, anyways, I have a startup servlet that does not
appear to be starting on tomcat start. What is wrong with the below?

    <servlet>
      <load-on-startup>1</load-on-startup>
      <servlet-name>Init</servlet-name>
      <servlet-class>org.cub.servlets.Init</servlet-class>
      <init-param>
        <param-name>bootfile</param-name>
<param-value>/usr/local/apache/tomcat/webapps/cubdev/WEB-INF/bootstrap.xml</param-value>
      </init-param>
      <init-param>
        <param-name>rootTag</param-name>
        <param-value>ROOT</param-value>
      </init-param>
    </servlet>
6) - more jsp help
| +1 vote
Hi again, I have 2 virtuals and need some help getting this right. I want my JSP to live with all...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi again,
I have 2 virtuals and need some help getting this right. I want my JSP to live
with all the normal website stuff in my apache document roots, and servlets in
the webapp subdirectories. However I am noticing that session vars I set in the
JSP pages in the apache docroot are NULL when referenced in the webapp/ tomcat
servlets etc. Below is my config.

Configuration:

In the General apache config
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Development:
----------------
apache document root = /docdev
ApJServMount /app ajpv12://localhost:8009/appdev
tomcat webapp = webapp/appdev

appdev.xml for its own tomcat instance

<Context path="/appdev" docBase="webapps/appdev" debug="0"reloadable="true" >
</Context>
<!-- to handle JSP files in the apache document root -->
<Context path="" docBase="/docdev" debug="0" reloadable="true" >
</Context>


Production
-------------
apache document root = /docprod
ApJServMount /app ajpv12://localhost:8007/appprod
tomcat webapp = webapp/appprod


appprod.xml for its own tomcat instance

<Context path="/appprod" docBase="webapps/appprod" debug="0"reloadable="true" >
</Context>
<!-- to handle JSP files in the apache document root -->
<Context path="" docBase="/docprod" debug="0" reloadable="true" >
</Context>

Does each tomcat "context" even in the same tomcat instance, maintain it own
session information? If so, how do I do what I want to do? Should I set apaches
doc root to point to the webapps/approot directory and setup settings as
explained in the user guide for tomcat to only process servlets and jsp? I just
want to have a normal website that lives in my apache document roots, I want
JSP that lives there to be processed by tomcat, and I want my servlets to live
in a webapp subdir. Is this not possible? I had this working with jserv.

thanks
7) - Re: jsp
| +1 vote
thanks, ok what if I want 2 have 2 virtuals. both with JSP files in their normal apache document...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
thanks,
ok what if I want 2 have 2 virtuals. both with JSP files in their normal apache
document roots. However I want each virtual to make sure that the*.jsp files
execute in a certain Tomcat context/instance etc. The JSP files do not reside
in a tomcat webapp. How do I set this up?

thanks
-aaz



On Wed, 31 May 2000, you wrote:
> It is used by all request being forwarded to tomcat that can not
> find a matching context. When this happens, tomcat presume
> that the path is empty, so that it match the ROOT context.
>
> --
> Hansen Wang
>
> - wrote:
>
> > Hi,
> > In my apache config I have this setup
> >
> > ApJServManual on
> > ApJServSecretKey DISABLED
> > ApJServMountCopy on
> > ApJServLogLevel notice
> > ApJServDefaultProtocol ajpv12
> > ApJServDefaultHost localhost
> > ApJServDefaultPort 8007
> > ApJServMount default /root
> > AddType text/jsp .jsp
> > AddHandler jserv-servlet .jsp
> >
> > Now my apache document root is in
> > /home/docroot
> >
> > I call http://my.server.com/one.jsp
> >
> > and I get this error:
> >
> > Error: 404
> > Location: /one.jsp
> > JSP file "/usr/local/apache/tomcat/webapps/ROOT/one.jsp (No such file or directory)" not found
> >
> > What exactly is the webapps/ROOT application? Is this the default one tomcat
> > uses for all JSP requests that are not in a specified context but just
> > forwarded from apache?
> >
> > thanks!
> >
> > --------------------------------------------------------------------------
> > To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> > For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
8) - jsp
| +1 vote
Hi, In my apache config I have this setup ApJServManual on ApJServSecretKey DISABLED...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,
In my apache config I have this setup

ApJServManual on
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultProtocol ajpv12
ApJServDefaultHost localhost
ApJServDefaultPort 8007
ApJServMount default /root
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Now my apache document root is in
/home/docroot

I call http://my.server.com/one.jsp

and I get this error:

Error: 404
Location: /one.jsp
JSP file "/usr/local/apache/tomcat/webapps/ROOT/one.jsp (No such file or directory)" not found

What exactly is the webapps/ROOT application? Is this the default one tomcat
uses for all JSP requests that are not in a specified context but just
forwarded from apache?

thanks!
9) - RE: newbie questions
| +1 vote
gracias!, that answers that portion Regarding the below, anyone have any answers? > For additional...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
gracias!, that answers that portion
Regarding the below, anyone have any answers?


>If you use the -f flag, that and only the XML config specified is used.
>Correct?

> Lastly, I have added a classes/ directory in my TOMCAT_HOME, and put mail.jar
> there, I figure that I need to extract it there? Are the classes found here
> availiable to ALL tomcat instances running? I need a place to put some common
> optional packages across all apps and tomcat instances in one place. Is this it?


On Wed, 31 May 2000, you wrote:
> The "Automatic context load's", and auto expansion of WAR files, comes from the AutoStart context interceptor. Delete or comment out the server.xml line:
>
> <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
>
> and this will cease.
>
> Hope this helps.
>
> Larry
>
>
> -----Original Message-----
> From: - [email protected: a...@webcapacity.com]
> Sent: Wednesday, May 31, 2000 11:27 AM
> To: [email protected: tomcat...@jakarta.apache.org]
> Subject: newbie questions
>
>
> Hi all,
> Couple of questions below for some things that are not clear to me:
>
> I copied the original server.xml file to my own config because I will be
> running 2 tomcat instances for development purposes. Anyways, per the user
> guide I run this command.
>
> ./tomcat.sh start -f ../conf/myserverconfig.xml
>
> The ouput shows that it is loading my contexts but it is also still loading the
> original ones that are default to tomcat (examples, admin, etc)
>
> Context log: path="" Automatic context load docBase="/usr/local/apache/tomcat/webapps/ROOT"
> Context log: path="" Adding context path="" docBase="/usr/local/apache/tomcat/webapps/ROOT"
> Context log: path="/test" Automatic context load docBase="/usr/local/apache/tomcat/webapps/test"
> Context log: path="/test" Adding context path="/test" docBase="/usr/local/apache/tomcat/webapps/test"
> Context log: path="/examples" Automatic context load docBase="/usr/local/apache/tomcat/webapps/examples"
> Context log: path="/examples" Adding context path="/examples" docBase="/usr/local/apache/tomcat/webapps/examples"
> Context log: path="/admin" Automatic context load docBase="/usr/local/apache/tomcat/webapps/admin"
> Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/apache/tomcat/webapps/admin"
>
> My question is, in the original server.xml file I removed all context
> references to these, they are not in my new one either. How and why are they
> getting loaded? Also I am curious as to how tomcat boots exactly.
>
> Does it always read the default server.xml, THEN read the one specified with
> the -f flag on the command line? Or does it automatically start a new context
> for each WAR/directory under webapps/ ?
>
> Lastly, I have added a classes/ directory in my TOMCAT_HOME, and put mail.jar
> there, I figure that I need to extract it there? Are the classes found here
> availiable to ALL tomcat instances running? I need a place to put some common
> optional packages across all apps and tomcat instances in one place. Is this it?
>
> thanks a ton!
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
>
> --------------------------------------------------------------------------
> To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
10) - jsp config
| +1 vote
Hi, In my apache config I have this setup ApJServManual on ApJServSecretKey DISABLED...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,
In my apache config I have this setup

ApJServManual on
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultProtocol ajpv12
ApJServDefaultHost localhost
ApJServDefaultPort 8007
ApJServMount default /root
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Now my apache document root is in
/home/docroot

I call http://my.server.com/one.jsp

and I get this error:

Error: 404
Location: /one.jsp
JSP file "/usr/local/apache/tomcat/webapps/ROOT/one.jsp (No such file or directory)" not found

What exactly is the webapps/ROOT application? Is this the default one tomcat
uses for all JSP requests that are not in a specified context but just
forwarded from apache?

thanks!
11) - newbie questions
| +1 vote
Hi all, Couple of questions below for some things that are not clear to me: I copied the original...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,
Couple of questions below for some things that are not clear to me:

I copied the original server.xml file to my own config because I will be
running 2 tomcat instances for development purposes. Anyways, per the user
guide I run this command.

./tomcat.sh start -f ../conf/myserverconfig.xml

The ouput shows that it is loading my contexts but it is also still loading the
original ones that are default to tomcat (examples, admin, etc)

Context log: path="" Automatic context load docBase="/usr/local/apache/tomcat/webapps/ROOT"
Context log: path="" Adding context path="" docBase="/usr/local/apache/tomcat/webapps/ROOT"
Context log: path="/test" Automatic context load docBase="/usr/local/apache/tomcat/webapps/test"
Context log: path="/test" Adding context path="/test" docBase="/usr/local/apache/tomcat/webapps/test"
Context log: path="/examples" Automatic context load docBase="/usr/local/apache/tomcat/webapps/examples"
Context log: path="/examples" Adding context path="/examples" docBase="/usr/local/apache/tomcat/webapps/examples"
Context log: path="/admin" Automatic context load docBase="/usr/local/apache/tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/apache/tomcat/webapps/admin"

My question is, in the original server.xml file I removed all context
references to these, they are not in my new one either. How and why are they
getting loaded? Also I am curious as to how tomcat boots exactly.

Does it always read the default server.xml, THEN read the one specified with
the -f flag on the command line? Or does it automatically start a new context
for each WAR/directory under webapps/ ?

Lastly, I have added a classes/ directory in my TOMCAT_HOME, and put mail.jar
there, I figure that I need to extract it there? Are the classes found here
availiable to ALL tomcat instances running? I need a place to put some common
optional packages across all apps and tomcat instances in one place. Is this it?

thanks a ton!
12) - ApJServMount
| +1 vote
Hi all, Is the ApJServMount really just the old JServ syntax but modified for tomcat? I noticed...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,
Is the ApJServMount really just the old JServ syntax but modified for tomcat?
I noticed that the zone portion of the command is irrelevent.

ApJServMount /examples /djdjdjdjdjekj

For example, it appears that this just tells mod_jserv to forward URI /examples
to tomcat, and then tomcat figures out the "context" or zone to run the request
in. Is this correct?

thx
-aaz
13) - Re: apache +tomcat
| +1 vote
ok, well here is my deal I guess. Apache 1.3.12 w/mod_so Tomcat 3.1 sitting there after running...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
ok, well here is my deal I guess.
Apache 1.3.12 w/mod_so
Tomcat 3.1 sitting there after running build.sh dist

Now I see the reference in users guide regarding calling
apxs -c -o mode_jserv.so *.c

I am asumming this is creating a scaled down jserv hook in? Anways I get a
apxs: break command failed with rc=16711680

Anyways, assuming I figure that out and get a mod_jserv.so where do I put it?

Once I have that, i can figure out the rest I guess, adding the scaled back
jserv configs to httpd.conf etc.

any pointers to all of this apprecitated.



On Tue, 30 May 2000, you wrote:
> As I know there are no such detail info as those in jserv.
>
> - wrote:
>
> >  Hi all,
> > Where can I find a clean document that gives step by step getting tomcat and
> > apache talking? I've seen bits and peices in "users guide" but no details on
> > this process. basically I am looking for an INSTALL doc, simular to what is
> > included with Jserv.
> >
> > thanks!
> > aaz
> >
> > --------------------------------------------------------------------------
> > To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> > For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: [email protected: tomcat-user-unsubs...@jakarta.apache.org]
> For additional commmands, email: [email protected: tomcat-user...@jakarta.apache.org]
14) - apache +tomcat
| +1 vote
Hi all, Where can I find a clean document that gives step by step getting tomcat and apache...
tomcat-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,
Where can I find a clean document that gives step by step getting tomcat and
apache talking? I've seen bits and peices in "users guide" but no details on
this process. basically I am looking for an INSTALL doc, simular to what is
included with Jserv.

thanks!
aaz
spacer
Profile | Posts (14)
Home > People > - > Posts