JDBC Realm documentation

2000-12-18 Thread Kurt, Oliver

So lets move on

Finally I got the BASIC working.

Now I want to evaluate other aut-methods. I red in the web.dtd that BASIC,
FORM, DIGEST and CLIENT-CERT are legal values for the auth-method.

QUESTION 1.)

Where can I read something about that stuff, for example which java-files
are involved? And where can I get additional infos?

QUESTION 2.)

Another question to the FORM aut-methods:
The following scheme shows a part of my web.xml file:


  FORM
  Example
  
/login/login.jsp
/login/error.jsp
  


Propably the login.jsp has to have some special  and  tags,
where can I see such a login.jsp respectively where can I find the scheme
for ?

Thanks,
Oliver Kurt 



Tomcat Test in ...test\web-inf\classes\calendar

2000-12-18 Thread jang won koh

How do I test are classes the subfolders in 
tomcat\webapps\test\web-inf\classes\.
What is the URL to access 
tomcat\webapps\test\web-inf\classes\calendar\JspCalendar.class ?
http://localhost:8080/test/servlet/calendar/JspCalendar doesn't work. 
Thanks in advance.




Re: Getting Tomcat to run / Installation Error Fixes and Testing

2000-12-18 Thread jang won koh


These are all the errors I encountered and fixed overnight during Tomcat
installation. ):-(

1. Error Message, "Out of environment space:" --> right click on startup.bat
and click on property and click memory tab and choose initial environment
drop-down box and choose 2048 or bigger. It doesn't have to be 2048+ but a
bigger number has the better chance of working. You can choose property by
clicking the top left corner of the console window.

For reference, I saw in a website a guy says - To solve the 'Out of
Environment Space' error you must edit CONFIG.SYS (again, the old MS-DOS not
so defunct operating system presence). You must add the following line:
SHELL=C:\COMMAND.COM /E:8192 /P
please replace C:\COMMAND.COM to the correct location if you moved
COMMAND.COM to another location. The "/E:8192" allocates 8k to be used by
environment variables. The maximum allowed is 32k (35736). The last
parameter, "/P", is used to make this COMMAND.COM instance resident in
memory and owner of main environment space (from which every process
receives a copy).

2. Error Message, "only DOS 8.3 names may be used in TOMCAT_HOME!"--> You
are using Windows Explorer folder name find dos name of the folder(=
directory) using DIR command in DOS console. If you have long dir name in
windows explorer such as "jakarta-tomcat-3.2.1", it will show up as jakart~1
in DOS. Use this 8 character long name.

2a. Use simple folder(=directory) names for JDK(=J2SDK 1.3) and TOMCAT. I
used default names "j2sdk1.3" and "jakarta-tomcat-3.2.1" They caused
conflicts in *.bat files when starting tomcat. Especially DON'T USE "." in
those folder names. USE 8 characters-long name, or find matching DOS DIR
name for the windows explorer long folder names. So I uninstalled and
reinstalled JDK in the folder,"j2sdk" and tomcat in the folder, "tomcat".

3. Common and Hard-to-find ERROR: Type in SET JAVA_HOME=C:\JDK in the first
line after REM lines (REM lines are comment lines so they are ignored in
execution)in startup.bat file. * VERY IMPORTANT NOT TO HAVE SPACES
before and after "=" *

4. Include tomcat\lib\servlet.jar and tomcat\lib\jasper.jar(or 
jspengine.jar or somthing similar) in classpath. For example, add a line in 
c:\AUTOEXEC.BAT 
classpath=e:\java\tomcat\lib\jasper.jar;e:\java\tomcat\lib\servlet.jar;%classpath% 

5. Testing. run startup.bat. It should show 2 DOS console windows. 2nd DOS 
console window should show date and contextmanager blah blah in several 
lines. This means tomcat is running.
6. Testing Servlet. Write and compile a servlet. Move the compile servlet 
class file(let's say HelloWorld.class) to 
tomcat\webapps\root\web-inf\classes. In browser, go to 
URL:http//localhost:8080/servlet/HelloWorld . You can replace localhost 
with 127.0.0.1 or another IP and port number if you know. To test servlets 
in tomcat\webapps\test\web-inf\classes or 
tomcat\webapps\examples\web-inf\classes 
http://localhost:8080/test/servlet/HelloWorld or replace test with examples.
7. Testing JSP. Move a jsp file(let's say test.jsp) to 
tomcat/webapps/root/jsp. I created that folder. Go to 
URL:http://localhost:8080/jsp/test.jsp.


At 03:10 PM 12/18/2000 -0600, you wrote:
>I downloaded Apache and got it to run.  I downloaded Tomcat 3.2.1 build 
>and tried to compile the java files. Got tons of errors. Can anyone point 
>me at a definitive step by step Howto?
>I did the following (from Tomcat - A Minimalistic User's guide):
>* Download the zip/tar.gz/whatever file from 
> 
>http://jakarta.apache.org/downloads/binindex.html.
> 
>
>* Unzip the file into some directory (say foo). This should create a 
> new subdirectory named "tomcat".
>* Change directory to "tomcat" and set a new environment variable 
> (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.
>* On Win32 you should type:
>* "set TOMCAT_HOME=foo\tomcat"
>* On UNIX you should type:
>* for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
>* for tcsh "setenv TOMCAT_HOME foo/tomcat"
>* Set the environment variable JAVA_HOME to point to the root 
> directory of your JDK hierarchy, then add the Java interpreter to your 
> PATH environment variable.
>That's it! You can now execute Tomcat and it will run as a stand-alone 
>(type 1) servlet container...BUT that's not IT.




AW: Problems with change from 3.1 to 3.2

2000-12-18 Thread Hanusch, Hartwig

Hi there,

sorry - i should have written in english - sorry again,

so ... 
same think happens to me when using apache (without everything is fine on
tomcats port 8080).
This problem arises in relation to the session management ... when the get
method calls via html
the post method in the same servlet.
Whoever has a solution, please contact me - i am looking for that for over a
week now.

Cheers Hartwig






> -Ursprüngliche Nachricht-
> Von:  Hanusch, Hartwig 
> Gesendet am:  Dienstag, 19. Dezember 2000 07:49
> An:   '[EMAIL PROTECTED]'
> Betreff:  AW: Problems with change from 3.1 to 3.2
> 
> Hallo Tobias,
> 
> das selbs passiert bei mir auch (in Verbindung mit dem Apache - ohne
> Webserver
> , d.h. Port 8080 ist alles klar).
> Es tritt bei mir im Zusammenhang mit dem Session-Management auf, wenn von
> der 
> get die post methode gerufen wird.
> Hast du eine Lösung? Wenn ja, lasse sie mich doch bitte wissen (das gilt
> auch andersherum :))
> 
> Viele Grüße
> Hartwig Hanusch
> 
> > -Ursprüngliche Nachricht-
> > Von:[EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:Montag, 18. Dezember 2000 20:00
> > An: [EMAIL PROTECTED]
> > Betreff:Problems with change from 3.1 to 3.2
> > 
> > Hi
> > 
> > I have an web-app, which was running in tomcat 3.1 without error.
> > I tried to deploy this web-app in tomcat 3.2, but i get the following
> > exception:
> > 
> > java.lang.NullPointerException at 
> >
> org.apache.tomcat.facade.HttpSessionFacade.getValue(HttpSessionFacade.java
> > :158)
> > 
> > I know, that tomcat3.2 is now casesensitiv and i am sure that this is
> not
> > the 
> > reason.
> > What else did change from 3.1 to 3.2 or is this maybe a bug ?
> > 
> > Tobias Reinhardt



AW: Problems with change from 3.1 to 3.2

2000-12-18 Thread Hanusch, Hartwig

Hallo Tobias,

das selbs passiert bei mir auch (in Verbindung mit dem Apache - ohne
Webserver
, d.h. Port 8080 ist alles klar).
Es tritt bei mir im Zusammenhang mit dem Session-Management auf, wenn von
der 
get die post methode gerufen wird.
Hast du eine Lösung? Wenn ja, lasse sie mich doch bitte wissen (das gilt
auch andersherum :))

Viele Grüße
Hartwig Hanusch

> -Ursprüngliche Nachricht-
> Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Montag, 18. Dezember 2000 20:00
> An:   [EMAIL PROTECTED]
> Betreff:  Problems with change from 3.1 to 3.2
> 
> Hi
> 
> I have an web-app, which was running in tomcat 3.1 without error.
> I tried to deploy this web-app in tomcat 3.2, but i get the following
> exception:
> 
> java.lang.NullPointerException at 
> org.apache.tomcat.facade.HttpSessionFacade.getValue(HttpSessionFacade.java
> :158)
> 
> I know, that tomcat3.2 is now casesensitiv and i am sure that this is not
> the 
> reason.
> What else did change from 3.1 to 3.2 or is this maybe a bug ?
> 
> Tobias Reinhardt



XMLC on Tomcat

2000-12-18 Thread Christian Bjørnbak

Hi

Using a XMLC (from Enhydra.org) based Servlet on Tomcat gives a
NoSuchMethodException.

Consulting the XMLC maillinglist gives the answer that it's proberly because
I use a level 1 DOM parser instead of the level 2 I should use...

As I'm starting Tomcat without a classpath the only DOM parser to override
the one in the xmlc.jar is the one in the tomcat xml.jar!?

Is it correct that it is a level 1 DOM parser in Tomcat 3.1? Is it changed
in newer Tomcats?

Can I change it? How?

Thanks,

Christian Bjørnbak




Tomcat won't serve JSP's from my web server's root directory

2000-12-18 Thread Andreas Sheriff

 Help!  I've installed Tomcat and the mod_jserv into Apache.  The examples
on
 the Tomcat side works, but it won't serve JSP pages from my Apache root
 directory.

 Here is a brief snippet of the automatically genrated config file:

 #Reference to .jsp added
 AddType text/jsp .jsp
 AddHandler jserv-servlet .jsp

 Is there anything else I need to make the engine process JSP files from my
 server's root directory?

 By the way, I'm coming from a JSERV environment.  Do I need a web
 application to serve my JSP's?





RequestDispatcher - use of

2000-12-18 Thread Graeme Wallace

Lets say I wanted to implement a MVC type architecture where all the
URLs are handled by a common controller servlet. By all URLs I mean
everything not just .jsp.

If I did this in Tomcat 3.1 the request dispatcher would let me forward
to a file (jsp, html or image) without further interpretation of the
resource name that i used.

Tomcat 3.2 however sends this resource back through the whole ball of wax
which leads to a couple of problems:-

1) How do you forward to a file and not have it interpreted.

2) The problem i reported the other day, in that other web applications will
get to handle the forward request if you happen to choose a file that has
the
same directory as the context URL.


Any pointers anyone ?

G.




RE: database connection problem when run nt service

2000-12-18 Thread Jared Clinton

I am extremly new to tomcat, although I suspect that it is to do with the NT
user that tha service logs in as and the permissions in the database that
the user has?

?Stab in the dark?

Jared Clinton.

> -Original Message-
> From: H Deng [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 19 December 2000 17:10
> To: [EMAIL PROTECTED]
> Subject: database connection problem when run nt service
> 
> 
> Hi everyone, I installed apache 1.3.4 and tomcat 3.2.1 on 
> windows NT4.0
> /windows 2000 and tried to set up tomcat to run NT service. I used
> mod_jk.dll to test a simple java code to connect to a database and it
> worked fine. However, when I tried to use jk_nt_service.exe, 
> other part
> of the the java program can run but the connection to the 
> database can't
> be establised. The following code gives a SQLException:
> 
> dbCon =3D DriverManager.getConnection("jdbc:odbc:book");
> 
> but the same code worked fine with mod_jk.dll.
> 
> I tried to put rt.jar (which contains DriverManager.class) in the
> classpath in wrapper.properties:
> 
> wrapper.class_path=3D$(wrapper.java_home)\jre\lib\rt.jar
> 
> but it did not help.
> 
> Please help me. Thanks in advance.
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 



database connection problem when run nt service

2000-12-18 Thread H Deng

Hi everyone, I installed apache 1.3.4 and tomcat 3.2.1 on windows NT4.0
/windows 2000 and tried to set up tomcat to run NT service. I used
mod_jk.dll to test a simple java code to connect to a database and it
worked fine. However, when I tried to use jk_nt_service.exe, other part
of the the java program can run but the connection to the database can't
be establised. The following code gives a SQLException:

dbCon =3D DriverManager.getConnection("jdbc:odbc:book");

but the same code worked fine with mod_jk.dll.

I tried to put rt.jar (which contains DriverManager.class) in the
classpath in wrapper.properties:

wrapper.class_path=3D$(wrapper.java_home)\jre\lib\rt.jar

but it did not help.

Please help me. Thanks in advance.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Building output page by page.

2000-12-18 Thread Mark Koscak



Thanks for the input Dave,
 
I have a HTML form that sends a POST request to a Servlet 
class.  The servlet class interacts with another Java class that I use to 
access a MySQL database, and display the results.
 
Browser(FORM)-->Servlet-->JavaDBAccess&display-->Browser(HTML 
Display)
 
 
When accessing the database on the first instance a result set 
is returned.
 
ResultSet rs = stmt.executeQuery(queryString);
 
Now that I have my first aggregation of data I enter a while 
loop
while( rs.next() )
{
    /* Perform my 
second query using fields from my earlier query
 
    /* Now that I have 
all my data I output my table row using the visibility
/* I have to 
my PrintWriter object. Passed earlier from my Servlet class.
}//end while
 
/* close any open connections and files 
/* and exit the method.
 
What I'm really after is similar functionality to say when the 
Google search engine returns a result set. 
For example say 100 results are returned. There are ten 
results per page with each page footer having
1 2 3 4 5 6 7 8 9 10. Each number being a link to a group of 
ten records.
 
 
        
- Original Message - 

  From: 
  Dave Smith 
  
  To: [EMAIL PROTECTED] 
  Sent: Sunday, November 19, 2000 11:35 
  AM
  Subject: Re: Building output page by 
  page.
  
  Hi Mark,
   
  I'll repeat what I said in my 
  earlier
  response. You are not giving much
  information about what you are 
doing.
   
  You do mention making "database 
  queries".
   
  Lets assume you are accessing a DB 
  with
  sequel. In that case you can perform the 
  following
  type of query:
   
  select * from some_table where primaryKey > 
  min and primaryKey <= max;
   
  Where min and max are limits you set. 
  
  This would return a range of records between min 
  and max, including max.
   
  Translating into servlets:
   
  A design that comes easily to mind 
  would
  use a controller servlet and a JSP 
  page.
   
  The controller is going to receive a POST from 
  
  a webpage... The controller doesn't do 
  anything,
  just redirects output and passes on 
  parameters.
   
  form --> params( min, max) --> 
  controller.
   
  The controller redirects output to a 
  JSP:
   
  controller --> 
  sendRedirect("/some.jsp?min=101&max=200");
   
  The webpage is going to be produced as 
  output
  from a JSP called some.jsp:
   
  JSP --> (current data, 101 through 200) 
  and new form with code for next set of data.
   
  ...
  current data
  ...
   
  
  
  
  
  
  
   
   
  If this doesn't make any sense you might want 
  to
  read up on the technology before going much 
  farther.
  A good start would be Java Servlet Programming 
  by Hunter and Crawford.
   
  Dave
  
- Original Message - 
From: 
Mark 
Koscak 
To: tomcat 
Sent: Monday, December 18, 2000 5:39 
PM
Subject: Re: Building output page by 
page.


Hello again,
 
I know someone responded to this message, I was unable to respond and 
the original message was deleted. My apologies. (Don't ask long 
story...)
 
At present it takes around 13sec to build a page of 1300 rows over 10MB 
Lan.  I am pushing HTML output in a display method using 
out.println(...); right after my database table queries.
 
My aim is to reduce the time it takes to display an initial page to the 
end user, by breaking up the output into smaller chunks.  
 
There is also a good chance that I will merge the two tables into one 
to reduce the database connection requirements.
 
Thanks Again.
Mark
 
/
*    PREVOIUS MESSAGE
/
 
Hello everyone,
 
I have build a Servlet application that creates a 
single HTML page with up to 1300 rows in a table.
 
Can anyone give me some links or advice on how I can break 
this output into HTML pages with say 100 rows per table, with a 
corresponding selection bar at the bottom of each screen, giving the user 
access to any page they click on?
 
Thanks in advance.
 
Mark


beans with Virtual Hosting (Apache + Tomcat + mod_jk)

2000-12-18 Thread Tung Fai


I success doing Virtual Hosting  on Apache + Tomcat + mod_jk

but I have another question.

How to make each virtual host have they own *private* bean ??

I need set the CLASSPATH to each virtual host's directory ?

Thanks








=
The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
email by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying,  distribution or any action taken
or omitted to be taken in reliance on it, is prohibited and may be
unlawful. If it has been wrongly sent to you, please delete
immediately and notify us. Thank you.
=



Re: sdk 1.3.0 fcs and netscape plugin problem

2000-12-18 Thread Bojan Smojver

Try to put the plugin in ~/.netscape/plugins instead.

Bojan

"Robert B. Easter" wrote:
> cd /usr/local/netscape/plugins
> ln -s /usr/local/j2sdk1.3.0/jre/plugin/i386/javaplugin.so javaplugin.so



sdk 1.3.0 fcs and netscape plugin problem

2000-12-18 Thread Robert B. Easter

This is off topic here, but maybe some knowledgable java coders in here can 
help me...

I've install Netscape 4.76 to /usr/local/netscape (fresh install) and the 
Blackdown SDK 1.3.0 FCS to /usr/local/j2sdk1.3.0

The instructions for installing the Netscape plugin that comes with sdk1.3.0 
says you just make a symlink like this:

cd /usr/local/netscape/plugins
ln -s /usr/local/j2sdk1.3.0/jre/plugin/i386/javaplugin.so javaplugin.so

I did that and it doesn't work.  When I run Netscape like this:

cd /usr/local/j2sdk1.3.0/jre
netscape JavaPluginControlPanel.html &

... I get a popup message in Netscape that it can't load libjvm.so:

java_vm: error in loading shared libraries: libjvm.so: cannot open shared 
object file: No such file or directory
Plugin: Plugin is not enabled or Java VM process has died.

I don't understand this, PLEASE help me! :)

Sorry for an off-topic post.

Before I can really get into Java development with Jakarta, I feel I at least 
need a working environment that includes the Netscape plugin.

-- 
 Robert B. Easter  [EMAIL PROTECTED] -
- CompTechNews Message Board   http://www.comptechnews.com/ -
- CompTechServ Tech Services   http://www.comptechserv.com/ -
-- http://www.comptechnews.com/~reaster/ 



Re: my html can't find my servlet

2000-12-18 Thread Julio Serje (@canada.com)

Try:


.




I'm assuming that you have the three fields in your form coresponding to the
three parameters, and that you are implementing the doGet method in your
servlet.

Julio


- Original Message -
From: Mark Koscak <>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 17, 2000 5:09 PM
Subject: Re: my html  can't find my servlet


> I have encountered a similar problem.
>
> In my case I think it is because I have NOT integrated Apache with
> Jakarta-Tomcat. Therefore Apache would be unable to resolve the relative
> pathnames.
>
> Mark.
>
> - Original Message -
> From: <>
> To: tomcat mailing list <[EMAIL PROTECTED]>
> Sent: Saturday, December 16, 2000 9:23 AM
> Subject: my html  can't find my servlet
>
>
> > I am working on the "Three Parameters" servlet in Marty Hall's book
> > (p.69) and the servlet is working great when I call it from the
> > "Location" line of the browser such as:
> >
> >
>
http://localhost:8080/examples/servlet/ThreeParams?param1=bubba¶m2=jimbo
> ¶m3=janiesue
> >
> > But I can't find the secret code to put in the ACTION argument of the
> > FORM tag.  The book recommends :
> >
> >  which I tried
> > unsuccessfully.  (Netscape gives me a variety of "unable to find
> > directory or file" messages)  Then I removed the package statements and
> > re-compiled with them in the base directory where I found the working
> > examples:
> >
> > C:\\tomcat\webapps\examples\WEB-INF\classes
> >
> > I've tried all these variations, with forward and back slashes, and
> > with/without double quote marks and with/without leading slashes:
> >
> > ThreeParams
> > servlets/ThreeParams
> > examples/servlets/ThreeParams
> >
> >
> > When I used "ThreeParams", Netscape said it couldn't find file or
> > directory C:\\tomcat\webapps\examples\WEB-INF\classes, which would have
> > been the correct directory.  I tried "ThreeParams.class" and it produced
> > the correct line at the location line of the browser, but the output was
> > garbled, strange characters, etc.
> >
> > Any suggestions would be appreciated.  Thanks.
> >
> > Michael Brubaker, Java Developer Wannabe, Orlando, Florida
> >
> > Win98/Tomcat 3.2.1/JDK1.3/Netscape 4.75
>




Re: Pbm. in setting the parameter for an applet in servlet...

2000-12-18 Thread Julio Serje (@canada.com)

Try putting the  tags before 

- Original Message -
From: Subha Gowri K V <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 6:22 AM
Subject: Pbm. in setting the parameter for an applet in servlet...


>
> Hi,
>
> We have a problem in passing parameter to an applet which is called by a
> servlet.
>
> 1. In servlet we are setting the param like :
>
>   out.println(" CODEBASE=\"http://hostname/dir\"" + " WIDTH=50 HEIGHT=100>");
>   out.println("");
>   out.println("PARAM NAME=\"Results\" VALUE=\""+"Hello"+"\">");
>   out.println("");
>
> 2. We are fetching the parameter in applet like
>   String s = getParameter("Results");
>
> But in applet we are getting null value only.
>
> 3. If I call the same applet from a simple html page, it is passing
> parameters correctly.
>
> Note : We are using Tomcat as the servlet engine & apache as the
web-server.
>
> Any idea?
>
> Thanks in advance.
>
> Regards,
> Subha
>




Re: TomCat into NT environment

2000-12-18 Thread Julio Serje (@canada.com)

Consider Apache + Tomcat... (both can be configured as services and run just
great...)

- Original Message -
From: Jose Euclides da Silva Junior - DIGR.O
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 1:30 PM
Subject: TomCat into NT environment


-BEGIN PGP SIGNED MESSAGE-

What is the way to use TomCat into NT 4.0 Server? Just as a Stand-alone
web-server, or as a NT service or even mixed with IIS. I think that this
last option is the worst...

Best Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://euclides.8m.com


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOj5xgd0YhuJ3BUxtAQGcAAP9E6cHc9BFGA0j8xr5rvVcnv/v5f3GI4WY
8IwUtybgqEZNQxXH9Vvdw6X0fqZzK1urSYj5VykP1LM1n2NbnJiPoT3QVK79hghF
guylD+O3InOOSi/RRet48CA52iwONzyHJ7yRhODfsdZH7CLxKkfE4pZFjvzg856N
XgGR6qBFHRw=
=c8vz
-END PGP SIGNATURE-




Re: wierd problem reading remote mapped files in servlets

2000-12-18 Thread Julio Serje (@canada.com)



Hi, Beti
 
You may be referencing to the file in the wrong case. Tomcat 
3.2 is case sensitive. (I do read files in mapped drives in both NT/98 without a 
problem... Maybe there's an issue with Win2k)
 
Julio
 

  - Original Message - 
  From: 
  Betty Chang 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, December 18, 2000 4:35 
  PM
  Subject: wierd problem reading remote 
  mapped files in servlets
  
  
  Hi all -- has anyone seen this problem?   I running a servlet 
  on Windows 2000, or NT, and it's trying to read a file that is mapped from a 
  remote machine (e.g.:  m:\junk.txt, where m: is mapped to something on 
  the network).  On Windows 2000, the drive will actually disconnect on me 
  (when I run "net use", I see that)  and the program cannot read the 
  file.
   
  If I run the program as a main(), things work fine.
   
  Any clues??
   
  Thanks
   
  Betty
  Portal Wave, Inc.The Fastest 
  Track to Integrated e-Businesswww.portalwave.com


Re: 3.2 + IIS: still having problems

2000-12-18 Thread Winifred Sanchez

 are you trying to setup tomcat to serve only jsp pages or all pages in a context 
(including html)? if you're serving all pages, try opening a page by giving the 
complete url. if you still get a 404 message, it means that you haven't set-up tomcat 
to communicate with IIS properly. try checking the registry keys.

if you're setting up tomcat to serve only the jsp pages and IIS to serve the html 
pages in the context, you need to add a virtual directory to IIS. Use the context name 
as the virtual directory name and it should point to where the context is located. You 
can use the IIS Console Manager to do this. Stop and Stop IIS and see if it works.

Hope this helps.
--

On Mon, 18 Dec 2000 15:05:23  
 Carles Pi-Sunyer wrote:
>Hi,
>
>I've been struggling for the last few days to integrate tomcat 3.2 with IIS.
>My current situation is that I am getting the green up arrow for the filter,
>but I'm getting 404 messages for the pages I'm requesting. 
>
>I've tried the following advice without success:
>1) use short directory names.
>2) use the 3.1 workers.properties and uriworkermap.properties files
>3) put the isapi_redirect.dll in a directory under the inetpub directory
>4) reboot NT after changes
>
>My IIS log files show this entry after a request:
>
>20:17:11 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404
>
>this is a little different then if I request a page that doesn't exist:
>
>22:56:34 127.0.0.1 GET /notthere.html 404
>
>What does the "+" after the isapi_redirect.dll mean?
>
>Any other suggestions on getting this working?
>
>Thanks,
>Carles
>
>Carles Pi-Sunyer
>Stario, Inc.
>http://www.stario.com
>[EMAIL PROTECTED]
>408 844-8333 ex:326
> 
>


Get FREE Email/Voicemail with 15MB at Lycos Communications at http://comm.lycos.com



How to password-protect a servlet?

2000-12-18 Thread Neil Aggarwal

Hello:

I am using Apache 1.3.12 with Tomcat 3.1 and I wanted to 
password protect a servlet running on Tomcat with the 
Apache password mechanism.

In my httpd.conf file, I placed the following lines:

AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user


But, it did not ask me for a password. But, if I change the location
match to:

AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user


(The only thing I changed is the location to a directory called
test)

Everything works fine in this case.

Is Tomcat intercepting the URL before apache has a chance to
check if it needs to ask for a password?

Is there a way to use Apache's authentication for URLs that
point to Tomcat?

If not, does Tomcat have authentication capabilities?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases






Re: What is net.class?

2000-12-18 Thread Craig R. McClanahan

"Smith, Steven M" wrote:

> Does anyone know why Apache/TomCat is looking for java/net.class?
>

They are looking for this class because some client asked for it.  That's why it
shows up in the access log.

My guess would be it's an applet, but without knowing anything about the client
that issued this request, there is no way to be sure.

Another possibility is that you have a file like Net.class (note the case
difference) -- in Tomcat 3.1 (before the 3.1.1 update), filename matches were
not case senstive.  They are in 3.1.1, 3.2, and 3.2.1.

Craig McClanahan





Re: J2EE & OpenEJB

2000-12-18 Thread Craig R. McClanahan

dferugson wrote:

> I noticed a reference to tomcat on the openEJB site.
> Then I went to apache.org and notice that the latest build of tomcat is
> JNDI complient
> Will tomcat evolve into an application server or is it already read for
> this?
>

I personally do not see Tomcat evolving into a J2EE-type application server.
Rather, I think you'll see folks like JBoss, OpenEJB, Enhydra, etc. embedding
Tomcat as their web container.

This is the same approach that Sun used in the J2EE reference implementation --
version 1.2 includes a highly modified version of Tomcat 3.0, and version 1.3 is
going to include Tomcat 4.0.

>
> If tomcat is not going the direction of app server is anyone making use
> of OpenEJB?
> Anybody have experience with JBOSS?\
>
> Sorry for the slight tangent ;)
> --
> Doug Ferguson
> Software Developer
> www.coremetrics.com
> 512-342-2623x212
> 512-619-9972(cell)

Craig McClanahan





Re: webapps are useless toys?!

2000-12-18 Thread Craig R. McClanahan

Steven Newton wrote:

> > So assuming the site requires "single sign-on".  And that there are
> > several segmentations of the site, each of which could
> > be handled by a different web-app:
> >
> > I'm getting the impression that I'm supposed to do some
> > kind of magic with the session cookie.  Is it necessary
> > to persist all of the session data, to be shared between
> > web-apps, in the database?  Or is there a trick for finding
> > the in-memory session data for another web-app?
> >
>
> A database would be necessary if you want the session information
> to persist across server shutdowns,

That actually turns out not to be the case.

Tomcat 4.0 already has code to persist and restore sessions across a server
shutdown, or across the restart of a single application (triggered by a class
being changed in autoreload mode, or by an administrative command).  It uses a
single disk file to save sessions to, or restore them from.

The only gotcha is that your session attributes need to be Serializable to be
saved and restored -- but you're going to need to do this in order to take
advantage of a server that supports migrating sessions between server instances
anyway.

> but if you just want to share
> it amongst web apps there are alternatives.  You could, for example,
> set up a JNDI context where all web apps needing access to particular
> session information could store and retrieve session variables.
> There's a number of ways to share session without going to a database
> solution.
>
> > What's the rationale behind this architecture?
> >
>
> Security, for one.  Multiple web apps running in the
> same application server are isolated from running into
> each others' space.
>
> s

Craig McClanahan





Q:forcing reload of a changed bean

2000-12-18 Thread Joakim Verona

hello,

is there a way to force reload of a recompiled bean?
ok, this is supposed to be automatic but it doesnt always work,
so is there a way to force tomcat to unload a class so that it
will be forced to reload the same class next time??

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



C:\Jakarta\jakarta-tomcat-3.2.1-src\build.xml:93: Cannot use classic compiler

2000-12-18 Thread Jacob Thomas
Title: C:\Jakarta\jakarta-tomcat-3.2.1-src\build.xml:93: Cannot use classic compiler





While trying to install Tomcat, got the following error:


"C:\Jakarta\jakarta-tomcat-3.2.1-src\build.xml:93: Cannot use classic compiler, a
s it is not available."


Tried removing the line
  
from build.xml but that did not make any difference.


Any suggestions?
--
Thanks in advance
Jacob





Re: Building output page by page.

2000-12-18 Thread Dave Smith



Hi Mark,
 
I'll repeat what I said in my 
earlier
response. You are not giving much
information about what you are doing.
 
You do mention making "database 
queries".
 
Lets assume you are accessing a DB 
with
sequel. In that case you can perform the 
following
type of query:
 
select * from some_table where primaryKey > min 
and primaryKey <= max;
 
Where min and max are limits you set. 
This would return a range of records between min 
and max, including max.
 
Translating into servlets:
 
A design that comes easily to mind 
would
use a controller servlet and a JSP 
page.
 
The controller is going to receive a POST from 

a webpage... The controller doesn't do 
anything,
just redirects output and passes on 
parameters.
 
form --> params( min, max) --> 
controller.
 
The controller redirects output to a 
JSP:
 
controller --> 
sendRedirect("/some.jsp?min=101&max=200");
 
The webpage is going to be produced as 
output
from a JSP called some.jsp:
 
JSP --> (current data, 101 through 200) and 
new form with code for next set of data.
 
...
current data
...
 






 
 
If this doesn't make any sense you might want 
to
read up on the technology before going much 
farther.
A good start would be Java Servlet Programming 
by Hunter and Crawford.
 
Dave

  - Original Message - 
  From: 
  Mark 
  Koscak 
  To: tomcat 
  Sent: Monday, December 18, 2000 5:39 
  PM
  Subject: Re: Building output page by 
  page.
  
  
  Hello again,
   
  I know someone responded to this message, I was unable to respond and the 
  original message was deleted. My apologies. (Don't ask long 
  story...)
   
  At present it takes around 13sec to build a page of 1300 rows over 10MB 
  Lan.  I am pushing HTML output in a display method using 
  out.println(...); right after my database table queries.
   
  My aim is to reduce the time it takes to display an initial page to the 
  end user, by breaking up the output into smaller chunks.  
   
  There is also a good chance that I will merge the two tables into one to 
  reduce the database connection requirements.
   
  Thanks Again.
  Mark
   
  /
  *    PREVOIUS MESSAGE
  /
   
  Hello everyone,
   
  I have build a Servlet application that creates a 
  single HTML page with up to 1300 rows in a table.
   
  Can anyone give me some links or advice on how I can break 
  this output into HTML pages with say 100 rows per table, with a corresponding 
  selection bar at the bottom of each screen, giving the user access to 
  any page they click on?
   
  Thanks in advance.
   
  Mark


Re: J2EE & OpenEJB

2000-12-18 Thread jdunn

>From what I have read Enterprise level applications
are headed to  3 or 4 tiers. Tier 1 is the client (browser)
Tier two is the Web server coupled with a container for presentation logic.

Tier three is optional and is a container for business logic (ie.
Enterprise Java Beans )
Tier four is the database/ data repository.

The basic idea is to separate the data from the presentation (display)
tomcat is a web server add on that provides a container for the
presentation
logicby supporting JSP & servletts. It works with several web servers-
Apache, IIS among them.  It is built on java and has versions for
Linux/Unix and
windows. It can run on the same machine or a different machine than the
webserver.
In fact, different contex can be on different machines.

You can of course skip the EJB tier and put JDBC inside the jsp or
servletts
if you consider a full blown EJB container as overkill. If tomcat evolves,
 I expect it to merge with the web servers as built in. Not in the
direction
of EJB.   Also check out cocoon - an XML-Java document system.

dferugson wrote:

> I noticed a reference to tomcat on the openEJB site.
> Then I went to apache.org and notice that the latest build of tomcat is
> JNDI complient
> Will tomcat evolve into an application server or is it already read for
> this?
>
> If tomcat is not going the direction of app server is anyone making use
> of OpenEJB?
> Anybody have experience with JBOSS?\
>
> Sorry for the slight tangent ;)
> --
> Doug Ferguson
> Software Developer
> www.coremetrics.com
> 512-342-2623x212
> 512-619-9972(cell)




Re: Building output page by page.

2000-12-18 Thread Mark Koscak




Hello again,
 
I know someone responded to this message, I was unable to respond and the 
original message was deleted. My apologies. (Don't ask long story...)
 
At present it takes around 13sec to build a page of 1300 rows over 10MB 
Lan.  I am pushing HTML output in a display method using out.println(...); 
right after my database table queries.
 
My aim is to reduce the time it takes to display an initial page to the end 
user, by breaking up the output into smaller chunks.  
 
There is also a good chance that I will merge the two tables into one to 
reduce the database connection requirements.
 
Thanks Again.
Mark
 
/
*    PREVOIUS MESSAGE
/
 
Hello everyone,
 
I have build a Servlet application that creates a single 
HTML page with up to 1300 rows in a table.
 
Can anyone give me some links or advice on how I can break 
this output into HTML pages with say 100 rows per table, with a corresponding 
selection bar at the bottom of each screen, giving the user access to 
any page they click on?
 
Thanks in advance.
 
Mark


3.2 + IIS: still having problems

2000-12-18 Thread Carles Pi-Sunyer

Hi,

I've been struggling for the last few days to integrate tomcat 3.2 with IIS.
My current situation is that I am getting the green up arrow for the filter,
but I'm getting 404 messages for the pages I'm requesting. 

I've tried the following advice without success:
1) use short directory names.
2) use the 3.1 workers.properties and uriworkermap.properties files
3) put the isapi_redirect.dll in a directory under the inetpub directory
4) reboot NT after changes

My IIS log files show this entry after a request:

20:17:11 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404

this is a little different then if I request a page that doesn't exist:

22:56:34 127.0.0.1 GET /notthere.html 404

What does the "+" after the isapi_redirect.dll mean?

Any other suggestions on getting this working?

Thanks,
Carles

Carles Pi-Sunyer
Stario, Inc.
http://www.stario.com
[EMAIL PROTECTED]
408 844-8333 ex:326
 



RE: Tomcat configuration question

2000-12-18 Thread Anthony Ikeda

This was brought up in the guru mailing list website:
There is some source code you need to rewrite and recompile the code.

I don't have the details handy, but if you email later I could dig it out
and pass it on.

Cheers
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143


> -Original Message-
> From: isu:jwkoh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 19 December 2000 6:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat configuration question
> 
> 
> sorry, no idea.
> - Original Message - 
> From: "Fabricio Pirez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 18, 2000 1:21 PM
> Subject: Tomcat configuration question
> 
> 
> > Hello
> > I'm using IIS+Tomcat+isapi_redirect.dll
> > I need to know how to disable directory browsing in a 
> directory served by
> > tomcat
> > Is it possible?
> > 
> > Thanks in advance
> > 
> > 
> 



New JSP based website

2000-12-18 Thread Alan Wright


Myself and a friend have just put a JSP based website up at www.free-minder.com
We have put a bit of background on the site up in the "About" section
and plan to put as much of the
source as we can in the New Year. I will post another message when
the source is available.
The site uses Interbase/Tomcat/JSP on a Cobalt RaQ4 and was developed
using JBuilder for the inter
active stuff and Perl for the batch stuff.
Please feel free to use the site as we intend to keep it free for use
and free of adverts.
 
Happy Christmas
Alan Wright and Fraser Maclennan
PS reply direct to my mail address as I have unsubscribed from the list
for the time being.


Re: bug in getUserPrincipal()?

2000-12-18 Thread Thom Park

Hi Mark,

I was using IE(5.5) -  I started up a fresh session from the icon on the
desktop for each test.
I also repeated the tesit using Netscape 4.7 and saw the same behaviour.

 I noticed that in  org.apache.tomcat.core.RequestImpl.getUserPrincipal() that
there's a test that goes something like:

if ( principal == null ) {
   principal = new SimplePrincipal( getRemoteUser());
   }

What happens if the principal isn't null and we have a different user logged in.

I'll be honest and say that my knowlege of what the relationship between the
RequestImpl object and the session
is somewhat clouded but I would have thought that I wouldn't be seeing this
behavior here.

Any ideas what I could have got wrong configuration-wise?

-Thom

p.s. did anyone take a look at that 'bug in security-role-ref' posting I sent
out? I need to verify with the
tomcat-elders that the change I proposed made sense prior to patching my copy of
tomcat, or
wether I'm making a damn fool of my self ;-)

-T>



"Palumbo, Mark" wrote:

> How did you "open" the second browser?  Did you ask your browser to spawn a
> new browser window, or did you open a new one via an icon, system menu,
> command line, etc.?
>
> If you ask an IE browser to open a new window, the two "browsers" will share
> the same cookie so tomcat will think they are the same user...
>
> > -Original Message-
> > From: Thom Park [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 18, 2000 4:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: bug in getUserPrincipal()?
> >
> >
> > Dear All,
> >
> > I'm seeing some odd behavior from getUserPrincipal(). I have a simple
> > servlet that calls:
> >
> > getRemoteUser(), getUserPrincipal() and isUserInRole().
> >
> > I've setup an appropriate web.xml and all is well until I access the
> > same servlet from two web-browsers on the same machine.
> >
> > In the first  browser, I login as user test1, in the second browser I
> > log in as user tomcat.
> >
> > In the first (correct) case, I see that the user is 'test1', the
> > principal is 'test1' and the user is in role.
> > In the second case, I see that the user is 'tomcat', but the principal
> > is still 'test1'.
> >
> > It seems to me that this is a bug (but I could be misconfiguring/using
> > something wrong)..
> >
> > Has anyone seen this behavior / can explain it such that I can
> > understand this - am I misunderstanding the
> > relationship between running servlets and connected clients?
> >
> >
> >




RE: web.xml parsing

2000-12-18 Thread Dave Newton

> I am a bit new to XML tools.  Can someone tell me what I should 
> be doing to be able to add and delete security constraint info 
> in the web.xml file?

If it's just a config file just go in with a text editor~is that what
you're asking?

You don't need to parse/etc. unless you need to do this programmatically.

Dave




web.xml parsing

2000-12-18 Thread John de la Garza

I am a bit new to XML tools.  Can someone tell me what I should be doing to
be able to add and delete security constraint info in the web.xml file?

I have tried reading some docs on XML as a whole, but I need to get going
quickly and don't have time to read everything about XML as a whole...I just
need to know what to focus on to be able to parse a data file and add in
stuff and delete stuff...for a config file




What is net.class?

2000-12-18 Thread Smith, Steven M

Does anyone know why Apache/TomCat is looking for java/net.class?

I am running Apache 1.3.14 with TomCat 3.2.1 after upgrading from 3.1 on
Windows NT 4.0, SP 4 under JDK1.2.2_005. After upgrading, the following
messages appeared in Apache's error.log:

[Mon Dec 18 13:36:18 2000] [error] [client ] File does not
exist:
d:/sms/junk/jakarta-tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps/xerox/html/jba
sim/java/net.class

and this message in access.log:

 - - [12/Dec/2000:13:30:57 -0500] "GET
/Xerox/HTML/JBAsim/java/net.class HTTP/1.0" 404 308

I have no references to a class named "net" in my source code. Any ideas why
this class is being referenced?

Thanks in advance for your help.


- Steve  



RE: bug in getUserPrincipal()?

2000-12-18 Thread Palumbo, Mark

How did you "open" the second browser?  Did you ask your browser to spawn a
new browser window, or did you open a new one via an icon, system menu,
command line, etc.?

If you ask an IE browser to open a new window, the two "browsers" will share
the same cookie so tomcat will think they are the same user...



> -Original Message-
> From: Thom Park [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 4:58 PM
> To: [EMAIL PROTECTED]
> Subject: bug in getUserPrincipal()?
> 
> 
> Dear All,
> 
> I'm seeing some odd behavior from getUserPrincipal(). I have a simple
> servlet that calls:
> 
> getRemoteUser(), getUserPrincipal() and isUserInRole().
> 
> I've setup an appropriate web.xml and all is well until I access the
> same servlet from two web-browsers on the same machine.
> 
> In the first  browser, I login as user test1, in the second browser I
> log in as user tomcat.
> 
> In the first (correct) case, I see that the user is 'test1', the
> principal is 'test1' and the user is in role.
> In the second case, I see that the user is 'tomcat', but the principal
> is still 'test1'.
> 
> It seems to me that this is a bug (but I could be misconfiguring/using
> something wrong)..
> 
> Has anyone seen this behavior / can explain it such that I can
> understand this - am I misunderstanding the
> relationship between running servlets and connected clients?
> 
> 
> 



bug in getUserPrincipal()?

2000-12-18 Thread Thom Park

Dear All,

I'm seeing some odd behavior from getUserPrincipal(). I have a simple
servlet that calls:

getRemoteUser(), getUserPrincipal() and isUserInRole().

I've setup an appropriate web.xml and all is well until I access the
same servlet from two web-browsers on the same machine.

In the first  browser, I login as user test1, in the second browser I
log in as user tomcat.

In the first (correct) case, I see that the user is 'test1', the
principal is 'test1' and the user is in role.
In the second case, I see that the user is 'tomcat', but the principal
is still 'test1'.

It seems to me that this is a bug (but I could be misconfiguring/using
something wrong)..

Has anyone seen this behavior / can explain it such that I can
understand this - am I misunderstanding the
relationship between running servlets and connected clients?






file name with space characters

2000-12-18 Thread mayan



I noticed that tomcat has trouble serving files when file name includes the
SPACE character, such as "client architecture.doc". Apache handles this problem
very well. Did any body have the same problem before? How did you fix that?

I have very few files to start with, so I just manually changed all SPACEs to
underscores.

Thanks.

Ma, Yanbin





servlet configuration help.

2000-12-18 Thread John Marquart

List members,
Excuse this relatively "newbie" question - but I have not yet
found anything in the FAQ or mailing list archives.

I am attempting to get my servlet - DataServ to work.  After fighting
various problems w/ classpaths and environment configurations, i finally
got stuck w/ the following error:

2000-12-18 05:18:05 - Ctx( /examples ): Exception in: R( /examples +
/servlet/DataServ + null) - java.lang.NullPointerException
at java.util.StringTokenizer.(Compiled Code)
at java.util.StringTokenizer.(Compiled Code)
at DataServ.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)


Does the "R( /examples + /servlet/DataServ + null)" bit mean that DataServ
recieved no arguments from the http line?  i.e. what does null refer to?

I am trying to call this servlet as:

http://fqdn:8080/examples/servlet/DataServ?collection=hoagy&type=music&page=1&version=screen&id=ATM-MC2-1-2-9

Is this the correct syntax to send arguments to the servlet?  This is how
the system I inherited does it w/ jserv.

It seems to me, based on the errors generated - that the servlet is not
recieving the arguments it should be


Any help would be greatly appreciated,

-john marquart





RE: link problem

2000-12-18 Thread Sean Jiang

Own your own personal link from Infotriever. Then your friends will not lose
your contacts anymore whenever you change your address.


http://my.infotriever.com/bobby2info
(Click to add my contact into your organizer and keep up-to-date)


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: December 18, 2000 4:21 PM
To: [EMAIL PROTECTED]
Subject: RE: link problem


You can use:   ":" + request.getServerPort()
 
 
jake

-Original Message-
From: MK [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:58 PM
To: [EMAIL PROTECTED]
Subject: link problem



I have a problem which breaks my head :-)
I am using Tomcat 3.2.1.
Here is what I have in server.xml
 

  
   

  
 
I have two pages one is located:
 D:\GuidanceExchange\exchange\index.jsp
and have a link 
test
 
test.jsp is another page located at
D:\GuidanceExchange\exchange\jsp\test.jsp
 
The problem is when I execute index.jsp page the link is pointing to
http:///exchange/jsp/test.jsp   which is
incorrect...it should point to 
http://127.0.0.1:8080/exchange/jsp/test.jsp
 . So, how do I get
127.0.0.1:8080 into my URL?
 
Thank you very much for any help in advance,
 
Maksim.



wierd problem reading remote mapped files in servlets

2000-12-18 Thread Betty Chang




Hi all -- has anyone seen this problem?   I running a servlet on 
Windows 2000, or NT, and it's trying to read a file that is mapped from a remote 
machine (e.g.:  m:\junk.txt, where m: is mapped to something on the 
network).  On Windows 2000, the drive will actually disconnect on me (when 
I run "net use", I see that)  and the program cannot read the file.
 
If I run the program as a main(), things work fine.
 
Any clues??
 
Thanks
 
Betty
Portal Wave, Inc.The Fastest 
Track to Integrated e-Businesswww.portalwave.com


RE: link problem

2000-12-18 Thread Jacob Kjome

You can use:   ":" + request.getServerPort()
 
 
jake

-Original Message-
From: MK [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:58 PM
To: [EMAIL PROTECTED]
Subject: link problem



I have a problem which breaks my head :-)
I am using Tomcat 3.2.1.
Here is what I have in server.xml
 

  
   

  
 
I have two pages one is located:
 D:\GuidanceExchange\exchange\index.jsp
and have a link 
test
 
test.jsp is another page located at
D:\GuidanceExchange\exchange\jsp\test.jsp
 
The problem is when I execute index.jsp page the link is pointing to
http:///exchange/jsp/test.jsp   which is
incorrect...it should point to 
http://127.0.0.1:8080/exchange/jsp/test.jsp
 . So, how do I get
127.0.0.1:8080 into my URL?
 
Thank you very much for any help in advance,
 
Maksim.




Getting Tomcat to run

2000-12-18 Thread Jon Pratt



I downloaded Apache and got it to run.  I 
downloaded Tomcat 3.2.1 build and tried to compile the java files. Got tons of 
errors. Can anyone point me at a definitive step by step Howto?  

I did the following (from Tomcat - A Minimalistic 
User's guide):


  Download the zip/tar.gz/whatever file from http://jakarta.apache.org/downloads/binindex.html. 

  Unzip the file into some directory (say foo). This should create a new 
  subdirectory named "tomcat". 
  Change directory to "tomcat" and set a new environment variable 
  (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. 
  
On Win32 you should type: "set TOMCAT_HOME=foo\tomcat" 
On UNIX you should type: for bash/sh "TOMCAT_HOME=foo/tomcat ; 
export TOMCAT_HOME"for tcsh "setenv TOMCAT_HOME foo/tomcat" 
  Set the environment variable JAVA_HOME to point to the root directory of 
  your JDK hierarchy, then add the Java interpreter to your PATH environment 
  variable. 
That's it! You can now execute Tomcat and it will run as a stand-alone (type 
1) servlet container...BUT that's not IT.


RE: J2EE & OpenEJB

2000-12-18 Thread Alex Moffat

I'm currently using a JBoss/Tomcat combination (the separate processes
version, not the all in one process version). It works fine with 3.1 tomcat.
I'm having problems with the 3.2 tomcat version related to how it finds, or
rather doesn't find, the classes that implement the beans' interfaces.

Alex

> -Original Message-
> From: dferugson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: J2EE & OpenEJB
> 
> 
> I noticed a reference to tomcat on the openEJB site.
> Then I went to apache.org and notice that the latest build of 
> tomcat is
> JNDI complient
> Will tomcat evolve into an application server or is it 
> already read for
> this?
> 
> If tomcat is not going the direction of app server is anyone 
> making use
> of OpenEJB?
> Anybody have experience with JBOSS?\
> 
> Sorry for the slight tangent ;)
> -- 
> Doug Ferguson
> Software Developer
> www.coremetrics.com
> 512-342-2623x212
> 512-619-9972(cell)
> 



J2EE & OpenEJB

2000-12-18 Thread dferugson

I noticed a reference to tomcat on the openEJB site.
Then I went to apache.org and notice that the latest build of tomcat is
JNDI complient
Will tomcat evolve into an application server or is it already read for
this?

If tomcat is not going the direction of app server is anyone making use
of OpenEJB?
Anybody have experience with JBOSS?\

Sorry for the slight tangent ;)
-- 
Doug Ferguson
Software Developer
www.coremetrics.com
512-342-2623x212
512-619-9972(cell)



link problem

2000-12-18 Thread MK




I have a problem which breaks my head 
:-)
I am using Tomcat 3.2.1.
Here is what I have in server.xml
 
 
docBase="D:/GuidanceExchange/exchange" 
 
crossContext="false" 
debug="0" 
 
reloadable="true" >     
   
I have two pages one is located:
 D:\GuidanceExchange\exchange\index.jsp
and have a link  test
 
test.jsp is another page located at
D:\GuidanceExchange\exchange\jsp\test.jsp
 
The problem is when I execute index.jsp page the 
link is pointing to http:///exchange/jsp/test.jsp which is 
incorrect...it should point to 
http://127.0.0.1:8080/exchange/jsp/test.jsp. 
So, how do I get 127.0.0.1:8080 into my URL?
 
Thank you very much for any help in 
advance,
 
Maksim.


Very Basic Help on TOMCAT how do I use it?

2000-12-18 Thread jang won koh

I installed it and compiled a servlet example. Where do I put servlet 
classes and JSP and how do I invoke them from Internet Explorer? How do I 
use things in tomcat\webapps\examples and \root and \test? I want to test 
but have no idea how. Thank you in advance




RE: webapps are useless toys?!

2000-12-18 Thread Steven Newton

> So assuming the site requires "single sign-on".  And that there are
> several segmentations of the site, each of which could
> be handled by a different web-app:
> 
> I'm getting the impression that I'm supposed to do some
> kind of magic with the session cookie.  Is it necessary
> to persist all of the session data, to be shared between
> web-apps, in the database?  Or is there a trick for finding
> the in-memory session data for another web-app?
> 

A database would be necessary if you want the session information
to persist across server shutdowns, but if you just want to share
it amongst web apps there are alternatives.  You could, for example,
set up a JNDI context where all web apps needing access to particular
session information could store and retrieve session variables.
There's a number of ways to share session without going to a database
solution.

> What's the rationale behind this architecture?
> 

Security, for one.  Multiple web apps running in the 
same application server are isolated from running into
each others' space.

s




serving PHP files with Tomcat 3.2

2000-12-18 Thread Christian Wenz

Hello,

after upgrading from 3.1 to 3.2.x, I have a problems if I want to server PHP
files - Tomcat returns the source code to the browser. I don't think I made
any mistake in web.xml - but can it be that web.xml has another
functionality in 3.2, and if so, where else can I commit changes?

Regards
Christian




CLASSPATH precedence

2000-12-18 Thread David Miller

Hi,

Two related questions regarding CLASSPATH precedence:

(A) If I place the same *.jar files (same names but different versions)
in both
$TOMCAT_HOME/webapps/WEBAPP_A/WEB-INF/lib
and in $TOMCAT_HOME/webapps/WEBAPP_B/WEB-INF/lib

does the version of the *.jar files in WEBAPP_A or in WEBAPP_B take
precedence? Or does it depend on which context I am in (i.e., which
webapp tomcat is running). How does tomcat figure out which version of
the *.jar files to use? Do classes loaded from one *.jar file get
unloaded if I am running in a different context?

(B) (similar question but for system *.jar files vs tomcat *.jar files):

If I place the same *.jar files (same names but different versions) in
both
$TOMCAT_HOME/webapps/WEBAPP_A/WEB-INF/lib
and in my system CLASSPATH

which version of the *.jar files take precedence when I am running ?

Any answers/information regarding these two questions is greatly
appreciated, especially ones which shed some light on how tomcat figures
out which version of classes to load. Thanks,

-David-




FW: Tomcat configuration question

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Paul FitzPatrick [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, December 18, 2000 1:53 PM
To: [EMAIL PROTECTED]
Subject:RE: Tomcat configuration question

Fram an earlier post :

conf/web.xml is not used in Tomcat 3.2.x.

Try this in server.xml:




Regards,
Paul


-Original Message-
From: isu:jwkoh [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 02:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat configuration question


sorry, no idea.
- Original Message - 
From: "Fabricio Pirez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 1:21 PM
Subject: Tomcat configuration question


> Hello
> I'm using IIS+Tomcat+isapi_redirect.dll
> I need to know how to disable directory browsing in a directory served by
> tomcat
> Is it possible?
> 
> Thanks in advance
> 
> 






FW: Bizarre problem -- works fine, then doesn't

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Dave Newton [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:48 PM
To: [EMAIL PROTECTED]
Subject:RE: Bizarre problem -- works fine, then doesn't

> I have restarted Tomcat again this morning, and all the material that was
> in the logs is no longer there (since the restart). That seems a little
> weird. Is that normal?

Yeah. I'm not sure if I like that either.

> Anyway, I recall that none of them had anything that looked like an error
> message. The jasper log recorded a series of requests and the parameters
> that were sent. The servlet log just had a series of about 15 entries that
> began with

This was my stupid, java errors show up on the console you started tomcat
on, not in the error log. Sorry about that.

> Meanwhile, I'll explore this dropped database connection concept. Maybe
> there's something to that.

I actually have two seperate errors regarding DB stuff but I haven't had
time to track them down yet. If you can, check your tomcat startup console
to see what happens.

(And let me know what happens, too, 'cuz maybe it'll help me out :D

Dave





FW: Intermittent shutdown failures.

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Saurabh Shukla [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:13 AM
To: [EMAIL PROTECTED]
Subject:RE: Intermittent shutdown failures.

refer archives.

-Original Message-
From: James Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 10:43 AM
To: [EMAIL PROTECTED]
Subject: Intermittent shutdown failures.



Anyone seen any problems with Tomcat not shutting down cleanly, and still
binding connectors to ports? I have AJP12 and HTTP connectors up on 3.2.1
(same as last message, Sun Solaris 2.6, JDK 1.3.0). Sometimes its fine,
sometimes it fails - and a startup after a failed shutdown gets an
"AddressInUse" exception. Do you know what it is?

Ta,
James

--
  James Bromberger,
  Senior Web/Systems Administrator, JDV
  +61 8 9268 2909, +61 417 322 500
  Fax: +61 8 9268 0200

JDV - e-Commerce and Outsourcing Solutions for Financial Services
http://www.jdv.com/

Any securities recommendation contained in this document is unsolicited
general information only. Do not act on a recommendation without first
consulting your investment advisor to determine whether the recommendation
is appropriate for your investment objectives, financial situation and
particular needs.
JDV  believes that any information or advice (including any securities
recommendation) contained in this document is accurate when issued. However,
JDV does not warrant its accuracy or reliability. JDV, its officers, agents
and employees exclude all liability whatsoever, in negligence or otherwise,
for any loss or damage relating to this document to the full extent
permitted by law.






FW: Apache doesn't start with mod_jk

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Palumbo, Mark [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, December 18, 2000 1:37 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject:RE: Apache doesn't start with mod_jk

I still get the same error.  :(

Any other ideas?  

Here's the entire link statement and subsequent error message incase it
helps...first here's the "normal" way where 'apxs' flops out...

ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/usr/local/apache/libexec/httpd.ex
p -lc -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o
jk_sockbuf
.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
jk_jni_worker.o j
k_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o

ld: 0711-244 ERROR: No csects or exported symbols have been saved.

apxs:Break: Command failed with rc=8  


Then if I just run gcc directly to do the link I get:

$ gcc -shared -o mod_jk.so *.o
collect2: ld returned 8 exit status
ld: 0711-244 ERROR: No csects or exported symbols have been saved.


Again if it helps my environment is...
aix 4.2
ibm's jdk 1.1.8
gcc 2.8.1
perl 5.004_01
apache 1.3.14

Thank you very much!!!
-Mark-


> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Apache doesn't start with mod_jk
> 
> 
> See my previous message regarding the final link step (it's also
> in the documentation).
> 
> > I keep getting clean compiles, but the link process always 
> fails with:
> > apxs:Break: Command failed with rc=8
> 
> Dave
> 




FW: At Value must be quoted. Error

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Michael.L.Smith [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:36 PM
To: Tomcat-User (E-mail)
Subject:FW: At Value must be quoted.  Error



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Kitching Simon [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:33 PM
To: '[EMAIL PROTECTED]'
Subject:RE: At Value must be quoted.  Error



> -Original Message-
> From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 7:48 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: At Value must be quoted.  Error
>
> Thxs Simon,
>
> I had a typo that I was looking right at and I could not see.  Nothing
> like
> staring to hard..
>
> Is there a document anywhere that describes error messages?  The error
> message was not clear to me, but then again I am new to this.
[Kitching Simon]
For this type of error, probably not. As I said, tomcat uses an XML
parser (probably
Xerces, as it's from apache..). So the place to look for any
documentation
on xml-parser-related errors is in the Xerces(?) documentation.

In general, the documentation on tomcat isn't very in-depth. That's
the price
you pay for using open-source; who wants to write docs when they
could
be coding :-) Having said that, people are working on it, so I guess
that the
situation will improve over time. For now, though, you need to
scratch the
old noggin a bit, search the email archives, and in extreme cases,
read the
code...and for those really tough cases, there's always this group.

Cheers,

Simon


> Thanks again,
> Donald
>
> - Original Message -
> From: "Kitching Simon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 18, 2000 11:03 AM
> Subject: RE: At Value must be quoted. Error
>
>
> > Hi Don,
> >
> > It looks to me like the XML parser that tomcat uses to read the file is
> > objecting to something in the file. Minor typos are sometimes damn
> > hard to spot :-)
> >
> > I suggest:
> > (a)
> > try commenting out blocks of the server.xml file, and restarting.
> > of course, tomcat won't *run* properly with only half a config file, but
> > you should be able to see when the config file at least parses.
> > By the old divide-and-conquer method, you should be able to narrow
> > things down to the point you can spot the problem,
> > (b)
> > If you have made only minor changes to the default file, you can try
> > using "diff" to compare the version in the distribution with the one
> that
> > doesn't work.
> > (c)
> > if all else fails, try posting the server.xml file to this group...
> >
> > Cheers,
> >
> > Simon
> >
> > > -Original Message-
> > > From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, December 18, 2000 6:51 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: At Value must be quoted.  Error
> > >
> > >
> > > Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
> > > trying make modifications to the default server.xml file.  After the
> > > modifications restarted tomcat and got the errors below.  I also
> returned
> > > the server.xml to the orginal state and I still get the same error.
> Any
> > > ideas?  What is the error in reference to?  I have search the
> > > documentation and can't find anything that relates.
> > >
> > > [root@host bin]# ./startup.sh
> > > Using classpath:
> > >
> .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
> > >
> er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
> > >
> /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
> > >
> omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
> > >
> /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
> > > arta-tomcat/src
> > > [root@host bin]# ERROR reading
> /usr/local/jakarta-tomcat/conf/server.xml
> > > At Value must be quoted.
> > >
> > > FATAL: configuration error
> > > java.lang.NullPointerException:
> > > at
> > > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
> > > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> > > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> > >
> > > Thanks,
> > >
> > > Donald Mullaney
> > >
> > > Melting Sand, LLC
> > > 7660 E. Broadway Blvd Suite 308
> > > Tucson, AZ 85710
> > >
> > > E-Mail: [EMAIL PROTECTED] 

RE: Tomcat configuration question

2000-12-18 Thread Paul FitzPatrick

Fram an earlier post :

conf/web.xml is not used in Tomcat 3.2.x.

Try this in server.xml:




Regards,
Paul


-Original Message-
From: isu:jwkoh [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 02:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat configuration question


sorry, no idea.
- Original Message - 
From: "Fabricio Pirez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 1:21 PM
Subject: Tomcat configuration question


> Hello
> I'm using IIS+Tomcat+isapi_redirect.dll
> I need to know how to disable directory browsing in a directory served by
> tomcat
> Is it possible?
> 
> Thanks in advance
> 
> 





RE: Bizarre problem -- works fine, then doesn't

2000-12-18 Thread Dave Newton

> I have restarted Tomcat again this morning, and all the material that was
> in the logs is no longer there (since the restart). That seems a little
> weird. Is that normal?

Yeah. I'm not sure if I like that either.

> Anyway, I recall that none of them had anything that looked like an error
> message. The jasper log recorded a series of requests and the parameters
> that were sent. The servlet log just had a series of about 15 entries that
> began with

This was my stupid, java errors show up on the console you started tomcat
on, not in the error log. Sorry about that.

> Meanwhile, I'll explore this dropped database connection concept. Maybe
> there's something to that.

I actually have two seperate errors regarding DB stuff but I haven't had
time to track them down yet. If you can, check your tomcat startup console
to see what happens.

(And let me know what happens, too, 'cuz maybe it'll help me out :D

Dave




RE: Intermittent shutdown failures.

2000-12-18 Thread Saurabh Shukla

refer archives.

-Original Message-
From: James Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 10:43 AM
To: [EMAIL PROTECTED]
Subject: Intermittent shutdown failures.



Anyone seen any problems with Tomcat not shutting down cleanly, and still
binding connectors to ports? I have AJP12 and HTTP connectors up on 3.2.1
(same as last message, Sun Solaris 2.6, JDK 1.3.0). Sometimes its fine,
sometimes it fails - and a startup after a failed shutdown gets an
"AddressInUse" exception. Do you know what it is?

Ta,
James

--
  James Bromberger,
  Senior Web/Systems Administrator, JDV
  +61 8 9268 2909, +61 417 322 500
  Fax: +61 8 9268 0200

JDV - e-Commerce and Outsourcing Solutions for Financial Services
http://www.jdv.com/

Any securities recommendation contained in this document is unsolicited
general information only. Do not act on a recommendation without first
consulting your investment advisor to determine whether the recommendation
is appropriate for your investment objectives, financial situation and
particular needs.
JDV  believes that any information or advice (including any securities
recommendation) contained in this document is accurate when issued. However,
JDV does not warrant its accuracy or reliability. JDV, its officers, agents
and employees exclude all liability whatsoever, in negligence or otherwise,
for any loss or damage relating to this document to the full extent
permitted by law.





RE: Apache doesn't start with mod_jk

2000-12-18 Thread Simon Orchanian

Mark,

I'm getting the EXACT same error messages on
both occasions. I could really use some help
from some of the experts out there. Please!

My environment is Solaris 2.7.

Thank you in advance,
Simon


--- "Palumbo, Mark" <[EMAIL PROTECTED]> wrote:
> I still get the same error.  :(
> 
> Any other ideas?  
> 
> Here's the entire link statement and subsequent error message incase it
> helps...first here's the "normal" way where 'apxs' flops out...
> 
> ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
> -bI:/usr/local/apache/libexec/httpd.ex
> p -lc -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o
> jk_sockbuf
> .o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
> jk_jni_worker.o j
> k_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o
> 
> ld: 0711-244 ERROR: No csects or exported symbols have been saved.
> 
> apxs:Break: Command failed with rc=8  
> 
> 
> Then if I just run gcc directly to do the link I get:
> 
> $ gcc -shared -o mod_jk.so *.o
> collect2: ld returned 8 exit status
> ld: 0711-244 ERROR: No csects or exported symbols have been saved.
> 
> 
> Again if it helps my environment is...
> aix 4.2
> ibm's jdk 1.1.8
> gcc 2.8.1
> perl 5.004_01
> apache 1.3.14
> 
> Thank you very much!!!
> -Mark-
> 
> 
> > -Original Message-
> > From: Dave Newton [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 18, 2000 11:14 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Apache doesn't start with mod_jk
> > 
> > 
> > See my previous message regarding the final link step (it's also
> > in the documentation).
> > 
> > > I keep getting clean compiles, but the link process always 
> > fails with:
> > > apxs:Break: Command failed with rc=8
> > 
> > Dave
> > 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



RE: Apache doesn't start with mod_jk

2000-12-18 Thread Palumbo, Mark

I still get the same error.  :(

Any other ideas?  

Here's the entire link statement and subsequent error message incase it
helps...first here's the "normal" way where 'apxs' flops out...

ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/usr/local/apache/libexec/httpd.ex
p -lc -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o
jk_sockbuf
.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
jk_jni_worker.o j
k_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o

ld: 0711-244 ERROR: No csects or exported symbols have been saved.

apxs:Break: Command failed with rc=8  


Then if I just run gcc directly to do the link I get:

$ gcc -shared -o mod_jk.so *.o
collect2: ld returned 8 exit status
ld: 0711-244 ERROR: No csects or exported symbols have been saved.


Again if it helps my environment is...
aix 4.2
ibm's jdk 1.1.8
gcc 2.8.1
perl 5.004_01
apache 1.3.14

Thank you very much!!!
-Mark-


> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Apache doesn't start with mod_jk
> 
> 
> See my previous message regarding the final link step (it's also
> in the documentation).
> 
> > I keep getting clean compiles, but the link process always 
> fails with:
> > apxs:Break: Command failed with rc=8
> 
> Dave
> 



FW: At Value must be quoted. Error

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Kitching Simon [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:33 PM
To: '[EMAIL PROTECTED]'
Subject:RE: At Value must be quoted.  Error



> -Original Message-
> From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 7:48 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: At Value must be quoted.  Error
>
> Thxs Simon,
>
> I had a typo that I was looking right at and I could not see.  Nothing
> like
> staring to hard..
>
> Is there a document anywhere that describes error messages?  The error
> message was not clear to me, but then again I am new to this.
[Kitching Simon]
For this type of error, probably not. As I said, tomcat uses an XML
parser (probably
Xerces, as it's from apache..). So the place to look for any
documentation
on xml-parser-related errors is in the Xerces(?) documentation.

In general, the documentation on tomcat isn't very in-depth. That's
the price
you pay for using open-source; who wants to write docs when they
could
be coding :-) Having said that, people are working on it, so I guess
that the
situation will improve over time. For now, though, you need to
scratch the
old noggin a bit, search the email archives, and in extreme cases,
read the
code...and for those really tough cases, there's always this group.

Cheers,

Simon


> Thanks again,
> Donald
>
> - Original Message -
> From: "Kitching Simon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 18, 2000 11:03 AM
> Subject: RE: At Value must be quoted. Error
>
>
> > Hi Don,
> >
> > It looks to me like the XML parser that tomcat uses to read the file is
> > objecting to something in the file. Minor typos are sometimes damn
> > hard to spot :-)
> >
> > I suggest:
> > (a)
> > try commenting out blocks of the server.xml file, and restarting.
> > of course, tomcat won't *run* properly with only half a config file, but
> > you should be able to see when the config file at least parses.
> > By the old divide-and-conquer method, you should be able to narrow
> > things down to the point you can spot the problem,
> > (b)
> > If you have made only minor changes to the default file, you can try
> > using "diff" to compare the version in the distribution with the one
> that
> > doesn't work.
> > (c)
> > if all else fails, try posting the server.xml file to this group...
> >
> > Cheers,
> >
> > Simon
> >
> > > -Original Message-
> > > From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, December 18, 2000 6:51 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: At Value must be quoted.  Error
> > >
> > >
> > > Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
> > > trying make modifications to the default server.xml file.  After the
> > > modifications restarted tomcat and got the errors below.  I also
> returned
> > > the server.xml to the orginal state and I still get the same error.
> Any
> > > ideas?  What is the error in reference to?  I have search the
> > > documentation and can't find anything that relates.
> > >
> > > [root@host bin]# ./startup.sh
> > > Using classpath:
> > >
> .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
> > >
> er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
> > >
> /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
> > >
> omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
> > >
> /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
> > > arta-tomcat/src
> > > [root@host bin]# ERROR reading
> /usr/local/jakarta-tomcat/conf/server.xml
> > > At Value must be quoted.
> > >
> > > FATAL: configuration error
> > > java.lang.NullPointerException:
> > > at
> > > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
> > > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> > > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> > >
> > > Thanks,
> > >
> > > Donald Mullaney
> > >
> > > Melting Sand, LLC
> > > 7660 E. Broadway Blvd Suite 308
> > > Tucson, AZ 85710
> > >
> > > E-Mail: [EMAIL PROTECTED] 
> > > Phone: 520.918.SAND (7263)
> >




RE: At Value must be quoted. Error

2000-12-18 Thread Kitching Simon



> -Original Message-
> From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 7:48 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: At Value must be quoted.  Error
> 
> Thxs Simon,
> 
> I had a typo that I was looking right at and I could not see.  Nothing
> like
> staring to hard..
> 
> Is there a document anywhere that describes error messages?  The error
> message was not clear to me, but then again I am new to this.
[Kitching Simon]  
For this type of error, probably not. As I said, tomcat uses an XML
parser (probably
Xerces, as it's from apache..). So the place to look for any
documentation
on xml-parser-related errors is in the Xerces(?) documentation. 

In general, the documentation on tomcat isn't very in-depth. That's
the price
you pay for using open-source; who wants to write docs when they
could
be coding :-) Having said that, people are working on it, so I guess
that the 
situation will improve over time. For now, though, you need to
scratch the
old noggin a bit, search the email archives, and in extreme cases,
read the 
code...and for those really tough cases, there's always this group.

Cheers,

Simon


> Thanks again,
> Donald
> 
> - Original Message -
> From: "Kitching Simon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 18, 2000 11:03 AM
> Subject: RE: At Value must be quoted. Error
> 
> 
> > Hi Don,
> >
> > It looks to me like the XML parser that tomcat uses to read the file is
> > objecting to something in the file. Minor typos are sometimes damn
> > hard to spot :-)
> >
> > I suggest:
> > (a)
> > try commenting out blocks of the server.xml file, and restarting.
> > of course, tomcat won't *run* properly with only half a config file, but
> > you should be able to see when the config file at least parses.
> > By the old divide-and-conquer method, you should be able to narrow
> > things down to the point you can spot the problem,
> > (b)
> > If you have made only minor changes to the default file, you can try
> > using "diff" to compare the version in the distribution with the one
> that
> > doesn't work.
> > (c)
> > if all else fails, try posting the server.xml file to this group...
> >
> > Cheers,
> >
> > Simon
> >
> > > -Original Message-
> > > From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, December 18, 2000 6:51 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: At Value must be quoted.  Error
> > >
> > >
> > > Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
> > > trying make modifications to the default server.xml file.  After the
> > > modifications restarted tomcat and got the errors below.  I also
> returned
> > > the server.xml to the orginal state and I still get the same error.
> Any
> > > ideas?  What is the error in reference to?  I have search the
> > > documentation and can't find anything that relates.
> > >
> > > [root@host bin]# ./startup.sh
> > > Using classpath:
> > >
> .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
> > >
> er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
> > >
> /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
> > >
> omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
> > >
> /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
> > > arta-tomcat/src
> > > [root@host bin]# ERROR reading
> /usr/local/jakarta-tomcat/conf/server.xml
> > > At Value must be quoted.
> > >
> > > FATAL: configuration error
> > > java.lang.NullPointerException:
> > > at
> > > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
> > > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> > > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> > >
> > > Thanks,
> > >
> > > Donald Mullaney
> > >
> > > Melting Sand, LLC
> > > 7660 E. Broadway Blvd Suite 308
> > > Tucson, AZ 85710
> > >
> > > E-Mail: [EMAIL PROTECTED] 
> > > Phone: 520.918.SAND (7263)
> >



FW: Tomcat 3.2 and EJB server - Class Not Found exception

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Alex Moffat [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:47 PM
To: [EMAIL PROTECTED]
Subject:Tomcat 3.2 and EJB server - Class Not Found exception

Trying to use Tomcat 3.2 and JBoss. After battling security problems I get
to the point where Tomcat attempts to load the ejb home interface, and it
won't, even thought the correct classes are in correct webapps subdirectory.
However, if I jar up the classes needed for the home interface and put that
file in the ${TOMCAT_HOME}/lib directory then it finds them there.

Is this a knows problem or is there some config I've got wrong. BTW I've got
the same Tomcat and EJB server setup working fine under Tomcat 3.1

Thanks
Alex

---
Enjoy the different peculiar world as for the plastic model




FW: LDAPRealm

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Tim McNerney [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, December 18, 2000 1:30 PM
To: [EMAIL PROTECTED]
Subject:Re: LDAPRealm

> Anyone working on an LDAPRealm?

A good start might be to check out the LDAP Tomcat example from
Professional JSP from Wrox Press. They set up a fairly simple, but
workable LDAP security mechanism, though it is set up to work with an
older version of Tomcat. Perhaps with the permission of Mark Wilcox, the
author of the chapter, it would be possible to put together an LDAPRealm
using his example. I know people were able to get the code from the
example (available at wrox.com) to work with a more recent release of
Tomcat.

--Tim




Tomcat 3.2 and EJB server - Class Not Found exception

2000-12-18 Thread Alex Moffat

Trying to use Tomcat 3.2 and JBoss. After battling security problems I get
to the point where Tomcat attempts to load the ejb home interface, and it
won't, even thought the correct classes are in correct webapps subdirectory.
However, if I jar up the classes needed for the home interface and put that
file in the ${TOMCAT_HOME}/lib directory then it finds them there. 

Is this a knows problem or is there some config I've got wrong. BTW I've got
the same Tomcat and EJB server setup working fine under Tomcat 3.1

Thanks
Alex

---
Enjoy the different peculiar world as for the plastic model 



Re: LDAPRealm

2000-12-18 Thread Tim McNerney

> Anyone working on an LDAPRealm?

A good start might be to check out the LDAP Tomcat example from
Professional JSP from Wrox Press. They set up a fairly simple, but
workable LDAP security mechanism, though it is set up to work with an
older version of Tomcat. Perhaps with the permission of Mark Wilcox, the
author of the chapter, it would be possible to put together an LDAPRealm
using his example. I know people were able to get the code from the
example (available at wrox.com) to work with a more recent release of
Tomcat.

--Tim



Re: Tomcat configuration question

2000-12-18 Thread isu:jwkoh

sorry, no idea.
- Original Message - 
From: "Fabricio Pirez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 1:21 PM
Subject: Tomcat configuration question


> Hello
> I'm using IIS+Tomcat+isapi_redirect.dll
> I need to know how to disable directory browsing in a directory served by
> tomcat
> Is it possible?
> 
> Thanks in advance
> 
> 




Re: Apache-Tomcat configuration problems: PLEASE HELP

2000-12-18 Thread Dave Smith

Dave,

For me, the epiphany came when I figured out
that the server.xml Context needs to match up
with the apache directory you are serving out of.

See how your server.xml is mapping
the docBase to webapps/examples? That is
most likely a folder in the tomcat installation.
Apache doesn't know anything about that. To
synch them up, do something like this:

DocumentRoot for apache:  "i:/program files/Apache-1.3.14/htdocs"

in server.xml:




This should get you working.

Regards,

Dave
- Original Message -
From: "Dave Emerson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 9:43 AM
Subject: Apache-Tomcat configuration problems: PLEASE HELP


> Hi, I've been trying to get Tomcat and Apache configured to avoid the need
> to reference the port number in the URL.  Instead of
> http://localhost:8080/, I want to be able to say
> http://localhost/servlet/.   Isn't that what mod_jk is supposed to do for
> me?  At the moment I just like to get the same display of the default
> static web page that displays when I enter http://localhost:8080/.  Am I
> missing something fundamental here?
>
> I've followed mod_jk-howto, apache-tomcat-howto, workers-howto.  My
> configuration is entirely vanilla.  Tomcat works fine standalone.  Apache
> works fine standalone (including virtual hosts).
>
> My software is as follows:
> OS -> Win2000 Server
> Apache -> 1.3.14
> JKD -> 1.3
> Tomcat -> 3.2.1
>
> excerpts from various config files and logs are:
>
> ###
> SERVER.XML:
> except for enabling debugging and the host section below, the server.xml
> file is as shipped with 3.2.1
> ###
>
>  
>   docBase="webapps/examples" />
>   docBase="webapps/ROOT" />
>  
>
>
> ###
> HTTPD.CONF
> except for setting the following, the httpd.conf is as shipped with 1.3.14
> ###
>
> ServerRoot "i:/program files/Apache-1.3.14"
> DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
> 
> ServerName localhost
>
> include I:/Dev/jakarta-tomcat/conf/mod_jk.conf
>
> NameVirtualHost *
>
> 
>  ServerName localhost
>  DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
>  JkMount /*.jsp ajp12
>  JkMount /servlet/* ajp12
> 
> 
>  ServerAdmin [EMAIL PROTECTED]
>  DocumentRoot "I:/DataFiles/SabrewingRoot"
>  ServerName www.sabrewing.com
>  ErrorLog logs/www.sabrewing.com-error_log
>  JkMount /*.jsp ajp12
>  JkMount /servlet/* ajp12
>  CustomLog logs/www.sabrewing.com-access_log common
> 
>
>
> ###
> MOD_JK.CONF
> ###
>
> ###
> # Auto generated configuration. Dated: Sun Dec 17 08:14:13 EST 2000
> ###
>
> #
> # The following line instructs Apache to load the jk module
> #
> LoadModule jk_module modules/mod_jk.dll
>
> JkWorkersFile "I:/Dev/jakarta-tomcat/conf/workers.properties"
> JkLogFile "I:/Dev/jakarta-tomcat/logs/mod_jk.log"
>
> #
> # Log level to be used by mod_jk
> #
> JkLogLevel debug
>
> ###
> # SSL configuration   #
> #
> # By default mod_jk is configured to collect SSL information from
> # the apache environment and send it to the Tomcat workers. The
> # problem is that there are many SSL solutions for Apache and as
> # a result the environment variable names may change.
> #
> # The following (commented out) JK related SSL configureation
> # can be used to customize mod_jk's SSL behaviour.
> #
> # Should mod_jk send SSL information to Tomact (default is On)
> # JkExtractSSL Off
> #
> # What is the indicator for SSL (default is HTTPS)
> # JkHTTPSIndicator HTTPS
> #
> # What is the indicator for SSL session (default is SSL_SESSION_ID)
> # JkSESSIONIndicator SSL_SESSION_ID
> #
> # What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
> # JkCIPHERIndicator SSL_CIPHER
> #
> # What is the indicator for the client SSL certificated (default is
> SSL_CLIENT_CERT)
> # JkCERTSIndicator SSL_CLIENT_CERT
> #
> # #
> ###
>
> #
> # Root context mounts for Tomcat
> #
> JkMount /*.jsp ajp12
> JkMount /servlet/* ajp12
>
> #
> # Auto configuration for the /examples context starts.
> #
>
> #
> # The following line makes apache aware of the location of the /

Tomcat configuration question

2000-12-18 Thread Fabricio Pirez

Hello
I'm using IIS+Tomcat+isapi_redirect.dll
I need to know how to disable directory browsing in a directory served by
tomcat
Is it possible?

Thanks in advance




mod_jk.so HELP

2000-12-18 Thread Thoger Sondergaard

newbi can't build mod_jk.so
Use this command to build (try to :)
sh apxs -o mod_jk.so -I../jk -I/usr/java/jdk1.3/include 
-I/usr/java/jdk1.3/include/linux -c *.c ../jk/*.c

perl-5.6.0-9 is installet and I start in the folder /src/native/apache1.3

But this is what I get:
apxs: require: command not found
apxs: use: command not found
apxs: package: command not found
apxs: line 72: syntax error near unexpected token `q(h'
apxs: line 72: `my $CFG_TARGET= q(httpd);# substituted 
via Makefile.tmpl '

Could someone help me figur out what I'm doing wrong

Thanks!
tsj
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Problems with change from 3.1 to 3.2

2000-12-18 Thread tobias . reinhardt

Hi

I have an web-app, which was running in tomcat 3.1 without error.
I tried to deploy this web-app in tomcat 3.2, but i get the following exception:

java.lang.NullPointerException at 
org.apache.tomcat.facade.HttpSessionFacade.getValue(HttpSessionFacade.java:158)

I know, that tomcat3.2 is now casesensitiv and i am sure that this is not the 
reason.
What else did change from 3.1 to 3.2 or is this maybe a bug ?

Tobias Reinhardt




Re: getting a jsp file to always be executed on form-based authentification

2000-12-18 Thread Craig R. McClanahan

Joakim Verona wrote:

> hello,
>
> i would like a certain jsp file to always be executed when form based auth succeeds, 
>regardless of which
> resource we are trying to get at, something like an event-handler for the auth event.
>
> i cant really find a provission for such a function, other than having some session 
>variable
> to check against, and including the same piece of code in every page.
>
> This is doable, but is there any more elegant solution?
>

Doing this goes quite a lot against the intent of what form-based authentication is 
all about.

Have you ever gone to a website with a protected area, where it popped up the 
username/password dialog box?
(In other words, you were using BASIC authentication).  What happens is that you type 
in your
username/password and then you are sent to whatever page you originally requested.

Form based login is supposed to work exactly like that.  The first time you try to 
access a page that is
protected by a security constraint, the servlet container will save your original 
request and present the
login page to you.  Then, when you are successfully authenticated, your *originally* 
requested page is
displayed.

You will be able to tell whether the user is authenticated or not by checking the 
values returned by
request.getRemoteUser() and request.getUserPrincipal().

>
> I will need to make my own security interceptor at some stage. Should I take care of 
>this need in
> the interceptor?
>
> --
> Joakim Verona
> [EMAIL PROTECTED]
> http://www.verona.se/

Craig McClanahan





Load Balancing / multiple mount points

2000-12-18 Thread Shahed Ali

Hi,

I am trying to load balance a virtual host running on apache 1.3.14 with
tomcat 3.2.


I have setup multiple worker threads and have Multiple JkMount points for
the same virtual
host pointing to the same mount point.

i.e
I have the following directives under the same apache virtual host (mapped
to tomcat context) directive.
JkMount /*.jsp ajp13a
JkMount /*.jsp ajp13b
JkMount /*.jsp ajp13c

I am running multiple instances of Tomcat from the same TOMCAT_HOME, but
with different server.xml files and
each server.xml file has its own log and work directories and the workers
listen on different ports.

Is this an acceptable way of doing Load Balancing for 1 website / context ?

Are there any docs on how to detrmine the load balance factor etc ?

Thanks
Shahed.





Re: At Value must be quoted. Error

2000-12-18 Thread Donald Mullaney

Thxs Simon,

I had a typo that I was looking right at and I could not see.  Nothing like
staring to hard..

Is there a document anywhere that describes error messages?  The error
message was not clear to me, but then again I am new to this.

Thanks again,
Donald

- Original Message -
From: "Kitching Simon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 11:03 AM
Subject: RE: At Value must be quoted. Error


> Hi Don,
>
> It looks to me like the XML parser that tomcat uses to read the file is
> objecting to something in the file. Minor typos are sometimes damn
> hard to spot :-)
>
> I suggest:
> (a)
> try commenting out blocks of the server.xml file, and restarting.
> of course, tomcat won't *run* properly with only half a config file, but
> you should be able to see when the config file at least parses.
> By the old divide-and-conquer method, you should be able to narrow
> things down to the point you can spot the problem,
> (b)
> If you have made only minor changes to the default file, you can try
> using "diff" to compare the version in the distribution with the one that
> doesn't work.
> (c)
> if all else fails, try posting the server.xml file to this group...
>
> Cheers,
>
> Simon
>
> > -Original Message-
> > From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, December 18, 2000 6:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: At Value must be quoted.  Error
> >
> >
> > Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
> > trying make modifications to the default server.xml file.  After the
> > modifications restarted tomcat and got the errors below.  I also
returned
> > the server.xml to the orginal state and I still get the same error.  Any
> > ideas?  What is the error in reference to?  I have search the
> > documentation and can't find anything that relates.
> >
> > [root@host bin]# ./startup.sh
> > Using classpath:
> >
.:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
> >
er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
> >
/lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
> >
omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
> >
/usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
> > arta-tomcat/src
> > [root@host bin]# ERROR reading /usr/local/jakarta-tomcat/conf/server.xml
> > At Value must be quoted.
> >
> > FATAL: configuration error
> > java.lang.NullPointerException:
> > at
> > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
> > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> >
> > Thanks,
> >
> > Donald Mullaney
> >
> > Melting Sand, LLC
> > 7660 E. Broadway Blvd Suite 308
> > Tucson, AZ 85710
> >
> > E-Mail: [EMAIL PROTECTED] 
> > Phone: 520.918.SAND (7263)
>




getting a jsp file to always be executed on form-based authentification

2000-12-18 Thread Joakim Verona

hello,

i would like a certain jsp file to always be executed when form based auth succeeds, 
regardless of which
resource we are trying to get at, something like an event-handler for the auth event.

i cant really find a provission for such a function, other than having some session 
variable
to check against, and including the same piece of code in every page.

This is doable, but is there any more elegant solution?

I will need to make my own security interceptor at some stage. Should I take care of 
this need in
the interceptor?

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



RE: Bizarre problem -- works fine, then doesn't

2000-12-18 Thread Ethan Michaels

I have restarted Tomcat again this morning, and all the material that was
in the logs is no longer there (since the restart). That seems a little
weird. Is that normal?

Anyway, I recall that none of them had anything that looked like an error
message. The jasper log recorded a series of requests and the parameters
that were sent. The servlet log just had a series of about 15 entries that
began with

Context log path= ...

I don't remember exactly what was in the Tomcat log. I'll have to wait til
the thing stops working again and take a look. Meanwhile, I'll explore this
dropped database connection concept. Maybe there's something to that.

Thanks,

Ethan

>> I have discovered that restarting Tomcat returns everything to smooth
>> functioning. It appears that somehow, in the middle of the night, some
>> condition changes and causes the Web apps to fail. What could be
>> happening?
>
>So, ah, is the only information you have to go on? For instance, what's
>in the logs? (Is there a dropped database connection, like there was in
>mind?)
>
>Dave








Ethan Michaels
Graphics

METROPOLITAN TRANSPORTATION COMMISSION
Transportation planning, financing, and
coordinating for the San Francisco Bay Area
http://www.mtc.ca.gov/







RE: Apache doesn't start with mod_jk

2000-12-18 Thread Dave Newton

Here's the relevent portion:

"Working with mod_jk" at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

It sez:

"Your build may fail because the object files from the ../jk directory have
been compiled to the current directory, rather than their source directory.
Running gcc -shared -o mod_jk.so *.o should finish the build."

Hope that helps!

Dave




RE: multiple JVMs: how to manage tomcat-apache.conf?

2000-12-18 Thread James Morgenstein

George-

Instead of using the auto-generated tomcat-apache.conf, you could take a
copy of the tomcat-apache.conf for each of your configurations and rename it
to something else, e.g., tomcat-apache.conf.prod and tomcat-apache.conf.dev.

You could then include your renamed apache configuration files in the
httpd.conf.

James

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
George Armhold
Sent: Monday, December 18, 2000 1:03 PM
To: [EMAIL PROTECTED]
Subject: multiple JVMs: how to manage tomcat-apache.conf?


With Tomcat 3.1:

I'm trying to run multiple JVM's on the same machine (production and dev
setup.)  I've successfully modified my tomcat.conf to support the two
ApJ mountpoints, created a server-prod.xml and a server-dev.xml.  The
trouble is that when the second Tomcat process starts up it overwrites
the conf/tomcat-apache.conf file.  Thus apache only sees the container
aliases for the most recently started Tomcat JVM.  Is there any way to
specify to tomcat where to write its tomcat-apache.conf output?

Thanks & Happy Holidays to everyone.

--
George Armhold
Rutgers University
Bioinformatics Initiative




log files

2000-12-18 Thread roy nabel

What is the best way to use a program to clear the log files (running on
an NT 2000 / IIS 5 system) since isapi.log appears to be locked by the
redirector? Any comments would be greatly appreciated. Please send email
to [EMAIL PROTECTED]

thanks,
roy



RE: Apache doesn't start with mod_jk

2000-12-18 Thread Simon Orchanian

Dave,

Could you please repost your previous message
regarding the final link step. I'm getting
the same problem but I can't find you earlier
messages.

Thank you,
Simon


--- Dave Newton <[EMAIL PROTECTED]> wrote:
> See my previous message regarding the final link step (it's also
> in the documentation).
> 
> > I keep getting clean compiles, but the link process always fails with:
> > apxs:Break: Command failed with rc=8
> 
> Dave
> 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



RE: At Value must be quoted. Error

2000-12-18 Thread Kitching Simon

Hi Don,

It looks to me like the XML parser that tomcat uses to read the file is
objecting to something in the file. Minor typos are sometimes damn
hard to spot :-)

I suggest:
(a) 
try commenting out blocks of the server.xml file, and restarting.
of course, tomcat won't *run* properly with only half a config file, but
you should be able to see when the config file at least parses.
By the old divide-and-conquer method, you should be able to narrow
things down to the point you can spot the problem,
(b)
If you have made only minor changes to the default file, you can try
using "diff" to compare the version in the distribution with the one that
doesn't work.
(c) 
if all else fails, try posting the server.xml file to this group...

Cheers,

Simon

> -Original Message-
> From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 6:51 PM
> To:   [EMAIL PROTECTED]
> Subject:  At Value must be quoted.  Error
> 
>  
> Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
> trying make modifications to the default server.xml file.  After the
> modifications restarted tomcat and got the errors below.  I also returned
> the server.xml to the orginal state and I still get the same error.  Any
> ideas?  What is the error in reference to?  I have search the
> documentation and can't find anything that relates.
>  
> [root@host bin]# ./startup.sh
> Using classpath:
> .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
> er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
> /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
> omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
> /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
> arta-tomcat/src
> [root@host bin]# ERROR reading /usr/local/jakarta-tomcat/conf/server.xml
> At Value must be quoted.
> 
> FATAL: configuration error
> java.lang.NullPointerException:
> at
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
>  
> Thanks,
> 
> Donald Mullaney
>  
> Melting Sand, LLC
> 7660 E. Broadway Blvd Suite 308
> Tucson, AZ 85710
>  
> E-Mail: [EMAIL PROTECTED] 
> Phone: 520.918.SAND (7263)



multiple JVMs: how to manage tomcat-apache.conf?

2000-12-18 Thread George Armhold

With Tomcat 3.1:

I'm trying to run multiple JVM's on the same machine (production and dev
setup.)  I've successfully modified my tomcat.conf to support the two
ApJ mountpoints, created a server-prod.xml and a server-dev.xml.  The
trouble is that when the second Tomcat process starts up it overwrites
the conf/tomcat-apache.conf file.  Thus apache only sees the container
aliases for the most recently started Tomcat JVM.  Is there any way to
specify to tomcat where to write its tomcat-apache.conf output?

Thanks & Happy Holidays to everyone.

--
George Armhold
Rutgers University
Bioinformatics Initiative



At Value must be quoted. Error

2000-12-18 Thread Donald Mullaney



 
Help.  I am running Apache 1.3 and Tomcat on 
Caldera's eServer.  I was trying make modifications to the default 
server.xml file.  After the modifications restarted tomcat and got the 
errors below.  I also returned the server.xml to the orginal state and I 
still get the same error.  Any ideas?  What is the error in reference 
to?  I have search the documentation and can't find anything that 
relates.
 
[root@host bin]# ./startup.shUsing classpath: 
.:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-tomcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:/usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jakarta-tomcat/src[root@host 
bin]# ERROR reading /usr/local/jakarta-tomcat/conf/server.xmlAt Value must 
be quoted.FATAL: configuration 
errorjava.lang.NullPointerException:    
at 
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)    
at 
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)    
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
 
Thanks,
Donald 
Mullaney Melting Sand, LLC7660 E. Broadway Blvd Suite 
308Tucson, AZ 85710 E-Mail: [EMAIL PROTECTED]Phone: 520.918.SAND 
(7263)


TomCat into NT environment

2000-12-18 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

What is the way to use TomCat into NT 4.0 Server? Just as a Stand-alone
web-server, or as a NT service or even mixed with IIS. I think that this
last option is the worst...

Best Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOj5xgd0YhuJ3BUxtAQGcAAP9E6cHc9BFGA0j8xr5rvVcnv/v5f3GI4WY
8IwUtybgqEZNQxXH9Vvdw6X0fqZzK1urSYj5VykP1LM1n2NbnJiPoT3QVK79hghF
guylD+O3InOOSi/RRet48CA52iwONzyHJ7yRhODfsdZH7CLxKkfE4pZFjvzg856N
XgGR6qBFHRw=
=c8vz
-END PGP SIGNATURE-



Re: Standalone Tomcat

2000-12-18 Thread Clifford . Okoro




Try using http://localhost:8080/servlet/MyTestServlet

If you're using tomcat and have not changed the default port, you'll have to use
port 8080 as above.

Clifford







ECIS Gast <[EMAIL PROTECTED]> on 12/18/2000 04:45:38 PM


Please respond to [EMAIL PROTECTED]





  
  
  
 To:  "'[EMAIL PROTECTED]'"  
  <[EMAIL PROTECTED]>
  
 cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
  
  
  
 Subject: Standalone Tomcat   
  










Dear Ladies and Gentleman,
i have a problem to run Tomcat 3.2.1 as Standalone-Server, i mean wihout a
Web-Server. I can start the Tomcat-Server, but i can't execute the servlets in
the webbrowser (for example with command "http://localhost/servlet/MyTestServlet
").
Reportedly to the Guideline of Tomcat 3.2.1 its possible to run it without a
WebServer.

Stand-alone servlet containers
These are an integral part of the web server. This is the case when using a
Java-based web server, for example the servlet container that is part of the
JavaWebServer. Stand-alone is the default mode used by Tomcat.
Most web servers, however, are not Java-based, which leads us to the next two
container types

and

How Do I Install the Binary Version of Tomcat?
Very simple. You should:
*Download the zip/tar.gz/whatever file from <
http://jakarta.apache.org/downloads/binindex.html>.
*Unzip the file into some directory (say foo). This should create a new
subdirectory named "tomcat".
*Change directory to "tomcat" and set a new environment variable
(TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.
   On Win32 you should type:
   "set TOMCAT_HOME=foo\tomcat"
   On UNIX you should type:
   for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
   for tcsh "setenv TOMCAT_HOME foo/tomcat"
*Set the environment variable JAVA_HOME to point to the root directory of
your JDK hierarchy, then add the Java interpreter to your PATH environment
variable.
That's it! You can now execute Tomcat and it will run as a stand-alone (type 1)
servlet container.

I execute this steps (for Windows), but i can't execute the servlets.
What must i do?

Regards
Sadettin Özdil








__


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.




Re: Standalone Tomcat

2000-12-18 Thread Trevor Little

List the errors that you're getting please


ECIS Gast wrote:
> 
> Dear Ladies and Gentleman,
> i have a problem to run Tomcat 3.2.1 as Standalone-Server, i mean wihout a 
>Web-Server. I can start the Tomcat-Server, but i can't execute the servlets in the 
>webbrowser (for example with command "http://localhost/servlet/MyTestServlet").
> Reportedly to the Guideline of Tomcat 3.2.1 its possible to run it without a 
>WebServer.
> 
> Stand-alone servlet containers
> These are an integral part of the web server. This is the case when using a 
>Java-based web server, for example the servlet container that is part of the 
>JavaWebServer. Stand-alone is the default mode used by Tomcat.
> Most web servers, however, are not Java-based, which leads us to the next two 
>container types
> 
> and
> 
> How Do I Install the Binary Version of Tomcat?
> Very simple. You should:
> *   Download the zip/tar.gz/whatever file from 
>.
> *   Unzip the file into some directory (say foo). This should create a new 
>subdirectory named "tomcat".
> *   Change directory to "tomcat" and set a new environment variable 
>(TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.
> On Win32 you should type:
> "set TOMCAT_HOME=foo\tomcat"
> On UNIX you should type:
> for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
> for tcsh "setenv TOMCAT_HOME foo/tomcat"
> *   Set the environment variable JAVA_HOME to point to the root directory of 
>your JDK hierarchy, then add the Java interpreter to your PATH environment variable.
> That's it! You can now execute Tomcat and it will run as a stand-alone (type 1) 
>servlet container.
> 
> I execute this steps (for Windows), but i can't execute the servlets.
> What must i do?
> 
> Regards
> Sadettin Özdil
> 
>



Standalone Tomcat

2000-12-18 Thread ECIS Gast

Dear Ladies and Gentleman,
i have a problem to run Tomcat 3.2.1 as Standalone-Server, i mean wihout a Web-Server. 
I can start the Tomcat-Server, but i can't execute the servlets in the webbrowser (for 
example with command "http://localhost/servlet/MyTestServlet").
Reportedly to the Guideline of Tomcat 3.2.1 its possible to run it without a WebServer.

Stand-alone servlet containers
These are an integral part of the web server. This is the case when using a Java-based 
web server, for example the servlet container that is part of the JavaWebServer. 
Stand-alone is the default mode used by Tomcat.
Most web servers, however, are not Java-based, which leads us to the next two 
container types

and

How Do I Install the Binary Version of Tomcat?
Very simple. You should:
*   Download the zip/tar.gz/whatever file from 
. 
*   Unzip the file into some directory (say foo). This should create a new 
subdirectory named "tomcat". 
*   Change directory to "tomcat" and set a new environment variable (TOMCAT_HOME) 
to point to the root directory of your Tomcat hierarchy. 
On Win32 you should type: 
"set TOMCAT_HOME=foo\tomcat" 
On UNIX you should type: 
for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
for tcsh "setenv TOMCAT_HOME foo/tomcat" 
*   Set the environment variable JAVA_HOME to point to the root directory of your 
JDK hierarchy, then add the Java interpreter to your PATH environment variable. 
That's it! You can now execute Tomcat and it will run as a stand-alone (type 1) 
servlet container. 

I execute this steps (for Windows), but i can't execute the servlets.
What must i do?

Regards
Sadettin Özdil

 




RE: Apache doesn't start with mod_jk

2000-12-18 Thread Dave Newton

See my previous message regarding the final link step (it's also
in the documentation).

> I keep getting clean compiles, but the link process always fails with:
> apxs:Break: Command failed with rc=8

Dave




Common Tomcat Installation Bugs Fix in Windows OS

2000-12-18 Thread isu:jwkoh

These are all the errors I encountered and fixed overnight during Tomcat
installation. ):-(

1. Error Message, "Out of environment space:" --> right click on startup.bat
and click on property and click memory tab and choose initial environment
drop-down box and choose 2048 or bigger. It doesn't have to be 2048+ but a
bigger number has the better chance of working. You can choose property by
clicking the top left corner of the console window.

For reference, I saw in a website a guy says - To solve the 'Out of
Environment Space' error you must edit CONFIG.SYS (again, the old MS-DOS not
so defunct operating system presence). You must add the following line:
SHELL=C:\COMMAND.COM /E:8192 /P
please replace C:\COMMAND.COM to the correct location if you moved
COMMAND.COM to another location. The "/E:8192" allocates 8k to be used by
environment variables. The maximum allowed is 32k (35736). The last
parameter, "/P", is used to make this COMMAND.COM instance resident in
memory and owner of main environment space (from which every process
receives a copy).

2. Error Message, "only DOS 8.3 names may be used in TOMCAT_HOME!"--> You
are using Windows Explorer folder name find dos name of the folder(=
directory) using DIR command in DOS console. If you have long dir name in
windows explorer such as "jakarta-tomcat-3.2.1", it will show up as jakart~1
in DOS. Use this 8 character long name.

2a. Use simple folder(=directory) names for JDK(=J2SDK 1.3) and TOMCAT. I
used default names "j2sdk1.3" and "jakarta-tomcat-3.2.1" They caused
conflicts in *.bat files when starting tomcat. Especially DON'T USE "." in
those folder names. USE 8 characters-long name, or find matching DOS DIR
name for the windows explorer long folder names. So I uninstalled and
reinstalled JDK in the folder,"j2sdk" and tomcat in the folder, "tomcat".

3. Common and Hard-to-find ERROR: Type in SET JAVA_HOME=C:\JDK in the first
line after REM lines (REM lines are comment lines so they are ignored in
execution)in startup.bat file. * VERY IMPORTANT NOT TO HAVE SPACES
before and after "=" *





RE: JDBC Realm documentation

2000-12-18 Thread Nacho

> I found, what I did wrong !!!

Great to hear that

> However, muchas gracias Ignacio
> 

de Nada.

> 
> ps. The url-mapping *.jsp is valid.

Yes i did read the spec ( section 10.2 ), it seems that the type of
url-pattern that are not defined is with a url-pattern of this class
"*/pepe.jsp" not with the one you have posted, something like "*.jsp"
 i will put spec in the wall someday ASAP, :-) 


Saludos ,
Ignacio J. Ortega




automatic Application restart on ServletException

2000-12-18 Thread Andreas Schildbach

What is the best way to tell Tomcat (3.2) to restart an entire application
(including all servlets) on a ServletException or an UnavailableException?

Or is there another way for a servlet to tell Tomcat to restart the
application?

Gruss,

  Andreas Schildbach
  financial media service





Re: Tomcat 3.2 - getRequestDispatcher().forward

2000-12-18 Thread Matt Goss

G,
I'm not totally sure, but you may want to try renaming the subdirectory to
something other that admin (Apache may be picking it up as a call for its
mapping of /admin/ to the admin webapp...
Matt

Graeme Wallace wrote:

> So its a bug in 3.2 then.
>
> -Original Message-
> From: Matt Goss [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 8:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat 3.2 - getRequestDispatcher().forward
>
> Graeme,
> No, the forwarded request is treated as the same request.
> Matt
>
> Graeme Wallace wrote:
>
> > Hi,
> >
> > Is the behavior of getRequestDispatcher(pagelocation).forward(req,res)
> > supposed to interpret
> > the page location as if it was a new request to Tomcat ?
> >
> > ie. if I have a webapps that has an admin subdirectory and I want to
> forward
> > to its
> > index.jsp, I used to do
> > getRequestDispatcher("/admin/index.jsp").forward(req,res)
> >
> > but if i do that with Tomcats default admin webapp still configured it
> gets
> > the forward
> > to process instead of tomcat picking up the file.
> >
> > regards,
> >
> > G.


begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
url:www.rtci.com
org:RTCI;Custom Solutions
adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Web Developer
fn:Matt
end:vcard



AW: Apache/Tomcat 3.2.1 session error - help!

2000-12-18 Thread Hanusch, Hartwig

Hi Henri,

indeed am i (trying to) use ajp13 with jk_mod but the error is reproducible
with jserv to.

Here are the code snipples 
->

public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{
HttpSession currentSession = req.getSession(true);

if (!(sessions_.contains(currentSession)))
{
System.out.println("in DoGET: found new session");
sessions_.add(currentSession);
currentSession.setAttribute("phase", "A");
System.out.println("session: "+ currentSession);
}

if(req.getParameter("user")!= null)
currentSession.setAttribute("user",
req.getParameter("user"));


if (everything OK)
{
out.println("");
out.println("");
out.println("");
out.println("submit ");

}
}


public void doPost (HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{
System.out.println("in DoPost");
System.out.println("req.getSession ->" + req.getSession(false));
}

so that gives two different session objects (), and req.getSession(false)
shouldnt return a new session!

Thanks for your help :)

Cheers Hartwig






RE: Apache doesn't start with mod_jk

2000-12-18 Thread Palumbo, Mark

How did you build mod_jk ?

Did you use a special Makefile etc?  If so could you please share it with
everyone?  I'm trying to build mod_jk under AIX, it seems most people here
are using the supported platforms of solaris or linux.  :)

I keep getting clean compiles, but the link process always fails with:
apxs:Break: Command failed with rc=8

Somewhat related to your problem, we have been able to compile/build a
mod_jserv.so also, but no luck building a mod_jk.so...

Thanks!
-Mark-

> -Original Message-
> From: Jan Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 8:21 AM
> To: [EMAIL PROTECTED]
> Subject: Apache doesn't start with mod_jk
> 
> 
> Hi,
> When I try to start Apache with mod_jk, Apache doesn't start 
> without any
> messages.
> Compiling of mod_jk goes ok.
> I'm using Apache on an Alpha 1000 with Tru64 4.0D
> Everything works fin ewith mod_jserv.
> Am I missing something?
> 
> Jan
> 
> 



Apache-Tomcat configuration problems: PLEASE HELP

2000-12-18 Thread Dave Emerson

Hi, I've been trying to get Tomcat and Apache configured to avoid the need 
to reference the port number in the URL.  Instead of 
http://localhost:8080/, I want to be able to say 
http://localhost/servlet/.   Isn't that what mod_jk is supposed to do for 
me?  At the moment I just like to get the same display of the default 
static web page that displays when I enter http://localhost:8080/.  Am I 
missing something fundamental here?

I've followed mod_jk-howto, apache-tomcat-howto, workers-howto.  My 
configuration is entirely vanilla.  Tomcat works fine standalone.  Apache 
works fine standalone (including virtual hosts).

My software is as follows:
OS -> Win2000 Server
Apache -> 1.3.14
JKD -> 1.3
Tomcat -> 3.2.1

excerpts from various config files and logs are:

###
SERVER.XML:
except for enabling debugging and the host section below, the server.xml 
file is as shipped with 3.2.1
###

 


 


###
HTTPD.CONF
except for setting the following, the httpd.conf is as shipped with 1.3.14
###

ServerRoot "i:/program files/Apache-1.3.14"
DocumentRoot "i:/program files/Apache-1.3.14/htdocs"

ServerName localhost

include I:/Dev/jakarta-tomcat/conf/mod_jk.conf

NameVirtualHost *


 ServerName localhost
 DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12


 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot "I:/DataFiles/SabrewingRoot"
 ServerName www.sabrewing.com
 ErrorLog logs/www.sabrewing.com-error_log
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12
 CustomLog logs/www.sabrewing.com-access_log common



###
MOD_JK.CONF
###

###
# Auto generated configuration. Dated: Sun Dec 17 08:14:13 EST 2000
###

#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "I:/Dev/jakarta-tomcat/conf/workers.properties"
JkLogFile "I:/Dev/jakarta-tomcat/logs/mod_jk.log"

#
# Log level to be used by mod_jk
#
JkLogLevel debug

###
# SSL configuration   #
#
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
#
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
#
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
#
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
#
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
#
# What is the indicator for the client SSL certificated (default is 
SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
#
# #
###

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

#
# Auto configuration for the /examples context starts.
#

#
# The following line makes apache aware of the location of the /examples 
context
#
Alias /examples "I:/Dev/jakarta-tomcat/webapps/examples"

 Options Indexes FollowSymLinks


#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#

 AllowOverride None
 deny from all

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#

 AllowOverride None
 deny from all


#
# The following line prohibits users from directly accessing META-INF
#

 AllowOverride None
 deny from all

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#

 AllowOverride None
 deny from all


###
# Auto configuration for the /examples context ends.
###

#
# Auto configuration for the /adm

AW: JDBC Realm documentation

2000-12-18 Thread Kurt, Oliver

I found, what I did wrong !!!

The security-specific entries in the web.xml file MUST be in a
webapplication-specific web.xml file under WEB-INF and not in /conf/web.xml.

This is - for someone who is familiar with all the stuff - totally clear.
But for a beginner it isn't. 

However, muchas gracias Ignacio

Oliver Kurt


ps. The url-mapping *.jsp is valid.

-Ursprüngliche Nachricht-
Von: Nacho [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 18. Dezember 2000 16:15
An: '[EMAIL PROTECTED]'
Betreff: RE: JDBC Realm documentation


>   *.jsp

I dont have the spec in the wall... but i want to remember that spec
does not have defined this kind of wildcard matching (with the wildchar
as prefix ) it only deals with wildchars as suffix.., so your need to
rewrite your url-pattern ..


Saludos ,
Ignacio J. Ortega



Re: Tomcat + Windows 2000?

2000-12-18 Thread Harold Trammel

I am having similar problems with Tomcat. I have been running Apache for 
sometime without problems. I downloaded Tomcat 3.2, followed the 
directions, and had the same "flashing" experience stated here.

I edited the tomcat.bat file and added the -verbose option to the runServer 
command. This results in the following:

--- RESULTS ---

D:\Tomcat\bin>tomcat run
Including all jars in d:\Tomcat\\lib in your CLASSPATH.

Using CLASSPATH: 
d:\Tomcat\\classes;d:\Tomcat\\lib\ant.jar;d:\Tomcat\\lib\jasper
.jar;d:\Tomcat\\lib\jaxp.jar;d:\Tomcat\\lib\parser.jar;d:\Tomcat\\lib\servlet.ja
r;d:\Tomcat\\lib\webserver.jar;C:\Program 
Files\OpenLink\jdk1.2\megathin2.jar;C:
\Program 
Files\OpenLink\jdk1.2\opljdbc2.jar;.;C:\SQLLIB\java\db2java.zip;C:\SQLL
IB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin;;d:\jdk1.3\lib\tools.j
ar

[Opened d:\jdk1.3\jre\lib\rt.jar]
[Opened d:\jdk1.3\jre\lib\i18n.jar]
[Opened d:\jdk1.3\jre\lib\sunrsasign.jar]
[Loaded java.lang.Object from d:\jdk1.3\jre\lib\rt.jar]

... bunch of successful load statements omitted ...

[Loaded sun.misc.Launcher$3 from d:\jdk1.3\jre\lib\rt.jar]
[Loaded sun.net.www.protocol.file.Handler from d:\jdk1.3\jre\lib\rt.jar]
Usage: java [-options] class [args...]
(to execute a class)
or  java -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
 -cp -classpath 
   set search path for application classes and resources
 -D=
   set a system property
 -verbose[:class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -showversion  print product version and continue
 -? -help  print this help message
 -Xprint help on non-standard options
[Loaded java.lang.Shutdown$Lock from d:\jdk1.3\jre\lib\rt.jar]
D:\Tomcat\bin>
--- END RESULTS -

Does this help anyone solve the problem?  Conflicting java 
classes?  Missing jar files?

Thanks


___
Harold L. Trammel
ASPCA Animal Poison Control Center
Ph: 217/337-5030x260  Fax: 217/337-0599  http://www.napcc.aspca.org
"... encourage one another daily ..." Heb 3:13




RE: Apache/Tomcat 3.2.1 session error - help!

2000-12-18 Thread GOMEZ Henri

>i still have my problem using tomcat 3.2.1 (release) with 
>apache. Sessions are mixed up when calling the same 
>servlet but using get/post method (get calls post and 
>the other way around).
>Problem only arises when using tomcat with apache - 
>not when using tomcat standalone.

Did you use ajp13 ?
If so could you send example code ?

Regards



Apache/Tomcat 3.2.1 session error - help!

2000-12-18 Thread Hanusch, Hartwig

Hi,

i still have my problem using tomcat 3.2.1 (release) with 
apache. Sessions are mixed up when calling the same 
servlet but using get/post method (get calls post and 
the other way around).
Problem only arises when using tomcat with apache - 
not when using tomcat standalone.

Any hints? 
Cheers 
Hartwig




RE: Tomcat 3.2 - getRequestDispatcher().forward

2000-12-18 Thread Graeme Wallace

So its a bug in 3.2 then.

-Original Message-
From: Matt Goss [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 8:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 3.2 - getRequestDispatcher().forward


Graeme,
No, the forwarded request is treated as the same request.
Matt

Graeme Wallace wrote:

> Hi,
>
> Is the behavior of getRequestDispatcher(pagelocation).forward(req,res)
> supposed to interpret
> the page location as if it was a new request to Tomcat ?
>
> ie. if I have a webapps that has an admin subdirectory and I want to
forward
> to its
> index.jsp, I used to do
> getRequestDispatcher("/admin/index.jsp").forward(req,res)
>
> but if i do that with Tomcats default admin webapp still configured it
gets
> the forward
> to process instead of tomcat picking up the file.
>
> regards,
>
> G.




  1   2   >