RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation

2003-09-26 Thread Biswas, Goutam_Kumar
Thanks Shapira ... for the feedback and for making me more knowledgeable :-)

-Goutam


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 10:31 PM
To: Tomcat Users List
Subject: RE: How do I specify a different workDir for each user accessing
the same Tomcat 4.1.27 implementation



Howdy,

>If I'm not too demanding :-) can you please explain why it is a bad
idea to
>use the same Tomcat instance for more than one user. Is it performance
>related or is it something else ?

Your "users" above are developers, not normal client users.  It's
legitimate for developers to experiment with the server configuration,
properties, etc.  Tomcat is free, you don't have to pay anything for
extra installations.  

Forcing developers to share installations restricts their options during
development (or at least slows down the process if they have to make
sure their config change is OK with all other developers using the
server).  

If one developer's mistake crashes the server, everyone suffers.  If he
has his own server, no one else is interrupted when it crashes.

Finally, sharing the same tomcat instance doesn't gain you any
significant advantage.

Of course, there should be a shared/central integration testing server.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation

2003-09-26 Thread Biswas, Goutam_Kumar
Shapira,

If I'm not too demanding :-) can you please explain why it is a bad idea to
use the same Tomcat instance for more than one user. Is it performance
related or is it something else ?

Regards,
Goutam


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 10:14 PM
To: Tomcat Users List
Subject: RE: How do I specify a different workDir for each user accessing
the same Tomcat 4.1.27 implementation



Howdy,
If you want to use the same tomcat instance (bad idea IMHO), use a
different CATALINA_HOME for each user with the same CATALINA_BASE.  Take
the rest of your configurations, especially the Loader, out of
server.xml.

A better alternative is to have a completely separate tomcat instance
for each developer.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Biswas, Goutam_Kumar [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 26, 2003 12:43 PM
>To: Tomcat Users List
>Subject: How do I specify a different workDir for each user accessing
the
>same Tomcat 4.1.27 implementation
>
>Hi,
>
>I am trying to manage a development team wherein each user uses the
same
>instance of Tomcat for development. I do this by having a different
>server.xml file for each user and having the context docBase point to
the
>build/webapps directory of each user, like shown below:
>
>   
docBase="/u/biswasg/Proj/pos/bin/share/../../build/webapps"
>   debug="0"
>  reloadable="true"
>crossContext="false"
>   swallowOutput="true">
>
>  directory="logs/biswasg"
>  prefix="pos_log."
>  suffix=".txt"
>   timestamp="false"/>
>
>   
>
>Now I want to specify a different workDir for each user also. How do I
do
>that? I tried adding the following  element inside the

>but
>it doesn't work:
>
>   
docBase="/u/biswasg/Proj/pos/bin/share/../../build/webapps"
>   debug="0"
>  reloadable="true"
>crossContext="false"
>   swallowOutput="true">
>
>  directory="logs/biswasg"
>  prefix="pos_log."
>  suffix=".txt"
>   timestamp="false"/>
>
>delegate="false"
>   reloadable="false"
>  workDir="work/biswasg"/>
>   
>
>
>I want to do this as all JSP pages are now being compiled into the same
>work
>directory for every user. So if two or more users are concurrently
working
>on the same JSP page they sometimes end up with a feature that they
never
>added! (and which someone else working on the same JSP page might have
>added). So they ask me the question "Hey, I didn't add this... How did
that
>thing get in there?". And that triggered me into thinking that if I can
>specify a different workDir for each user the problem will be solved...
>
>Is this really do-able ?
>
>Regards,
>-Goutam
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation

2003-09-26 Thread Biswas, Goutam_Kumar
Hi,

I am trying to manage a development team wherein each user uses the same
instance of Tomcat for development. I do this by having a different
server.xml file for each user and having the context docBase point to the
build/webapps directory of each user, like shown below:

   

   

   

Now I want to specify a different workDir for each user also. How do I do
that? I tried adding the following  element inside the  but
it doesn't work:

   

   


   


I want to do this as all JSP pages are now being compiled into the same work
directory for every user. So if two or more users are concurrently working
on the same JSP page they sometimes end up with a feature that they never
added! (and which someone else working on the same JSP page might have
added). So they ask me the question "Hey, I didn't add this... How did that
thing get in there?". And that triggered me into thinking that if I can
specify a different workDir for each user the problem will be solved...

Is this really do-able ?

Regards,
-Goutam



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: newbie jasperException

2003-09-22 Thread Biswas, Goutam_Kumar
Chrish,

Thanks for finding time to reply to my question. After some hours of
churning the jsp code around I tracked down my mistake to not passing a
command line property (-Dpos.home-...) to the JVM. When I set this property
using CATALINA_OPTS=-Dpos.home=... I got the output.

Thanks again.

Regards,
Goutam


-Original Message-
From: Christopher Williams [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 8:00 PM
To: Tomcat Users List
Subject: Re: newbie jasperException


Hi,

Your JSP code is wrong.  The <%@ page import... %> directive needs to go at
the top of the page.  When the Jasper compiler turns it into Java, that
directive gets turned into one or more Java import statements, and you
wouldn't stick those in the middle of your code.

Remember, all the HTML gets turned into Java code, as follows:
out.write("\r\n\r\n...");
So that your import statements (and the class variable declaration "<%!
Vector v; %>") appear inside a servlet doGet() method, which is illegal
Java.  In spite of the superficial similarities, JSP is not really like PHP.
The PHP interpreter turns embedded PHP code into HTML, while the JSP
compiler turns HTML into Java (and then the Java compiler turns it into byte
code).  It will help you to keep this in mind when writing JSP code.

BTW, I'm a little troubled by that "<%! Vector v; %>" declaration.  This
turns v into an instance variable of the servlet class that Jasper creates.
Is this what you intended?  If not, remove the exclamation mark and leave
the variable declaration where it is.

Kind regards,

Chris Williams.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newbie jasperException

2003-09-22 Thread Biswas, Goutam_Kumar
Hi,
I am getting the following JasperException. (Please scroll below for the
exception :-) ). I am relatively new to jsp. Can anyone please point me as
to what's going wrong here?

FYI  I am including the jsp code also.
<-jsp code>



   function textSelected()
{
 
option=document.forms[0].PoRefno.options[document.forms[0].PoRefno.selectedI
ndex].text
document.write("This is the selected text" + option)
}




<%@ page
import="deshaw.fats.collection.database.PurchaseOrderDbCollection,
java.util.*,java.sql.SQLException"%>
<%! Vector v; %>
<%
try{
v=new PurchaseOrderDbCollection().getPoRefNos();
}
catch(SQLException e)
{  %> 



 
<%  }   %>

<% 
Iterator i=v.iterator();
String s;   
while(i.hasNext()) { 
s=(String) i.next();
out.write("" + s + "");
}  
%>







type Exception report
message 
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception 
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2408)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
root cause 
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
at
org.apache.jsp.Procurement_jsp._jspService(Procurement_jsp.java:84)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application