Re: Tomcat vs Apache

2005-05-18 Thread Eric VERGNAUD
If all you're doing is serve static pages, both are equivalent.  
However, if you ever need dynamic content, either client or server  
side, for example a page whose content is extracted from a database,  
or a form for which you need to record the values, you need some kind  
of intelligence.

For that job, Apache relies on cgi and php, while Tomcat relies on  
Servlets and JSP, both based on Java.

Unless you have a good reason to switch to Apache, you should stick  
to Tomcat.

Le 18 mai 05 à 16:37, Chris a écrit :
I've been working with Tomcat for a while now, but I haven't messed  
with Apache yet.  Could someone explain or point me to something  
explaining the differences between Tomcat and Apache?  I have a  
large applet hosted on Tomcat, and am investigating using Apache  
instead.  Is this feasable? TIA.

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


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


getTextContent not found with Tomcat 5.0.28

2005-05-10 Thread Eric VERGNAUD
Hi,
I'm having problems running Tomcat 5.0.28 using JDK 1.5.0.02.
I'm using 1.5 methods such as Node.getTextContent. This works fine  
when run as a standalone app in JDK 1.5, however when run with Tomcat  
under the same JDK, execution throws an exception saying  
getTextContent was not found.

Is there a setting to change somewhere in the Tomcat config files ?
Eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: getTextContent not found with Tomcat 5.0.28 (solved)

2005-05-10 Thread Eric VERGNAUD
Le 10 mai 05 à 15:56, Eric VERGNAUD a écrit :
Hi,
I'm having problems running Tomcat 5.0.28 using JDK 1.5.0.02.
I'm using 1.5 methods such as Node.getTextContent. This works fine  
when run as a standalone app in JDK 1.5, however when run with  
Tomcat under the same JDK, execution throws an exception saying  
getTextContent was not found.

Is there a setting to change somewhere in the Tomcat config files ?
Eric
Tomcat was loading the parser class from the Endorsed folder. I  
removed the various jars from that folder and now it's ok.

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


Re: Want to know better way of deploying

2005-01-18 Thread Eric VERGNAUD
Yes I also encounter this problem with Tomcat 5.0.28 on a Wintel box.
However it did not occur with 5.0.18. Neither does it occur on MacOS.

Looks like something was broken recently, because it's working with 5.0.18
on another Wintel box which I have not upgraded.

I believe Tomcat is unable to delete the war file for some reason, so the
file remains locked.

Maybe this is a global problem on Wintel boxes because I also noticed that
in my servlet, deleting a file that I just created to temporarily save an
upload, also fails randomly.

Could this be related to permissions ?

 I am using ant to create war file. Then i undeploy previous version and
 try
 to deploy new version. But when i try to do this it says
 
 
 FAIL - War file strutstest.war already exists on server
 
 
 Inside /webapp - previous uploaded war file is still present. I can
 not
 delete just like that as it says sharing violation.
 
 So i need to stop Tomcat, delete /webapp/{my prev war file}. Then
 start
 the Tomcat again and deploy the new file.
 
 Is there any other soln ? so that w/o restarting my tomcat can i just
 deploy new version ?
 
 regards
 

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Soap and classpaths

2004-12-14 Thread Eric VERGNAUD
Hi,

On MacOS X, I'm trying to run a web service which looks like this:

 package com.jlynx.soap;

 class service
 {
public String test()
{
return Hello;
}
 }

This class is part of a servlet which is installed as jlynx_servlet.

In the soap admin utility, I deploy this service as follows:

ID: jlynx_service
Scope: Request
Provider Type: java
Provider Class: com.jlynx.soap.service
Use Static Class: false
Methods: Test
Options 1:
Key: classpath
Value: /Applications/jakarta/webapps/jlynx_servlet/WEB-INF/classes

In catalina.policy, I have granted all permissions to soap.

However, when I connect to the server, I get the following error:

Unable to resolve target object: com.jlynx.soap.service

What am I doing wrong ?

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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


Displaying XML in Safari

2004-12-08 Thread Eric VERGNAUD
Hi,

The current version of Safari has no support for pure XML à la Internet
Explorer. What a pity !

I was wondering if there is a simple way to convert an XML document to HTML
that would display properly in Safari.

This is merely an utility, and all I'm looking for is something that will
make XML look like XML. No special features.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Re: Displaying XML in Safari

2004-12-08 Thread Eric VERGNAUD
le 8/12/04 22:33, Larry Meadors à [EMAIL PROTECTED] a écrit :

 If you have a String, you could use c:out, and the escapeXml attribute.
 
 [EMAIL PROTECTED] 12/8/2004 1:33:00 PM 
 Hi,
 
 The current version of Safari has no support for pure XML à la Internet
 Explorer. What a pity !
 
 I was wondering if there is a simple way to convert an XML document to HTML
 that would display properly in Safari.
 
 This is merely an utility, and all I'm looking for is something that will
 make XML look like XML. No special features.
 
 
 

Here is what I found:

http://www.webreference.com/js/tips/011227.html

says:

You can convert an XML file to HTML on the fly, instead of building
DOMDocument objects and running a conversion utility between them. You just
load the XML file in your browser, and out will come the desired HTML. In
order to do this conversion on the fly, you need to specify the XSLT file
(formatting directives) in the body of the XML file. The top two lines of
the XML file should be as follows:

?xml version=1.0?
?xml-stylesheet type=text/xsl href=transform.xsl?
where transform.xsl is the name of the formatting utility.

It works like a charm.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Best place to store files ?

2004-12-07 Thread Eric VERGNAUD
Hi,

I'm developing a servlet which needs to handle file uploads and downloads. I
manage to store the files in a directory inside my servlet, but each time I
upload a new version of my servlet, the files are destroyed.

Is there a preferred place to store such files in Tomcat, or is this
entirely up to the developer and the catalina.policy file ?

Is there a way to tell Tomcat NOT to erase existing files in a servlet, but
only overwrite them with files from the war file ?

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Re: Best place to store files ?

2004-12-07 Thread Eric VERGNAUD
le 7/12/04 23:20, Larry Meadors à [EMAIL PROTECTED] a écrit :

 Put them in a database instead?
 

Thanks, but not an option in this case.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Re: Best place to store files ?

2004-12-07 Thread Eric VERGNAUD
le 7/12/04 23:33, Parsons Technical Services à
[EMAIL PROTECTED] a écrit :

 I use a directory that belongs to the owner of Tomcat and is located outside
 of the Tomcat directory. It really is a matter of preference. As for not
 overwriting the files, I have yet to read anything on this. How would you
 determine which file to keep and which to overwrite? If you never deleted
 any files then the directory would fill with abandoned file that belonged to
 prior versions of your app. That means you would have to manage the files
 manually and with that is the chance to delete a file belonging to your app.
 
 Simple terms, pick a place just for them use it.
 
 Doug

Yes it's simple. I was just wondering whether there was a preferred method
for this, and maybe a folder in the Tomcat directory for that purpose.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Re: Best place to store files ?

2004-12-07 Thread Eric VERGNAUD
le 8/12/04 0:15, Wendy Smoak à [EMAIL PROTECTED] a écrit :

 From: Eric VERGNAUD [EMAIL PROTECTED]
 Yes it's simple. I was just wondering whether there was a preferred method
 for this, and maybe a folder in the Tomcat directory for that purpose.
 
 Nothing in the Servlet Specification requires Tomcat to provide you with a
 permanent place to put uploaded files.
 
 My advice would be to put them outside of Tomcat, and write a thin layer to
 insulate the Servlet from whatever decisions you're making today.  That way,
 if you decide at some point in the future to put the files in a database, or
 do something else with them, you don't have to mess with the Servlet code.
 Your Servlet shouldn't know or care where the files are, it should just call
 'read' or 'write' and let the data access layer deal with the details.

Which is what I already do. As a matter of fact, the layer I'm using makes
it look like a database.

The only thing I was looking for is the preferred place for storing files.
If there is none, that's ok.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Re: How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-23 Thread Eric VERGNAUD
le 20/02/02 17:17, inr à [EMAIL PROTECTED] a écrit :

 Hai all,
 I need the Configuration for setting the error Log
 file for my  WebApplication running on Tomcat 5.5. How to set the Error log
 file in the Server.xml file. [ In Tomcat 5.5 ]
 
 Thanks for ever,
 inr
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

Your clock is not set properly. A little annoying...

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



Re: Suggestion: A dedicated TOMCAT forum!

2004-09-21 Thread Eric VERGNAUD
le 21/09/04 15:13, Shapira, Yoav à [EMAIL PROTECTED] a écrit :

 If we have a Forum AND a mailing list, that leads to confusion: two
 places to post questions, two places to look for answers, etc.  Should
 we drop the mailing list?  I wouldn't be so quick to do that ;)

Please don't. I hate forums.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Re: I've officially decided that JSTL is one of the worst things to ever happen

2004-07-04 Thread Eric VERGNAUD
 I am inclined to agree but not for the same blanket reasons. I have worked
 on 2 very large C++ projects 30+ developers. And I did with another company
 the same thing with C and Java with 7 people in 1/4 the time. I have never
 touched C++ since. Why if you realise you made a design booboo (As I am sure
 I am not the only one)and it has to be changed ripping C++ apart is a more
 difficult than Java.  I know you can say thats down to good OO design but
 really in todays practical terms OO design is low on the priority of getting
 a product out the door. I have changed my doctrine to using small C files
 (less than 1000line) as drivers and then do all the business modelling in
 Java. A system becomes monolithic very quickly unless you are prepared to
 rip it apart and put it back together even before tomorrows deadline. Thats
 why I cannot see myself using C++ again because its too hard keep
 dependencies segregated and the number of layers while trying to do so
 increases. And developers becomes scared of changing anything.
 
 Do you think my argumenr is fundamentally flawed?

It's not. But the use case is. While Java is definitely a good approach for
business apps, it's unacceptable for edited apps, for which look and feel
and raw performance remain top criterias when the customer makes his
choice.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Re: I've officially decided that JSTL is one of the worst thingsto ever happen

2004-07-04 Thread Eric VERGNAUD
le 4/07/04 14:27, SH Solutions à [EMAIL PROTECTED] a écrit :

 Right now, I would say that java applications (if well written) are at least
 half as fast as c applications (also well written).

Which means that when your java app is in competition with a native app,
youve lost the market.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Re: java server mode vs. client mode

2004-06-16 Thread Eric VERGNAUD
le 16/06/04 21:50, Matt Bathje à [EMAIL PROTECTED] a écrit :

 I posted this on the struts list this morning, but it might get better
 answers here.
 
 I was reading the stories here:
 
 http://www.sys-con.com/story/?storyid=45250
 http://www.kano.net/javabench/
 
 Summary:
 Java in server mode is faster than C++ in the benchmarks run. Java in client
 mode is much more iffy, sometimes faster, sometimes slower, and sometimes
 the same.
 
 
 So my question becomes - does anybody have any experience running their
 Tomcat jvm using the -server option instead of letting it default to client?
 
 Based on what the tester says, the only downside of running the jvm in
 server mode is a longer startup time, but the Java code still beat C++ even
 with the longer times, so it can't be too bad.
 
 So anybody have any experience/thoughts on this?
 
 
 Thanks,
 Matt Bathje
 

Matt,

No one can really believe Java is faster than C or C++, because Java is
itself written in C and C++.

I haven't been through the benchmark code throroughly, but there's
definitely a bias somewhere.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Re: a question on viewing servlets

2004-02-21 Thread Eric VERGNAUD
le 21/02/04 10:29, ches_nutsy à [EMAIL PROTECTED] a écrit :

 hi, i would like to ask something about the servlets, i have followed all the
 tomcat's intructions diligently, and i am able to compile them correctly, my
 problem is that I'm not alble to view the servlets, why is this happenning? I
 have saved the class files under
 C:\tomcat\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes and it compiled
 ok, but when i tried to access them, through
 http://localhost/servlet/HelloServlet nothing happens! help me, please
 

Also your servlet folder should be at the same level as ROOT, not inside it.
Your webapps folder should look like the following:

balancer
jsp-examples
servlets-examples
tomcat-docs
ROOT
YOURSERVLET

Eric
---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Server ip address

2004-02-18 Thread Eric VERGNAUD
Hi, I'm new to this list, so I apologize if this question has been asked a
thousand times.

I'm trying to get Tomcat to listen on a specific IP address since there are
2 network adapters on my server.

How do I do this ?

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Re: Server ip address

2004-02-18 Thread Eric VERGNAUD
le 19/02/04 4:00, Parsons Technical Services à
[EMAIL PROTECTED] a écrit :

 http://jakarta.apache.org/tomcat/faq/misc.html#ip
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
 

Thanks

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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