Re: UTF-8 headers and JSP included files

2006-06-21 Thread Seak, Teng-Fong

Mark Thomas wrote:

Dariusz Wojtas wrote:
  

Any hints how to get rid of these extra FFFE chars?
My included files need to be UTF-8 encoded.


Use a text editor that doesn't insert these characters automatically.

Mark
   Yup, for example, Eclipse (version 3 or higher).  It is actually bad 
not to write BOM (those FFFE that you're talking about) but since some 
applications aren't programmed to recognize it, it's good for you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk - querystring

2006-06-09 Thread Seak, Teng-Fong

Arnar Gestsson wrote:

Hi,

I have a setup of Apache2.0.54, mod_jk1.2.15 and tomcat 4.1.31 and I'm 
requesting page with a long querystring, as soon as it becomes longer 
than 3200chars the application seems to break.  I've somewhere seen 
that querystring can be upto 8K

   Actually, there's no limit on the length:
http://rfc.net/rfc2616.html#s3.2.1

   But it's very unwise to use excessively long URI.  I agree with some 
authors that 100 to 200 characters are long enough for GET.  Use POST 
instead:

http://htmlhelp.com/reference/html40/forms/form.html
  So I'm wondering if mod_jk has further limits. I'm looking for 
causes in the application but have not been successful finding bug so 
I wonder.


TIA

Arnar Gestsson



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tray Icon

2006-06-06 Thread Seak, Teng-Fong
   Since he's in Windows platform, it's easier to use Monitor Tomcat 
shortcut in Start menu (Start  All Programs  Apache Tomcat  Monitor 
Tomcat)


Richard Mundell wrote:

Mark,

If you close the icon you can simply re-run the monitoring application:
$CATALINA_ROOT/bin/tomcat5w.exe.

Richard
___
Richard Mundell
The Roberts Group
Market Data Expertise that FITS.
www.trgrp.com


-Original Message-
From: Mark Gladstone [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:55 PM

To: users@tomcat.apache.org
Subject: Tray Icon

Hi,

I've installed Tomcat 5.5.17 and the admin package.  Yes, the admin docs
state that the tray icon will appear if I choose to start Tomcat after
installation; and that I will lose it later.  It is a handy way to
start/stop Tomcat.  Is there any way to get it back?

I've checked FAQs; if I missed the answer that was there, I apologize.

Thanks,
Mark Gladstone

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to make Axis use Tomcat's compiler?

2006-06-02 Thread Seak, Teng-Fong

Hello everybody,

   I don't know if this post would be considered off-topic, or maybe I 
should cross-post it since it's about Axis and Tomcat.


   I'm trying to use Web service in Tomcat, ie with Axis.  I've read 
and followed the install guide and user guide:

http://ws.apache.org/axis/java/install.html
http://ws.apache.org/axis/java/user-guide.html

   Everything's OK, except one thing, Axis needs tools.jar to compile 
JWS on the fly.  So, anyone knows if it's possible to make Axis use 
Tomcat's compiler and how?


   By the way, the docs for Axis are too old; they're still using 
Tomcat 4 as reference!  Furthermore, the docs just say Axis needs Java2, 
but no clear mention if JRE is enough. I mean, Tomcat only needs JRE 
whereas tools.jar could only be found in JDK.  So, JRE or JDK?


   TIA

   STF


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fw: JAVAHOME

2006-05-04 Thread Seak, Teng-Fong
   But I think Tomcat doesn't need JDK.  Instead, it needs a JRE to 
which JAVA_HOME, if specified, is pointing.  OTOH, from 1.4.? in windows 
platform, JAVA_HOME is no more declared as environment variable but is 
read from registry, as stated by Marc.


Marc Farrow wrote:
Also, depending on the Tomcat version (windows installer) the 
JAVA_HOME is

actually read from registry and not environment entry.

On 5/3/06, Jacob Fenwick [EMAIL PROTECTED] wrote:


It should point to the location of your JDK.
Examples:

Windows:
set JAVA_HOME=C:\sun-jdk-1.5.0.06

Linux:
export JAVA_HOME=/opt/sun-jdk-1.5.0.06

Gustav Wiberg wrote:

 Hi there!

 Se down below. I get that fault when I try to run an ischolar
 application.

 It seems to be the JAVAHOME-variable that isn't registrered. But where
 do I
 find that specific variable? (can't find it)
 is jvm and JAVAHOME the same?

 Should this variable point to the JVM-client?

 Best regards
 /Gustav Wibeg





 type Exception report
 message
 description The server encountered an internal error () that
 prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(
DefaultErrorHandler.java:97)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(
ErrorDispatcher.java:346)
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:511)
 org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:295)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)root
 causeUnable to find a javac compiler;com.sun.tools.javac.Main is not
 on the classpath.Perhaps JAVA_HOME does not point to the JDK

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler 


(CompilerAdapterFactory.java:106)
 org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
 org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:511)
 org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:295)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)note The
 full stack trace of the root cause is available in the
 ApacheTomcat/5.0.28 logs.



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



Re: percent sign in URI

2006-02-01 Thread Seak, Teng-Fong
   I'm not sure properly is the correct word to use in your 
situation.  Doing things based on bug is always a big risk.  If one day 
Apache corrects this bug, your customer will have a great pain in the *ss!


abdurrahman sahin wrote:


hi David;
I am aware of the case. As I stated before Apache2 server properly handles
that problem and I need that functionality because our customer's system
built on it.


-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 11:58 AM
To: Tomcat Users List
Subject: Re: percent sign in URI


Hello abdurrahman,

Your url is incorrect, replace it with
http://localhost:8080/aSite/aPage?query=hi%25everybody

According to rfc 1738, 2.2. URL Character Encoding Issues

  Octets must be encoded ..., if the use of the corresponding character is
unsafe, ...
  The character % is unsafe because it is used for encodings of other
characters.
  Thus, only alphanumerics, the special characters $-_.+!*'(),, and
reserved characters used for their reserved purposes may be used unencoded
within a URL.

There is no details in RFC on how to handle badly shaped urls (like % not
followed by 2 hex digits) and thus your urls should not rely upon this.

Regards.

abdurrahman sahin a écrit :

 


I realized apache2 web server properyl handles % sign in URIs, i need =
exact functionality on tomcat 5 too.
When I try to pass a parameter containing % sign, the parameter value on =
the server seems null.
like
http://localhost:8080/aSite/aPage?query=hi%everybody
Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5.

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



   




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



Re: Question reg. setting the environment variable

2006-01-13 Thread Seak, Teng-Fong

gupta vidhi wrote:


hello,
  
 i'd installed jdk-1_5_0_02-windows-i586-p-iftw and jakarta-tomcat-4.1.31 on desktop.but unable to set its required path.i request u to kindly help me out for the same and starting my Tomcat.


   You might find my answer irrelevant, but why are you still using 
Tomcat4?  Tomcat 5.5 is a lot easier to setup and run.



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



Re: how are relative pages/images retrieved?

2005-12-20 Thread Seak, Teng-Fong

Caldarale, Charles R wrote:

From: hanasaki [mailto:[EMAIL PROTECTED] 
Subject: how are relative pages/images retrieved?


the page
http://localhost/a/b/c
has an href to
../images/image1.gif

how is it that the websever knows to convert this into
http://localhost/a/b/images.gif
   



I believe that it's the client (browser) that forms an absolute URL
based on that of the current page.  The client must request each href
independently from the server, although HTTP 1.1 allows them to be
batched together.

- Chuck
 

   It's definitely the client's job to request every resource using 
absolute path.  This must be written in some RFC if you're interested.



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



Re: Multilingual usernames and passwords does not works.

2005-12-15 Thread Seak, Teng-Fong
   If I were you, I'd use Tomcat 5.5.  No, I don't know if your i18n 
problem is related to version, but using the latest version could avoid 
other not so obvious problems.


   As mentioned by other, your encType is wrongly used.  It's for 
MIME-TYPE.  And you don't need to specify acceptCharset is you're using 
one encoding for the whole page.  OTOH, not all browsers support these 
attributes.


   Your problem probably comes from j_security_check.  I've never used 
it, so I'm not sure if it is i18n-aware, or at least utf8-aware.  
You have to know that data are encoded in UTF-8 during the submission to 
server.  If the server (strictly speaking, the programme specified by 
the action attribute) thinks it's ISO-8859-1, your data are screwed.


   So, check the doc on j_security_check to see how to make it read 
data as UTF-8.


   HTH

Manish Dalakoti wrote:


Hi,

I'm using form-based authentication.
Although i'm able to create multilingual user names and passwords, 
tomcat is not able to authenticate using the same.
I'm not able to make out if this is a problem related to 
j_security_check or what, because the username and password which my 
Authenticator receives from

j_security_check is all garbage.

*At JSP level, in my login.jsp page i'm using  :*
**
  /%@ page errorPage=/jspError.jsp pageEncoding=UTF-8 
contentType=text/html; charset=UTF-8 %

.
.
.
  form name=login method=post action=j_security_check 
acceptCharset=UTF-8 encType=UTF-8 onKeyPress=return 
submitOnEnter(event, login)

.
./
  * *,  *to make sure UTF-8 support is there, but to no avail. 
Otherwise, the rest of my application is fully internationalized and 
localized too in few languages.*


Thanx,
Manish




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



Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
   Is it a good idea to specify this parameter in Tomcat startup?  
Where did you read that you have to do so?  Or who told you to do so?


   Regards,

   Seak

Mª Carmen Gómez Romero wrote:


Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I restart =

the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.

 




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



Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
   Nowhere!  Or more exactly, it depends on what you want to do, or 
what's wrong when it's not used.


Mª Carmen Gómez Romero wrote:


I saw this in opencms configuration.

Where do I have to do this?

-- Forwarded message --
From: Seak, Teng-Fong [EMAIL PROTECTED]
Date: Dec 12, 2005 11:03 AM
Subject: Re: encoding error
To: Tomcat Users List users@tomcat.apache.org

  Is it a good idea to specify this parameter in Tomcat startup?
Where did you read that you have to do so?  Or who told you to do so?

  Regards,

  Seak

Mª Carmen Gómez Romero wrote:

 


Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I restart =

the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.

   




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



Re: What's the difference between .zip and .exe from download site?

2005-12-09 Thread Seak, Teng-Fong

Caldarale, Charles R wrote:

From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] 

   I only knew that those batches/scripts are mostly for startup and 
shutdown tomcat.  Which files could help debugging easier?  
   



Frequently, there's output in the console window that is quite useful
when debugging or trying modified configurations; this is more
accessible than the log files, since it's right there in front of you.
I also find it much easier to change command line parameters using the
scripts; once I'm happy with a set, I then apply them to the service via
the GUI.

- Chuck
 

   I see.  Personally, I don't need this info to debug.  On the other 
hand, the system-tray icon has a tab called Logging in which I can see 
there're Redirect stdout and Redirect stderror.  I've never used 
them.  Anyone has used before?  Are they supposed to be redirected to 
files only?  Or could be redirected to console?



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



Re: What's the difference between .zip and .exe from download site?

2005-12-07 Thread Seak, Teng-Fong

Caldarale, Charles R wrote:

From: David Chen [mailto:[EMAIL PROTECTED] 
Subject: What's the difference between .zip and .exe from 
download site?


So, then what is that .zip download for? In which scenarios 
we should use .zip instead of .exe to install TomCat on 
Windows system? 
   



First off, it's Tomcat, not TomCat.

The last time I checked (5.5.12), the .exe download did not include the
.bat scripts that make Tomcat debugging somewhat easier than when
running it as a service.  The .zip does include such scripts, including
one to install it as a service, so you don't lose anything with the
.zip, whereas you do with the .exe version.

- Chuck

 

   I only knew that those batches/scripts are mostly for startup and 
shutdown tomcat.  Which files could help debugging easier?  Personally, 
I'm not convinced that the zip version is easier.



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



Re: What's the difference between .zip and .exe from download site?

2005-12-07 Thread Seak, Teng-Fong
   Exactly!  I've used the zip version once or twice and I found the 
exe version a much better one.  And that's why I wonder what debugging 
easiness one could help with the scripts.



Karthik wrote:


Hi

 The exe version installs a auto service automatically on windows system during 
intallation
 but the zip version does not


 may be this would help u


with regards
Karthik
 


First off, it's Tomcat, not TomCat.

The last time I checked (5.5.12), the .exe download did not include the
.bat scripts that make Tomcat debugging somewhat easier than when
running it as a service.  The .zip does include such scripts, including
one to install it as a service, so you don't lose anything with the
.zip, whereas you do with the .exe version.

- Chuck



   

   I only knew that those batches/scripts are mostly for startup and 
shutdown tomcat.  Which files could help debugging easier?  Personally, 
I'm not convinced that the zip version is easier.
 




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



Re: Internationalization Problem with Tomcat 5.5.9

2005-12-06 Thread Seak, Teng-Fong
   IMO, it's quite possible that your webapp were relying on bugs in 
previous version.  So, you have to make sure you're jsp pages are 
following standards.  The obvious reasons that I could think of are the 
followings tags not being used correctly:


1. %@ page contentType=text/html;charset=utf-8 %
This tag specifies in which encoding your _resultant_ webpage is using.  
It's in UTF-8 in my example.


2. %@ page pageEncoding=iso-8859-1 %
This tag specifies in which encoding your _original_ jsp file is saved.  
It's in ISO-8859-1 in my example.  If your editor can't save in other 
encodings than your system's, I would expect that you're using the same 
encoding here.


3. meta http-equiv=Content-Type content=text/html; charset=utf-8
This tag, which is within HTML head tag specifies once more to the 
browser in which encoding it should use to render the page.  Its 
encoding HAS to be the same as that specified in no 1 (UTF-1 in my 
example).  Some might argue that this is not necessary, but the fact is 
that there're still browsers out there not capable of parsing encoding 
info in HTTP header.


   HTH

   Seak

Vijay Babu wrote:


Hi all,

I am facing a problem with i18n using Tomcat 5.5.9.  I have an application
which has been internationalized for a couple of  languages and is working
fine with Tomcat 4.1.x. But the same application when deployed in Tomcat
5.5.9 does not work. When a jsp page having some text is accessed, its
displaying ?? marks instead of the locale specific text.  I could not
figure out whats causing this problem. Does any one have  idea of what
could be the problem or  is there any configuration change that needs to be
done in Tomcat 5.

Any suggestions would be highly appreciated.

Thanks,
Bob

 




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



Re: Integrating tomcat 5.5.9 w/ Apache 2.0.54 --- which mod_jk

2005-12-04 Thread Seak, Teng-Fong
George Sexton wrote:

Mod_jk2 is deprecated (at least it was a month ago). Use mod_jk.
  

It's quite funny to notice that a deprecated stuff is called mod_jk2
while a newer one is called mod_jk :)

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



How to make a redirector?

2005-12-03 Thread Seak, Teng-Fong
I've seen some websites providing redirector.  I'd like to know if
anyone has done so in Tomcat.  Well, I'm not sure how this mechanism is
called exactly, maybe not called redirector, so let me explain.

I've seen some URL which contains two URL's, something like
http://www.siteA.com/x/http://www.siteB.com/some/path/here/

A concrete example is those links to mirror sites.

Anybody knows if there's something similar for Tomcat?  If it's not
available, I'm willing to programme it.  But I don't know what classes
to use to accomplish this.  Anybody could help?

TIA

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



Re: confusion of tomcat downloading

2005-11-30 Thread Seak, Teng-Fong
Caldarale, Charles R wrote:

From: blueberry lake [mailto:[EMAIL PROTECTED] 
Subject: Re: confusion of tomcat downloading

Someone told me before that combine apache and tomcat 
together and run tomcat behind apahce can kind of 
improve the security of the website.



Urban legend, partly based on people generally being more familiar with
httpd than they are with Tomcat.  There's nothing intrinsically more
secure about one or the other.  There has been some discussion of this
on the mailing list in the past; you can check the archives for more
info.

 - Chuck
  

If JSP and PHP are to be suppoerted in a server, what would
everybody suggest?  Tomcat behind Apache?  Or a PHP parser module
(probably written in Java) running inside Tomcat?

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



Re: Another issue with a special character

2005-11-17 Thread Seak, Teng-Fong

   This seems to be off-topic, but let's continue

   Have you used MySQL Query Browser?  Try to insert the sign and see 
how many bytes it's using.  If it's two, it's almost certainly using 
UTF-8.  If it's one, it seems to be OK.  Then you have to figure out 
which part in your webapp is changing the character.


Information Architecture wrote:

Hi!  I've been following the posts on special characters and have a 
similar problem. I hope this is an appropriate list to post it to.  I 
am not a java programmer, but support a vertical market application 
written in java for which I do not have source and for which the 
vendor is unhelpful at best.  The program uses a special character, 
the copyright sign, to delimit tuples within a single field and parses 
the field using the copyright sign when it extracts the data.  I have 
the app working under Windows 2000 and under SuSE Linux 8.2 running on 
a P5 system.  I am trying to move the app to SuSE SLES 9 running on a 
dual processor opteron.  Everything works except the parts that rely 
on this special character -- the character is inserted into the 
database correctly, but when the field is extracted and parsed, it 
does not work (it uses the fields within the delimiters to mark boxes 
to check).  I have tried inserting the copyright character into a 
field displayed as text by the app and it appears on the SLES system 
as a ?, but on the Windows and older Linux correctly.
The platform is mysql 4.0, tomcat 4.0 (I tried 5.0 on the new system 
but backed down to a version I knew worked on the other system when I 
encountered this problem), apache 1.3x (again, started with 2.0 and 
moved back to see if the problem exists with the exact same setup).  
Java is 1.4.1 on the old system, 1.4.2 on the new system (Sun Client 
Hot Spot).  As far as I can see, character set is ISO 8859-1 
throughout; it definitely is in mysql.  I have tried exporting 
-Dfile-encoding='ISO-8859-1' in the catalina.sh file but to no 
avail.  Any suggestions or ideas of where to look would be appreciated.


Thanks.

Becky




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



Re: Eclipse setup questions

2005-11-17 Thread Seak, Teng-Fong
   I'm using MyEclipse too, but IIRC it mostly export war files (or the 
whole directory structure in Tomcat).  Exporting jar file is still the 
job of Eclipse.


   To the original poster: do you mean you're exporting individual java 
classes or jar files?


   OTOH, if you're developing some classes which are shared amongst 
several webapps, I would advise you to put your classes in shared 
directory (|$CATALINA_BASE/shared/classes, or the other)|, as specified 
in the doc: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html


   Hope this help.||

Allistair Crossley wrote:


We use the MyEclipse range of plugins www.myeclipseide.com which comes
with a Deployer plugin to do this. I've not figured out how to JAR and
distribute to several webapps though yet.

-Original Message-
From: Developer Developer [mailto:[EMAIL PROTECTED] 


I want to be able export my java classes, automatically when the project
is built. I do not want to export them manually by clicking on file
-export etc.
Is there any such setting ?
Thanks !
 




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



Re: Eclipse setup questions

2005-11-16 Thread Seak, Teng-Fong
   Some more precisions are needed.  What output type are you 
referencing to?  Jar?  War?  Or something else?


   But in any case, the general way is File  Export, and then choose 
your type and in the next screen, specify your export destination.  You 
could use default settings for the rest.


Developer Developer wrote:


Hello All,
i am posting this question to the tomcat user group assuming people in this
group are familiar with eclipse IDE.
I am new to eclipse IDE. I have a question on the setup. I have 3 different
packages built in ecplise. I want to be able to direct the ouput of these
packages to 3 different folders that are outside my workspace.
Do you know how I can do that ?
Thanks a lot.

 




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



Re: Internationalization question

2005-11-16 Thread Seak, Teng-Fong
   I'm using Tomcat 5.5.9 (in Windows).  I've tried but I don't have 
any problem.  Try to upgrade your Tomcat.


Scott Smith wrote:


I'm using Tomcat 4.1.29 on Windows.  I have a context setup which contains
some image files (simple jpgs).  In the conf/server.xml file, the context
looks something like:



context path=photos docBase=c:\photodirectory debug=0
privileged=true /



Some of the filenames in this directory have non-English characters (e.g.,
ESPAÑA.jpg).



For the associated website, I have some html pages which refer to these
photos using an image tag that looks something like:



img src=http://myhost/photos/ESPAÑA.jpg ...



The problem is that the photos with non-English characters aren't being
displayed (it appears that Tomcat is unable to find them).  I thought URL
Encoding the filename would fix the problem, but it doesn't.  Some of my
experiments indicate that the browser (at least IE) will URL encode it
anyway as it makes the request.  The html pages are being sent to the
browser as utf-8.



As a test, I hardcoded the picture to be ESPANA.jpg in the html page and
changed the filename in the file system.  Everything worked fine.  Photos
that don't have non-English characters also work fine.  Unfortunately, the
photos are constantly changing and so I don't have the option of simply
renaming the files unless I find a way to do it that can automatically be
applied to future files as well as the current ones.



My suspicion is that Tomcat isn't URL decoding the filename.



Does anyone have any insight into this problem or suggestions about the
best way to fix the problem?



Scott




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



Re: issue tomcat and special characters

2005-11-15 Thread Seak, Teng-Fong
IMO, it's a bad idea to still use Latin-1 these days.  The best way
is to find out why you can't insert those characters.  Well, I don't
know why you can't do so.  Maybe there's because the MySQL provided by
EasyPHP is quite old.

By the way, since you use EasyPhp, that implies you're using
Windows.  You could very well forget about EasyPHP and download an
official MySQL.  You don't use either Apache or Php from EasyPHP,
right?  If yes, there's no reason to still keep it.  Go here and
download the community edition:
http://dev.mysql.com/downloads/

While you're there, you could also download the Connector/J.

As to configuring MySQL, it's quite intuitive and there's not much
to say.  I'm making web pages explaining how to make MySQL+Tomcat to
work but it's still under construction, so I can't show you.  But if you
like, here's a little detail (b.d. means you could just choose the
parameters by default):

After a complete installation of MySQL, there's the Setup Wizard. 
Skip sign-up if you want next
Detailed Configuration (b.d.) next
Developer Machine (b.d.) next
Multifunctional Database (b.d.) next
Tablespace (b.d.) next
Decision Support (b.d.) next
TCP/IP  Strict Mode (b.d.) next
Here, you'd better choose Best Support for Multilingualism option next
(b.d.) and better choose Include Bin Directory in Path next
specify your password and Enable root access from remote machine if
you want.

That's it!

I would suggest you to download the Administrator and Query Browser
from the same download page which you would find very useful and
intuitive.  But their use is off-topic to this mailing-list and to avoid
flame, send me private mail if you need more help on them.

Seak

Seak, Teng-Fong wrote:

 ary martini wrote:

Hi Seak,
thank you for your response.
1) mysql has charset Latin
I would like to use ISO-8859-1 as encoding, as I can then insert special 
characters like è and à. For some reason it does not work for UTF-8 in my case
 
Do you know How I can change the charset on mysql?
 
I cannot locate any config file etc.
 
I use Easyphp containing mysql 4.0
 
Thank you very much for your input
Ary







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



Re: issue tomcat and special characters

2005-11-13 Thread Seak, Teng-Fong
On what encoding is your MySQL configured?  ISO-8859-1 or UTF-8? 
Those Ãx means that your characters are in UTF-8.  Somehow, something in
your program sends UTF-8 to the DB server.

I've done a webapp totally in UTF-8 without any problem.  But I have
to say that I don't have the same config like you.  My Tomcat is 5.5.x. 
Moreover, are you using the correct JDBC driver from MySQL?  And the
most important of all, my MySQL is 4.1 which supports UTF-8 for the
first time, well, if I don't make mistake in understanding this page:
http://www.mysql.com/news-and-events/newsletter/2003-02/a000129.html

The question is what encoding you'd like to use.  If it's UTF-8,
which IMO is much easier because JVM is already in Unicode, I could help
you.  If it's ISO-8859-1, I'm afraid you'd need to do more work to do
your conversion here and there.

Before making the webapp, I've done a sample Java application, a
sort of proof-of-concept, to make that the communication between Java
and MySQL dosn't alter information.  Maybe you should do so.

And what's inside the i18n.jsp?

ary martini wrote:

Hi Team
 
I am using tomcat 4.1.29 with mysql 4.0
 
My application runs on tomcat. There is a file includes.inc.jsp on my 
application which specifies the character setting to ISO-8859-1.
 
Issue:
I cannot insert special characters into my database. 
Example: à , è or ü and ö are inserted as orphan characters like è and ? or à 
 
Test: 
I have changed the charset to UTF-8, it has no effect. For some reason tomcat 
deafults the encoding.
 
Question
How can I check and change the encoding on tomcat?
 
Here an extract from my charset :
 
%@ page language=java errorPage=/error.jsp contentType=text/html; 
charset=ISO-8859-1%
link rel=stylesheet type=text/css media=screen href=/css/formate.css
%@ include file=session.inc.jsp %
%@ include file=i18n.jsp %
%@ include file=declarations.inc.jsp %
%@ taglib prefix=c uri=/WEB-INF/tld/c.tld %
%@ taglib prefix=h2h uri=/WEB-INF/tld/h2h.tld %
 
Thank you very much
Ary


   
-
 Yahoo! FareChase - Search multiple travel sites in one click.  
  



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



Re: Mod_jk Connector

2005-11-10 Thread Seak, Teng-Fong
   A curious question: I've lots of mails here in which people are 
using old versions of stuffs.  Real old stuffs!  For example, Tomcat 
reaches already 5.5.12.  Why don't you get the latest ones to see it 
works first?


Kaushal Shriyan wrote:


I have downloaded the following application

httpd-2.0.49.tar.gz
jakarta-tomcat-4.1.31.tar.gz
jakarta-tomcat-connectors-1.2.15-src.tar.gz

I am able to check http://localhost:8080/index.jsp
and http://localhost

But when I do  http://localhost/examples it says

Not Found

The requested URL /examples was not found on this server.
Apache/2.0.49 (Unix) mod_jk/1.2.15 Server at localhost Port 80

Please help me to resolve this issue

Thanks and regards

Kaushal Shriyan
 




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



Re: Mod_jk Connector

2005-11-10 Thread Seak, Teng-Fong
   Well, he has written that I have downloaded the following 
application so that doesn't seem to be legacy.  And normally these 
stuffs work quite independently of hardware apart from performance, but 
the latest Java works quite good in old machines.


   Or at least, if I were he, I would use Tomcat 5.0.x if there's a 
problem on JRE.


Torsten Krah wrote:


Just guessing: They got legacy stuff and want to use it and doesnt have
the man power to upgrade it or development is discarded but their still
users who want to work with it - just a thought.

Afaik 4.1.31 is the latest 4.1.x Tomcat, so its not old. 


Its like FreeBSD 4.X vs 6.X which was released a few days ago, many
users still want to use 4.X because they trust in it.

best regards

Torsten

Am Donnerstag, den 10.11.2005, 13:12 +0100 schrieb Seak, Teng-Fong:
 

   A curious question: I've lots of mails here in which people are 
using old versions of stuffs.  Real old stuffs!  For example, Tomcat 
reaches already 5.5.12.  Why don't you get the latest ones to see it 
works first?


Kaushal Shriyan wrote:

   


I have downloaded the following application

httpd-2.0.49.tar.gz
jakarta-tomcat-4.1.31.tar.gz
jakarta-tomcat-connectors-1.2.15-src.tar.gz

I am able to check http://localhost:8080/index.jsp
and http://localhost

But when I do  http://localhost/examples it says

Not Found

The requested URL /examples was not found on this server.
Apache/2.0.49 (Unix) mod_jk/1.2.15 Server at localhost Port 80

Please help me to resolve this issue

Thanks and regards

Kaushal Shriyan

 




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



Re: 5.0.28 v 5.5.12

2005-11-09 Thread Seak, Teng-Fong
Does your Tomcat serve a simple html file?  I mean Html file, not Jsp 
file yet.


  How about the environment variables like JAVA_HOME and CLASSPATH?  
Well, in Win, these are no longer needed since TC 5.5 (great job!) but 
maybe they're still needed in Unix/Solaris.


MarcLap wrote:


Hi,

Yes

Here is the version info

java version 1.5.0_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)



-Original Message-
From: Chen Jerry [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
November 09, 2005 7:57 AM

To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: 5.0.28 v 5.5.12

Hey, did you pay attention to that 5.0.x leverages JDK1.4.2 while
Tomcat 5.5.12 leveraging JDK1.5?

2005/11/9, MarcLap [EMAIL PROTECTED]:
 


Hi,

I have been messing with this for a few days and can't figure out 
what is

going on.

5.0.28 works fine. 5.5.12 does not work at all.  Not even port 8080.

Using Solaris 8
Apache 1.3.34
Ssl 0.9.8a
Php 4.4.1
Jk 1.2.15

I did not touch anything in the httpd.conf file.

The server.xml is the same

Help!

  


 




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



Re: upgrading a war file

2005-11-09 Thread Seak, Teng-Fong
   Oops, sorry, I've just noticed that you've written I do not have 
admin web access to the server.  Mea culpa.  But that's strange.  I 
mean, how did you deploy your webapp for the first time?  You must have 
some kind of access.  


Seak, Teng-Fong wrote:

   Do you have full access to the server machine?  If yes, you could 
just copy and paste the war file inside and wait for several seconds.  
At least that's how I do it.  If you want to avoid potential problem 
due to class change, maybe stop TC before pasting and restart it 
afterwards.


Zohar Amir wrote:


Hi,
I have a servlet deployed on my tomcat server. What are the options 
of upgrading this servlet (I have a new war file)? Which is the best 
way? What if I do not have admin web access to the server?








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



Re: Ccinfiguration tomcat 5.0 version in windows xp

2005-11-09 Thread Seak, Teng-Fong

   How about this?
http://tomcat.apache.org/tomcat-5.5-doc/index.html

   The 1st, 2nd and 3rd sections seem to suit your need.

mahesh sankaranarayanan wrote:


Hai all,

Can any one tell me how configuar the tomcat 5.0 right from installation upto 
saving the files to the specific folders

mahesh






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



Re: Annoying JBuilder copying problem

2005-11-04 Thread Seak, Teng-Fong

   I'm not using JB.

   So what exactly is your problem?  JB doesn't copy all files for 
you?  Or you don't want JB to copy at all?  Well, I mean, 
WEB-INF/classes is the correct place to put .class files, so I don't see 
any problem that JB copies them there.  If you want to make sure all 
.class files are there, maybe search around JB to find out how to make a 
jar file which will be put inside WEB-INF/lib.


Dola Woolfe wrote:


Hi,

Those (very few) of you who use JBuilder for Tomcat
development know that JB insists on copying .class
files into the WEB-INF/classes directory for you.
Ordinarily, this is ok, but with the new version of
JBuilder (2006), in one of the diectories it decides
to copy 67 out of 78 files.

1. Has anyone experienced this problem and know a
workaround?
2. Is there a way to prevent JB from copying .class
files into the WEB-INF directory?

Thanks!

Dola Chin

 




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



Re: new Date() returns 0 w/ Tomcat 5.028 on IBM JDK 1.4.2 Linux PPC

2005-10-27 Thread Seak, Teng-Fong
   There's no asterisk in the package name, of course.  My mail client 
added them


Seak, Teng-Fong wrote:

   There are other Date classes in other packages, for instance in SQL 
related packages.  Maybe for an obscure reason, you're not using 
*java.util.Date after some time.  Try to use the whole class name, ie 
**java.util.Date and see if this solves the problem.


   HTH
**




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



Re: Problem getting custom 404 error working on 4.1.31

2005-10-24 Thread Seak, Teng-Fong
I'm using IE 6 SP1 but I found that I have to stuff the page up to
more than 1024 bytes to make the so-called friendly error page disappear.

OTOH, I've found a pitfall with IE.  It's not enough to click the
refresh button to test this.  I have to quit it and reopen it again
after every change to my customized error page to make it take effect. 
A real pain in the ass!

Robert Graf-Waczenski wrote:

IE can be a PITA when it comes to error page display... ;-))

Check if your IE is configured with friendly HTTP error messages. If
this setting is enabled, IE displays its own friendly version of an
error page and simply skips the server response. To avoid this
nonsense-like behavior, your error page must be sufficiently big, i.e.
the response must be more than a few chars of HTML code, as seems to be
the case with your page.
For the fun of it: Try adding HTML comments to your error page and see
what happens if the amount of them exceeds a threshold value (around 500
bytes total response size IIRC). Comments are fine for this, it is
important that the server response size is big enough.

Robert

  

-Original Message-
From: Robert Baruch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 24, 2005 4:13 PM
To: users@tomcat.apache.org
Subject: Problem getting custom 404 error working on 4.1.31


Hi all,

I've been scratching my head over this for a few days, and I just
can't see what I'm doing wrong. I am running 4.1.31 under JDK 1.4.2.

Basically, I've taken the default install of 4.1.31 on Windows. The
only difference from default is that I've installed in
D:/Tomcat 4.1.31

In the conf/web.xml file, I have added this after the welcome-file-
list block:

error-page
   error-code404/error-code
   location/file_not_found.html/location
/error-page

I have also put file_not_found.html into webbaps/ROOT. It just looks
like this:

html
body
There was a problem with your request, please try again
/body
/html

Those are the only changes I have made to the default 4.1.31
installation.


The problem appears to be that the file_not_found.html page is
returned, but with an HTTP 404 status code. I'd like an HTTP 200
status code (OK) to be returned.

The issue is that when I pull up firefox and try to go to a
page that
doesn't exist, such as http://127.0.0.1:8080/nonono, I do get my
page. But when I pull up IE, the browser is showing its default 404
The page cannot be found page. I'd just like to see my error text.

Any ideas on how to do this?

Thanks,

--Rob




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