Standalone Tomcat

2001-05-04 Thread Chris Andreou

My team is using Tomcat Standalone for the prototype development. Does
anybody know what changes should I do in tomcat inorder to recognize
subdirectories with jsp files. At the moment all the jsp are under the root
context. The context we are using is 
Context path=/dgms 
 docBase=webapps/dgms 
 crossContext=false
 debug=0 
 reloadable=true  
/Context


Thanks in advance
Chris



Tomcat Stand Alone

2001-05-04 Thread Chris Andreou

I apoligize if see this message again, I sent and I haven't seen it posted. 

I am using Tomcat 3.2.1 on an NT platform for a prototype development. I am
unaware how to configure stand alone Tomcat to read subdirectories under the
main context. Any suggestions would be welcomed.

Thanks in advance 

Chris



RE: Tomcat is not starting - How to trap the startup error?

2001-05-04 Thread Chris Andreou

go under bin 

and type tomcat run

also make sure that you have Normal Http for tomcat on



-Original Message-
From: Web master [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 12:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat is not starting - How to trap the startup error?


Hello,

I am using Tomcat as my server and it was working fine till yesterday. 
Somebody was in my system to install bunch of stuff and after that, when 
I tried to start the server, it starts and the JAVA console comes and it 
disappears in a second,. Since I couldn't see, what was in the console, 
I couldn't figure out, what is causing the tomcat not to start.

IS there any way, I can find out why tomcat is not starting. I checked 
my CLASSPATH , PATH and server.log nothing helps.

Thank you for your time.



Tomcat Integration and Forte IDE

2001-04-17 Thread Chris Andreou

Has anybody inregrated JSP and Forte For java? 

Thanks

Chris



Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-16 Thread Chris Andreou

Dear forum, 

Please take a time to provide me with the following opinion. I spend some
time configuring Tomcat and Apache. Because of deadline constaints and the
fact that some allready developed code has been devloped using only Tomcat
as standalone, the prototype team is focusing on just using Tomcat. Does
anybody know if that approach is good? Personally I feel very reluctant in
following that approach, but I have to convence by team leader why Tomcat by
itself won't do the same work as Apache  Tomcat  together will. 

Any  opinions are wellcome


Thanks



RE: Tomcat at Windows 2000

2001-04-16 Thread Chris Andreou

Set the Http Server on Tomcat and it will show the error (standalone) and
the window will not close


-Original Message-
From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 8:16 AM
To: [EMAIL PROTECTED]
Subject: Tomcat at Windows 2000


Hi,
I am trying to run Jakarta at Windows 2000, but I am having my jakarta
window closed as soon as it starts !!!
What kind of problem is that ?
at Win98 I wasnt having any problem and it was working well 
Can anybody helps me ???

Regards
Daniel

Daniel Alvares
Santos - SP - Brazil



RE: changing web app

2001-04-16 Thread Chris Andreou

better to stop and restart tomcat and clear the work directory just to make
sure, Also a long you are in development is better not to cashe you pages


-Original Message-
From: Chad Harrison [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: changing web app



This may be a basic question, but I havent seen the answer in any of the 
docs -

do I need to restart tomcat every time I change my web.xml config file 
for my web application? or is there someway to reload it?

thanks



RE: Servlet registration

2001-04-11 Thread Chris Andreou

I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  servlet
 servlet-nameSimpleServlet/servlet-name
 servlet-classexamples.SimpleServlet/servlet-class 
  /servlet
  
  
   servlet-mapping
  servlet-name
  SimpleServlet
  /servlet-name
  url-pattern
  /simple
  /url-pattern
  /servlet-mapping


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




RE: Servlet registration

2001-04-11 Thread Chris Andreou

I didn't make a difference.  I am frustrated :( 

my context path definition is 

context path=""
docBase="e:/wwwroot/dgms_dev"
reloadable="true" / 

my Host name is trw02
I am hitting the server by 
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work

Chris




-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


The whitespace in your servlet-mapping in your web.xml could be leading to
the failure you see.
try:
servlet-mapping
  servlet-nameSimpleServlet/servlet-name
  url-pattern/simple/url-pattern
/servlet-mapping

what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-----Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  servlet
 servlet-nameSimpleServlet/servlet-name
 servlet-classexamples.SimpleServlet/servlet-class 
  /servlet
  
  
   servlet-mapping
  servlet-name
  SimpleServlet
  /servlet-name
  url-pattern
  /simple
  /url-pattern
  /servlet-mapping


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]



RE: 'jsp:include' tag

2001-04-11 Thread Chris Andreou

check the ralative paths.


-Original Message-
From: Leon Palermo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: 'jsp:include' tag


Hello all,

Does anyone have problems with the 'jsp:include' tag with tomcat.  I always
get the following error when I try to use it:

Internal Servlet Error:

org.apache.jasper.compiler.CompileException: Welcome.jsp(15,0) Invalid
jsp:include tag
 at org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
 at
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEvent
Listener.java:877)
 at
org.apache.jasper.compiler.DelegatingListener.handleInclude(DelegatingListen
er.java:185)
 at org.apache.jasper.compiler.Parser$Include.accept(Parser.java:299)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1035)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
 at org.apache.tomcat.core.Handler.service(Handler.java:263)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Here is the code in the jsp:

jsp:include page="/includes/afile.jsp" /

Anyone know what the dealis?

Thanks in advance!

Leon Palermo



RE: Servlet deployment

2001-04-11 Thread Chris Andreou

http://java.sun.com/docs/books/tutorial/servlets/servletrunner/tomcat-start.
html


-Original Message-
From: Harkishin Nachnani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Servlet deployment


Hi all:
For a customer demo, I had written a small servlet and deployed it on Java
Web Server 2.0.
But we have an evaluation version of Java Web Server so we have to
re-install it every 30/45 days.
So I just thought of switching over to Tomcat.
Basically, I just have a couple of html and gif files, 1 webcallback.class
(servlet) and Libm2w32.dll (since servlet uses native methods)

I have successfully installed Tomcat 3.2.1 and the sample jsps work fine.
Can anyone tell me where I should place all the files (.html, .gif, .class,
.dll) of my application ??? Do I need to change the server.xml and add a new
context path ???
Can someone kindly tell me the easiest and fastest way to get the servlet
working since its just a demo machine ???

Thanks
Harry

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: /examples/servlet


At 11:33 PM 4/11/2001 -0400, you wrote:
  I wouldn't know how to get mod_jk.so for linux. If you're using 
 modjserv then
  you're in luck because the user guidelines are for mod_jserv only.

Actually, there are complete instructions for using
mod_jk on the sun site, and you can get the so right
'ere:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38
6/



Servlets Not found using Apache Tomcat

2001-04-10 Thread Chris Andreou

Dear Forum, 

A tea m mebmer developed an application using standalone Tomcat 3.1. I am
trying to transfer the directory structure under Apache and Tomcat 3.3. The
jsp files work fine  but it can't find the class files. I set the classpath
in worker.properties to point at the WEB-INF/classes. 

Q. Should that be done automatically since we setting up the context with-in
server.xml

Any help and suggestions should help

Thanks

Chris



RE: virtual hosts on different ports

2001-04-10 Thread Chris Andreou

you can create different contexts that listen on different ports


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 1:22 PM
To: [EMAIL PROTECTED]
Subject: virtual hosts on different ports


Hi,

 Can I configure TOMCAT virutal hosts on different ports, not ip addresses?
I seen this question asked in the archives but there was no responses.

Dave



Caching

2001-04-04 Thread Chris Andreou

I am using Tomcat 3.3 running Apache 1.3.14 on an NT plaform. I am running
my applications using Netscape 4.7 and IE 5.0.  I have a lot of problems
with caching. How other people handled the caching of the browsers. I set
the properties to no-cache on botn NN and IE and set the HTTP header to no
cache but I still have problems. It seems that I have to shutdown tomcat
inorder to break the code. Any suggestions? 

Thanks

Chris



How to use a Bean

2001-03-29 Thread Chris Andreou

I am using JDK1.3 Tomcat 3.3 on Windows Nt platform. The problem I have is
tomcat does not load the bean. It does load Java Api classes. I have the
following bean: 


package testing;

import java.io.*;

public class TestBean implements Serializable {

  private String FirstName = null;
public TestBean() {}

// Public Accesssors
  public void setfirstName(String str) {
  FirstName = str;
  }

  // get Public Accessors
  public String getfirstName() {return  FirstName;}


}// end of the class

and I am trying to access the property firstName through the string. I
copied the package testing.TestBean unde WEB-INF directory of my context. I
don't get an ClassNotFound error, but the value from the bean does not
display either. 

The simple code I an using is :

%@ page language ="java" contentType="text/html;charset=WINDOWS-1252"%
html
head/head
jsp:useBean id="TestData" class="testing.TestBean" / 
jsp:setPropetry name="TestData" property="*" / 
jsp:getPropetry name="TestData" property="*" / 
body
FirstName is: jsp:getProperty name="TestData" property="firstName" / 
/body
/html
 
Please, any help would be appreciated!

Thanks in advance

Chris






Tomcat and Jsp files

2001-03-23 Thread Chris Andreou

Hi I am using Tomcat 3.2.1 and Apache on an Nt platform. My confusion is
this: 
In http.conf file I have :

JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

Should all the .jsp files be under the webapps directory? I have a jsp file
under my webroot Apache directory but Tomcat does not see it? 

Thanks

Chris



RE: JDBCRealm again

2001-03-02 Thread Chris Andreou

Wolf, 

I am new tomcat user. Would you mind taking some time and write some
quiedlines how to setup JDBCReal? 

Thanks

Chris


-Original Message-
From: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 1:29 AM
To: 'Tomcat'
Subject: JDBCRealm again


I managed to force tomcat to reopen connection to auth data base and
authorization works fine, there's only one "but" - it cannot read roles
therefore denies accessed to resource... here's tomcat log:

log--
2001-03-02 08:04:53 - ContextManager: JDBCRealm: The database connection is
null or was found to be closed. Trying to re-open it.
2001-03-02 08:04:53 - ContextManager: JDBCRealm: JDBCRealm.authenticate:
SELECT user_pass FROM users WHERE user_name = ?
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Authentication successful
for user wojtek
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Auth ok, user=wojtek
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Controled access for wojtek
R(  + /protected/panel.jsp + null) Ct
(jsp(org.apache.jasper.servlet.JspServlet/null) )
2001-03-02 08:04:53 - ContextManager: JDBCRealm: There was an SQLException
while in getUserRoles: wojtek
2001-03-02 08:04:53 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: Communication link failure: java.io.IOException
2001-03-02 08:04:53 - ContextManager: JDBCRealm: Auth ok, user has no roles
2001-03-02 08:04:53 - ContextManager: JDBCRealm: UnAuthorized test

how can i fix it?

vVolf

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

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




Create a Context aother than webapps

2001-03-01 Thread Chris Andreou

I have a problem executing my servlets in a diffrent context other than
webapps - using a absolute path instead of relative. I have the followoing
definition in server.xml :
server.xml
---
Context path="/devexamples" 
 docBase="e:/Apachegroup/Apache/htdocs/webdir/examples" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context
--- 

I am using Tomcat 3.2.1 and Apache 1.3.14 with mod_jk . The configuration in
httpd.conf is the following: 

Alias /devexamples "e:/Apachegroup/Apache/htdocs/webdir/examples"
Directory  "e:/ApacheGroup/Apache/www/htdocs/webdir/examples"
Options Indexes FollowSymLinks
DirectoryIndex index.htm
/Directory

JkMount /devexamples/*.jsp apj12://trw02:8007/devexamples
JkMount /devexamples/servlet/* apj12://trw02:8007/devexamples
-- 
I get the following error in my log file: 
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match apj12://trw02:8007/devexamples
[jk_worker.c (123)]: Into wc_get_worker_for_name
apj12://trw02:8007/devexamples
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker


The properties of the worker.properties are : 

wrapper.tomcat_home=put your Tomcat home
wrapper.java_home=put your Java home
wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.tomcat_home)\classes
wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar

wrapper.class_path=$(wrapper.java_home)\lib\classes.zip

wrapper.javabin=$(wrapper.java_home)\bin\java.exe
wrapper.startup_class=org.apache.tomcat.startup.Tomcat
wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml
wrapper.shutdown_port=8007
wrapper.shutdown_protocol=ajp12
wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) -home
$(wrapper.tomcat_home)


Any help would be very appreciated. 

Thanks in advance

Chris

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




mod_jk.c

2001-03-01 Thread Chris Andreou

I am using NT, Apache 3.2.1 and Tomcat.  Does anybody know why I get an
error by loading the mod_jk.c ? 

Thanks

Chris

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




RE: Please help. Going Nuts.

2001-03-01 Thread Chris Andreou

join the club :) 

at any means if you find a solution let me know

Chris


-Original Message-
From: mikhail malamud [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 11:21 AM
To: [EMAIL PROTECTED]
Subject: Please help. Going Nuts.


Here is the setup I have.
Tomcat 3.2.1 with mod_jk
Apache 1.3.17. DocRoot /usr/local/apache/htdocs.

First, I got the existing /examples webapp to work. Apache is calling
tomcat and its all good. But now I am trying to deploy my first tomcat
application and going through hell. My DocRoot looks the following way.

DocRoot/vitamin/WEB-INF/
DocRoot/vitamin/WEB-INF/classes/edu/myschool/util/HelloWorldExample
Vitamin is the top level of an application I am trying to deploy.

I added following  information to the following files.


mod_jk.conf. Apache Includes it in httpd.conf

Alias /vitamin "/usr/local/apache/htdocs/vitamin"
Directory "/usr/local/apache/htdocs/vitamin"
Options Indexes FollowSymLinks
/Directory

JkMount /vitamin/servlet/* ajp13
JkMount /vitamin/*.jsp ajp13


Location "/vitamin/WEB-INF/"
AllowOverride None
deny from all
/Location
#

Then, I added following entry into the server.xml

##
Context path="/vitamin"
 docBase="/usr/local/apache/htdocs/vitamin"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context
##

At last. I added following entry into web.xml.

#
servlet
servlet-nameHelloWorld/servlet-name

servlet-classedu.myschool.util.HelloWorldExample/servlet-class
/servlet
servlet-mapping
servlet-nameHelloWorld/servlet-name
/url-pattern/*/url-pattern
/servlet-mapping
#

This does not look good to me, I am more than sure that there is
something wrong with it. I just dont know what.
When I try to access the servlet using
http://myhost.edu/servlet/edu.myschool.util.HelloWorldExample or
http://myhost.edu/servlet/edu.myschool.util.HelloWorld. I dont know
which one goes into URL class name or servlet name. Please help. Any
advice is greately apreciated.










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

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




RE: ajp12 or ajp13

2001-03-01 Thread Chris Andreou

Tomasz,

The documentation is very confusing. Would it be possible to send us your
configuration files?

Thanks

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 2:34 AM
To: [EMAIL PROTECTED]
Subject: Re:ajp12 or ajp13


Well, you should make chages in mod_jk.conf file (which is included in
Apache
http.conf).
Then add new connector for apjv13 in server.xml file (look at dokumentation
in
mod_jk section).

Tomasz Sucharzewski
ING Bank



Reply Separator
Subject:ajp12 or ajp13
Author: [EMAIL PROTECTED]
Date:   01-02-28 11:29

Hello,

I have configed Apache to work with Tomcat.  However, in the
mod_jk.conf-auto file,  it still uses JkMount /example/servlet/* ajp12, even
I already configed Apache to use ajp13.  Why tomcat still use ajp12?  Could
you please give me a help?   Thank you in advance.

Jianming Wang

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



-
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-

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

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




RE: I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread Chris Andreou

check you jdk path
and also set you classpath to all the jar files under the tomcat\bin


-Original Message-
From: Zakaria . [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: I CANT COMPILE SERVLETS!!!HELP


Hello,
I have tomcat running fine but i couldnt compile any servlet. I put the 
servlet in different directories and tried (does it matter?) but same 
result:
cannot resolve symbol:HttpServlet

i use this command line from the same directory as the servlet:
javac -classpath c:\tomcat\lib\servlet.jar Hello.java

i also downloaded the servlet.jar from the sun site and include it in the 
classpath and in the command line with the same result...
how can i compile using the servlet.jar???

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


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

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




RE: I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread Chris Andreou

Yes, sorry for the confusion. I set my classpath to the JDK and to
tomcat\lib. What platform are you using? Take a look at the following url
http://www.ccl.net/cca/software/UNIX/apache/index.shtml

I hope it helps


-Original Message-
From: aras [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 5:09 PM
To: [EMAIL PROTECTED]
Subject: Re: I CANT COMPILE SERVLETS!!!HELP


I'm having the same problem.  So I looked  into your suggestion or adding
$TOMCAT_HOME\bin jar file(s) to my CLASSPATH.  There are no jar files in
that dir.  All my jars are in TOMCAT_HOME/lib.  If the lib dir is what your
talking about, which or the jars to I need to add or do I just point to the
lib dir and it figures it out.


Chris Andreou wrote:

 check you jdk path
 and also set you classpath to all the jar files under the tomcat\bin

 -Original Message-
 From: Zakaria . [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 28, 2001 4:33 PM
 To: [EMAIL PROTECTED]
 Subject: I CANT COMPILE SERVLETS!!!HELP

 Hello,
 I have tomcat running fine but i couldnt compile any servlet. I put the
 servlet in different directories and tried (does it matter?) but same
 result:
 cannot resolve symbol:HttpServlet

 i use this command line from the same directory as the servlet:
 javac -classpath c:\tomcat\lib\servlet.jar Hello.java

 i also downloaded the servlet.jar from the sun site and include it in the
 classpath and in the command line with the same result...
 how can i compile using the servlet.jar???

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

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

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


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

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




Set a context different than the webapps

2001-02-28 Thread Chris Andreou

Hi, 

Platform NT4.0 Apache 1.3.14 Tomcat 3.2.1: 

I have a the following context in my server xml file: 

Context path="/devexamples" 
 docBase="e:/Apachegroup/Apache/htdocs/webdir/examples" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context

and set the the following settings in httpd.conf 
--- 
Alias /devexamples "e:/Apachegroup/Apache/htdocs/webdir/examples"
Directory  "e:/ApacheGroup/Apache/www/htdocs/webdir/examples"
Options Indexes FollowSymLinks
DirectoryIndex index.htm
/Directory

JkMount /devexamples/*.jsp apj12://trw02:8007/devexamples
JkMount /devexamples/servlet/* apj12://trw02:8007/devexamples
--- 

I get the following message in the jk_mod.log file: 

jk_worker.c (123)]: Into wc_get_worker_for_name
apj12://trw02:8007/devexamples
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match apj12://trw02:8007/devexamples
[jk_worker.c (123)]: Into wc_get_worker_for_name
apj12://trw02:8007/devexamples
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker

The Context(s) work fine when they are registered under webapps. Any
sugestions? I checked my
worker.properties file and everything is ok. 

Any suggestions? 

Thanks in advance

Chris




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




RE: /servlet

2001-02-28 Thread Chris Andreou
Title: RE: /servlet



Josh, 
I have the same problem. On step three to you imply that if I create a context 
that points to a different location than Tomcat_HOME then that location should 
be in the CLASSPATH? 


  -Original Message-From: Srinivas Kurella 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 
  28, 2001 3:15 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: 
  /servlet
  Josh, I am not sure if i understand 
  your problem completely , but you DONOT necessarily have to follow the webapp 
  dir structure.
  This is what i do to make the /servlet work(porting from jrun 
  to tomcat with minimum effort :)): 1. create a WEB-INF 
  directory under your app directory and add the web.xml file to it. 
  2. add a context "" in the server.xml file with the docBase 
  as your apps' root dir. 3. Add all the jars/classes 
  explicitly to the CLASSPATH variable before running tomcat.sh to start 
  tomcat. 
  This shd work. 
  Srini -Original 
  Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 28, 2001 12:35 PM To: [EMAIL PROTECTED] Subject: RE: 
  /servlet 
   Yes. Read the 
  manual and it will explain how the direcotry structure 
  has to work. Read the Servlet and/or JSP specification (which 
  Tomcat is the reference implementation of) and you will find 
  out how the directory structure is supposed to 
  work. Look at the sample WEBAPPs that come with 
  Tomcat and you will find out how the directory structure is supposed to work. 
   Randy 
  
  -Original Message- From: Josh 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 28, 2001 3:55 PM To: [EMAIL PROTECTED] Subject: 
  /servlet 
  I'm beginning to thing no one knows the answer to this 
  question. Can anyone help me? Does anyone 
  currently have their setup as follows? 
  As far as I can tell, tomcat doesn't have a way to just allow 
  a /servlet directory so I can put all my .java, 
  .class, and .jar files in like most servlet install 
  files ask, am I missing something? It appears that I have to use the webapps directory, then have the WEB-INF directory structure 
  below it. Is that right? 
  Josh 
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For 
  additional commands, email: [EMAIL PROTECTED] 
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For 
  additional commands, email: [EMAIL PROTECTED] 



RE: tomcat-apache.conf and startup

2001-02-27 Thread Chris Andreou

This is the default behaviour of Tomcat. Start Tomcat and then start your
server


-Original Message-
From: Michael Whitman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 8:29 AM
To: [EMAIL PROTECTED]
Subject: tomcat-apache.conf and startup


Everytime i run tomcat/bin/startup.sh my modified
tomcat-apache.conf gets overwritten with the original version of the file.
Any idea why this is happening?

-Mike


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

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




RE: Where to place .properties-Files when deploying a .war ?

2001-02-27 Thread Chris Andreou

What deployment tool are you using to create the war file ?


-Original Message-
From: Michael Specht [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: Where to place .properties-Files when deploying a .war ?
Importance: High


Hello,

where i have to place the .properties-Files, when deploying an application
as an .war-File?
I tried several locations:
  - in root of war-File
  - in the WEB-INF/lib-directory
  - in the WEB-INF/classes directory
  - in the root of the web-apps/app dir
 and ...

I always get the Message 

java.util.MissingResourceException: Can't find bundle for base name EcoText,
locale de_DE

Can anyone help

Thanks
Michael


Michael Specht

T-Systems
debis Systemhaus Dienstleistungen GmbH, BU CRM Nord
Hausanschrift: Frankfurter Strae 27, 65760 Eschborn
Telefon: (0 61 96) 9 61 - 575
Telefax: (0 61 96) 9 61 - 564
Mobiltelefon: (0171) 45 84 172
E-Mail: [EMAIL PROTECTED]
Internet: http://www.t-systems.de



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

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




mod_jk installation

2001-02-26 Thread Chris Andreou

I have installed (migrated)  from  jser_mod to jk_mod. I installed and I was
able to run the examples. My problems is when I registered a new Context
within Tomcat and try to run a simple sevlet then I get the exception
handling errors. 

The steps i followed were:
Server xml: 

Context path="/examplesb" 
 docBase="webapps/examplesb" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context

httpd.conf :
Alias /examplesb "E:/Tomcat/webapps/examplesb"
Directory "E:/tomcat/webapps/examplesb"
Options Indexes FollowSymLinks
/Directory
DirectoryIndex index.html 

#Configuration for examplesb
JkMount /examplesb/servlet/* ajp12
JkMount /examplesb/*.jsp ajp12

3. Create an examples directory under webapps
Create an Web-Inf directory under examplesb
Create a web.xml file with the following info: 
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
web-app
servlet
servlet-name
HelloWorld
/servlet-name
servlet-class
HelloWorldExample
/servlet-class
/servlet
/web-app

- Create a classes directory the Web-inf
Copy HelloWorldExample.class

Sometimes I get a response and sometimes I don't when I remove the following
files
LocalString.properties


What is the usage of files?  What process and steps should I follow once I
want to register a servlet into Tomcat? 

Thanks in advance



 LocalStrings_en.properties
 LocalStrings_es.properties
 LocalStrings.properties

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


EJB

2001-02-22 Thread Chris Andreou

Greetings, 

Does Tomcat suppor EJB's ?  In case it does how to I set it up, otherwise
any recommendations on what servlet engines should I use are welcome


Thanks

Chris

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




Multiple JVM on the same Tomcat server

2001-02-13 Thread Chris Andreou

Dear forum 

Has anybody configured different JMV on the same TomCat process. I am trying
to configure a development environment to accomodate more than three
developer, with each developer on his own context and a different context
for development and production. 

I follow the instructions from Tomcat - How to but I must be missing
something. 

Thanks in advance 

Chris

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




web.xml file

2001-02-08 Thread Chris Andreou

Dear furom, 

I am a novice user on servlets. I installed Apache and Tomcat 3.2.1 on
Windows NT machine. I have been able to run the examples and create my
directories in webapps directory. I have been unsuccessful in running my own
servlets. Can sonemone send a simple example hot to run a servlet and what
are configuration files

Sincerely

Chris


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