EXECUTE an external .exe-file (+Parameters) that creates data-filesI want to use later in my servlet

2003-01-21 Thread Patrick Kosiol
Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

  String[] runString = {relativeDataPath + data.exe,
parameter0, parameter1, parameter2, parameter3};
  Process p = Runtime.getRuntime().exec(runString);
  System.out.println(runString);
  if(p.waitFor() == 0){


The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my file 
to do that, what I want. Is it possible that the process can create 
files in the Tomcat folders?


Thx
Patrick


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



!!!HELP!!! how to execute an external .exe-file (+Parameters) thatcreates data-files I want to use later in my servlet

2003-01-21 Thread Patrick Kosiol
Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

 String[] runString = {relativeDataPath + data.exe,
   parameter0, parameter1, parameter2, parameter3};
 Process p = Runtime.getRuntime().exec(runString);
 System.out.println(runString);
 if(p.waitFor() == 0){
   

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my file 
to do that, what I want. Is it possible that the process can create 
files in the Tomcat folders?


Thx
Patrick


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



Re: !!!HELP!!! how to execute an external .exe-file (+Parameters)that creates data-files I want to use later in my servlet

2003-01-21 Thread Patrick Kosiol
Hi,

that might be a problem because my data.exe needs access to some 
data-files placed in a special relative path from its. And this programm 
also creates other files (they were also placed relative to its 
position) and I must also be able to access these files through out the 
Tomcat


Patrick

ningr wrote:

I met the same problems under linux, maybe you should put the data.exe in the directory $CATALINA_HOME/bin, and
Process p = Runtime.getRuntime().exec( ./data.exe );
you can try it.

- Original Message - 
From: Patrick Kosiol [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 10:01 PM
Subject: !!!HELP!!! how to execute an external .exe-file (+Parameters) that creates data-files I want to use later in my servlet


 

Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

 String[] runString = {relativeDataPath + data.exe,
   parameter0, parameter1, parameter2, parameter3};
 Process p = Runtime.getRuntime().exec(runString);
 System.out.println(runString);
 if(p.waitFor() == 0){
   

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my file 
to do that, what I want. Is it possible that the process can create 
files in the Tomcat folders?


Thx
Patrick


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

   



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




Re: Starting an .exe though out of a servlet

2003-01-14 Thread Patrick Kosiol
Hi,

I will never use absolute Paths. This is a rule of myseilf because that 
makes my program dependent from the user...
Is it possible that the current Path in the servlet is the Path where 
the servlet is placed in?

Patrick

[EMAIL PROTECTED] wrote:

try using an absolute path. Also not that there is an output and error
stream which you are not aquireing that may have more detailed information.


-rickb

-Original Message-
From: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 10:58 AM
To: Tomcat Users List
Subject:  Starting an .exe though out of a servlet


Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

   String[] runString = {relativeDataPath + data.exe,
 parameter0, parameter1, parameter2, parameter3};
   Process p = Runtime.getRuntime().exec(runString);
   System.out.println(runString);
   if(p.waitFor() == 0){
 

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 
'relativeDataPath'/bfpldata.exe parameter0 parameter1 parameter2 
parameter3 error=3

Does someone know what 'error=3' mean? And how can I access this 
'data.exe' and execute this File with the Parameters? The 
starting-routine seems to be correct.


Thx
Patrick


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

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


 



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




Re: Starting an .exe though out of a servlet

2003-01-14 Thread Patrick Kosiol
Hi,

I will never use absolute Paths. This is a rule of myseilf because that 
makes my program dependent from the user...
Is it possible that the current Path in the servlet is the Path where 
the servlet is placed in?

Patrick

[EMAIL PROTECTED] wrote:

try using an absolute path. Also not that there is an output and error
stream which you are not aquireing that may have more detailed information.


-rickb

-Original Message-
From: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 10:58 AM
To: Tomcat Users List
Subject:  Starting an .exe though out of a servlet


Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

   String[] runString = {relativeDataPath + data.exe,
 parameter0, parameter1, parameter2, parameter3};
   Process p = Runtime.getRuntime().exec(runString);
   System.out.println(runString);
   if(p.waitFor() == 0){
 

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 
'relativeDataPath'/bfpldata.exe parameter0 parameter1 parameter2 
parameter3 error=3

Does someone know what 'error=3' mean? And how can I access this 
'data.exe' and execute this File with the Parameters? The 
starting-routine seems to be correct.


Thx
Patrick


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

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


 



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




Starting an .exe though out of a servlet

2003-01-13 Thread Patrick Kosiol
Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

   String[] runString = {relativeDataPath + data.exe,
 parameter0, parameter1, parameter2, parameter3};
   Process p = Runtime.getRuntime().exec(runString);
   System.out.println(runString);
   if(p.waitFor() == 0){
 

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 
'relativeDataPath'/bfpldata.exe parameter0 parameter1 parameter2 
parameter3 error=3

Does someone know what 'error=3' mean? And how can I access this 
'data.exe' and execute this File with the Parameters? The 
starting-routine seems to be correct.


Thx
Patrick


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



Re: where is stderr sent? AND ALSO 'System.err'

2002-12-11 Thread Patrick Kosiol
Hi,

this is a good question. In Java there is also a System.err. So I am 
also interested where the Messages were written. How does Tomcat handle 
those errormessages? Are them be logged in a special file oder easiely 
given out through the console. Are there differences between Linux and 
Windows systems where the Tomcat runs?

thx
Patrick

Fabien Roy wrote:

Hi!

Where is stderr sent? Where is this defined?

I have the following line in my application log (the path is defined in
server.xml)

2002-12-11 12:45:42 cgi: runCGI: 1 lines received on stderr

And I would like to know what that line is...

Thanx

Fabien


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

 



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




Re: where is stderr sent? AND ALSO 'System.err'

2002-12-11 Thread Patrick Kosiol
Hi,

OK, thats right but where are the messages written to? Into a logFile?

Patrick

Jon Eaves wrote:


Hi all,

Try these:

Logger className=org.apache.catalina.logger.SystemErrLogger /
Logger className=org.apache.catalina.logger.SystemOutLogger /

Cheers,
-- jon


Patrick Kosiol wrote:


Hi,

this is a good question. In Java there is also a System.err. So I 
am also interested where the Messages were written. How does Tomcat 
handle those errormessages? Are them be logged in a special file oder 
easiely given out through the console. Are there differences between 
Linux and Windows systems where the Tomcat runs?

thx
Patrick

Fabien Roy wrote:

Hi!

Where is stderr sent? Where is this defined?

I have the following line in my application log (the path is defined in
server.xml)

2002-12-11 12:45:42 cgi: runCGI: 1 lines received on stderr

And I would like to know what that line is...

Thanx

Fabien


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

 



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





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




Re: URGENT : Multiple host in Tomcat

2002-12-11 Thread Patrick Kosiol
Hi,

check this docu: 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

Patrick

Laxmikanth M.S. wrote:

This is what I am trying to do

Host name=www.testhost.com debug=15 appBase=testhost

  Context path=/
   docBase=/usr/local/jakarta-tomcat-4.1.12/testhost/ROOT
   debug=5 privileged=true
   Logger
className=org.apache.catalina.logger.FileLogger prefix=Manager_log.
suffix=.txt timestamp=true
   /Logger
  /Context
/Host

Regards
Laxmikanth M S 
Off*  : 91-80-6610330 extn 1256
Res* : 91-80-5267150
http://www.sonata-software.com

 

Coming together is the beginning, staying together is progress and working
together is Success
   

What lies behind us and what lies before us are tiny matters compared to
what lies within us  - Emerson


 

-Original Message-
From:	Andoni [SMTP:[EMAIL PROTECTED]]
Sent:	Tuesday, December 10, 2002 7:04 PM
To:	Tomcat Users List
Subject:	Re: URGENT : Multiple host in Tomcat

What do you want to achieve?

How many servlets to you have?

How many Hosts in Server.xml?

Andoni.


- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 1:22 PM
Subject: RE: URGENT : Multiple host in Tomcat


   

I have mapped my host to http://ftisites.sonata-software.com and have
 

one
   

context /.
i am getting the error which can be found in the attached file
thanks in advacne

Apache Tomcat-4_1_12 - Error report.mht

Regards
Laxmikanth M S
Off*  : 91-80-6610330 extn 1256
Res* : 91-80-5267150
http://www.sonata-software.com

 

Coming together is the beginning, staying together is progress and
   

working
   

together is Success
   

What lies behind us and what lies before us are tiny matters compared to
what lies within us  - Emerson


 

-Original Message-
From: Andoni [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 6:46 PM
To: Tomcat Users List
Subject: Re: URGENT : Multiple host in Tomcat

You want to use the same DNS name and just change the  port number to
bring
up different web-sites?

http://www.mysite.com:1234  ==  context 1

http://www.mysite.com:4321 == context 2

etc.??

I think you cannot do that using only tomcat.  You can do nearly
   

anything
   

with Apache though so you may have to go that way and just rewrite the
   

URL
   

into the tomcat one calling the context path.

Andoni.


- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 1:05 PM
Subject: RE: URGENT : Multiple host in Tomcat


   

ya all that u have mentioned is there
so it means we should have DNS entry for all the virtualhost or can
 

it
   

be
   

done with different port numbers as done in Apache

Regards
Laxmikanth M S
Off*  : 91-80-6610330 extn 1256
Res* : 91-80-5267150
http://www.sonata-software.com

 

Coming together is the beginning, staying together is progress and
   

working
   

together is Success
   

What lies behind us and what lies before us are tiny matters
 

compared
to
   

what lies within us  - Emerson


 

-Original Message-
From: Andoni [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 6:34 PM
To: Tomcat Users List
Subject: Re: URGENT : Multiple host in Tomcat

Have you created a DNS entry pointing at your IP address for each
   

name?
   

Does your Server.xml file have a Host/Host container for each
   

virtual
   

host you want to create?

Look into these things and write again if need be.

Andoni.


- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 12:35 PM
Subject: URGENT : Multiple host in Tomcat


   

Hi all,
I am creating multiple host (virtual Host) in tomcat 4.1.12
 

Server
.
   

Every
   

host contains context as/.
for eg. host 1 is testhost1
and host2 is testhost2
how to access the site.
please let me know soon
thanks in advance
laxmiaknth



 

*
   

Disclaimer: The information in this e-mail and any attachments
 

is
   

confidential / privileged. It is intended solely for the
 

addressee
   

or
   

addressees. If you are not the addressee indicated in this
 

message,
   

you
   

may
   

not copy or deliver this message to anyone. In such case, you
 

should
   

destroy
   

this message and kindly notify the sender by reply email. Please
 

advise
   

immediately if you or your employer does not consent to Internet
 

email
   

for
   

messages of this kind.

 


Re: How to get a File for a certain folder

2002-12-10 Thread Patrick Kosiol
Hi,

the needed class isn't my Problem. It is that I have the relative 
tomcat-path and want to open a folder. But that doesn't work. I can't 
access these folder or also a file, that is my problem. Can you help me?

Patrick

micael wrote:

You just want some functionality in a class.  Where you use it is not 
immediately important.  Just use it in a servlet.  If you don't know 
how to use servlets, that is a separate problem.  Check out Hunter and 
Crawford on servlets.

At 12:37 PM 12/9/2002 +0100, you wrote:


Patrick Kosiol wrote:


Hi,

how can I get a File-Object for a certain Folder placed under my 
$CATALINA_HOME/webapps/ROOT/ - Folder. I want to traverse over the 
files that are placed there.
Can anyone help me?

thx
Patrick


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


I have forgot to say that I want to do this trought out of a Servlet 
that is placed under 
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myapp



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


Micael

---

This electronic mail  transmission and any accompanying documents 
contain information belonging to the sender which may be confidential 
and legally privileged.  This information is intended only for the use 
of the individual or entity to whom this electronic mail transmission 
was sent as indicated above. If you are not the intended recipient, 
any disclosure, copying, distribution, or action taken in reliance on 
the contents of the information contained in this transmission is 
strictly prohibited.  If you have received this transmission in error, 
please delete the message.  Thank you 


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




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




How to get a File for a certain folder

2002-12-09 Thread Patrick Kosiol
Hi,

how can I get a File-Object for a certain Folder placed under my 
$CATALINA_HOME/webapps/ROOT/ - Folder. I want to traverse over the files 
that are placed there.
Can anyone help me?

thx
Patrick


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



How to get a File for a certain folder

2002-12-09 Thread Patrick Kosiol


Patrick Kosiol wrote:


Hi,

how can I get a File-Object for a certain Folder placed under my 
$CATALINA_HOME/webapps/ROOT/ - Folder. I want to traverse over the 
files that are placed there.
Can anyone help me?

thx
Patrick


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

I have forgot to say that I want to do this trought out of a Servlet 
that is placed under $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myapp



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



Get the IP-Adress in a servlet

2002-12-05 Thread Patrick Kosiol
Hi,

How do I get the IP - Adress (and port) from my Tomcat-Server in a servlet?

thx4ur help

Patrick


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




Re: Get the IP-Adress in a servlet

2002-12-05 Thread Patrick Kosiol
Hi,

thats it, thx 2 U ;-)

Mauro Brändle wrote:


Try to check in the Tomcat Documentation - Servlet/JSP Javadocs - javax.servlet
and javax.servlet.http packages.
For class javax.servlet.ServletRequest there's the getServerPort() method that
returns the port number on which the request was received.
I don't know how to get the server IP address, but you can get the server name
with the getServerName() method.

Hope this helps.
Greetings

Mauro

Patrick Kosiol wrote:

 

Hi,

How do I get the IP - Adress (and port) from my Tomcat-Server in a servlet?

thx4ur help

Patrick

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



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


 



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




How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-03 Thread Patrick Kosiol
Hi,

How do I connect to a Data-File above the WEB-INF-Folder from a servlet
For example my class is placed in 
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myApp/server/servlet.class 
and my data-files are placed in $CATALINA_HOME/webapps/data/data.dat or 
so. Is this possible or does anybody know a better way to place my 
data-files? And how do I connect to them?

thx a lot
Patrick


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



Re: How to connect to a Data-File above the WEB-INF-Folder from aservlet????

2002-12-03 Thread Patrick Kosiol
Howdy ;-)

thx 4 ur help, this it is what I wanted.

But there is also another Question. I have a .exe-file that I want to 
start out of the servlet. Of course with some paramteters and one of my 
data-files as one of the parameters. Is that possible? And how do I do 
that?
If that works and the .exe-file is accessing my data-file and another 
instance of the servlet does the same the tomcat can be crash or the 
servlet or so. How do I handle that?

Patrick

Shapira, Yoav wrote:

Howdy,

 

How do I connect to a Data-File above the WEB-INF-Folder from a
   

servlet
 

For example my class is placed in
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myApp/server/servlet.class
and my data-files are placed in $CATALINA_HOME/webapps/data/data.dat or
so. Is this possible or does anybody know a better way to place my
data-files? And how do I connect to them?
   


Data files belonging to or referenced by your webapp should be under
your webapp's structure (or within your webapps .war file).  So if your
app is in the ROOT context, your data files should be in
$CATALINA_HOME/webapps/ROOT/data/data.dat.

Then, from your servlets, you could do:

InputStream is =
getServletContext().getResourceAsStream(/data/data.dat);
(and do whatever you need with the input stream, e.g. read it)
or
URL fileUrl = getServletContext().getResource(/data/data.dat);
To just get the URL for the file.  Don't assume this is a file:// or an
http:// URL.  It may be a jndi:/localhost/... type of URL as well.

You could also use 
String filePath = getServletContext().getRealPath(/data/data.dat);
approach, but that won't work if you're deploying out of a .war file.

Finally, if for some reason you cannot place your data files under your
own context, you can set a data file directory as a context parameter in
your web.xml.  For example:
context-param
 param-namedataFileDirectory/param-name
 param-value/home/myname/mydatafiles/param-value
/context-param

Then in your servlets, you could do:
String dataFileDirectory =
getServletContext().getInitParameter(dataFileDirectory);

String filePath = dataFileDirectory + File.separator + data.dat;
And go from there.

I hope you find this helpful,

Yoav Shapira
Millennium ChemInformatics

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


 



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




Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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



Re: RES: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
THX,

that might be of course, but I am running the default settings of the 
Tomcat so this option is already set TRUE. That is not the problem. 
Because of that I don't understand why it doesn't unpack the war-file
But without the WAR-File can I also put my webapp onto the server? And 
how do I do that?

thx
Patrick

Tiago Ferraz Machado wrote:

Hi,

I don't know if it is it, but there is a directive called unpackWARs=true that I think you should add to your server.xml.

Could anyone confirm that ?

Thanks,

Tiago.

-Mensagem original-
De: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 29 de novembro de 2002 10:18
Para: Tomcat Users List
Assunto: Servlet and Applet working in Tomcat 4.0.4 standalone


Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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


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

 




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




Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
David Brown wrote:


Patrick Kosiol writes:


Hi,
I am using the Tomcat 4.0.4 as a standalone-server. Esspecially 
because JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a 
server-directory (package). The server-dir contains the Servlet-Class 
and the client-dir contains the client, of course. This client is a 
java.applet and does work fine (it is startet through out a 
html-page). But my problem is to connect to the servlet.
I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder and added the Lines
!-- TOMCAT Bfpl-Context -- Context path=/myApp docBase=myApp 
debug=0 reloadable=true / into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. 
But that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a 
java.frame (opened by the applet) to this servlet. What the adress of 
the servlet?
So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(
I hope anyone can help me. thx
Patrick
 

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




Hello Patrick, based on ur info i have to make some assumptions. from 
ur statment: I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder... and on: So the .war - File 
should be extracted at the next start of Tomcat. But that doesn't 
work... i am compelled to ask: does the .war expanded into something 
expected like: $CATALINA_HOME/webapps/myApp? if not, this is the 
source of ur problem. if u do get expansion does this exist?: 
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml? if not, this is the 
source of ur problem. if u do have a web.xml then look 4 the following 
(depending on package naming): 
$CATALINA_HOME/webapps/myApp/WEB-INF/classes/package 
name/myApp/myApp.class (assuming ur servlet is named myApp.java). if 
this does not exits then definitely a source of problems. one small 
observation: ur statement: I have also tried to put the .war file... 
is disturbing because any good development system should work such 
that correct deployment is automatic. i'm not criticisizing jbuilder 
and borland. i like borland products. and, i'm not criticisizing u 4 
ur choices. it just seems many people have problems w/ tc dev based 
more on deployment issues. if u have not progressed try the following: 
try to use the command line and deploy a test servlet (not myApp). 
and, invoke the servlet from the browser. ur applet should be outside 
ur webapps environment. if u can invoke ur test servlet then try to 
invoke it from ur applet. if u r comfortable working from the command 
line u might want to try the ant build system that is used to build 
the tc /examples applications. ant is a very powerfull tool and can 
really help w/ deployment issues. ide's r ok 4 debugging code issues 
but i have found most java developers have issues based more on: 
packaging, directories, files systems and deployment in general than 
code issues. hope this helps, david.

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

Hello,

1. I do not get any expansions.
2. My DirectorySystem is:
   WEB-INF
   classes
   myApp
   client
   server

Can that works that the client and the server classes are in there 
folders? These Directory is created by JB so that should also work in 
Tomcat.

Patrick



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