Re: DBCP datasource works on 5.0.28 but fails on 5.5.

2005-07-21 Thread Kenneth B. Harwood
This issue was originally submitted by Steve Kirk on 20-May-2005
and RESOLVED on 22-May.  FYI, I experienced the same error(s) as 
Steve and tried all the same things Steve did before discovering 
Steve's question (and thread) on the User List.  The fix (as first
advised by Lutz & Nicola) was to create the configuration files with
the proper settings.  I'm running:

Apache 2.0.54 (w/the latest mod_jk)
TC 5.5.9 (w/multiple instances)
mySQL Server 4.1
Win2K Pro (w/multiple IP addresses)

The thread was very helpful.  I solved my problem after QUADRUPLE
CHECKING my  and  files.  I don't know what
exactly fixed it, but this is what I did (and currently have):


1) Remove the  related to my database connection 


1) Use the "improved" Resource element style.  
That is, define as many params as possible within the Resouce Tag:

   

2) Define additional non/essential parameters within the  Tag:

   

factory
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory


 testWhileIdle
 true


 timeBetweenEvictionRunsMillis
 1


 minEvictableIdleTimeMillis
  6

   

3) Note possible incorrect documentation

Note I am using org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory.

According to the TC docs, the "factory" setting should be:
org.apache.commons.dbcp.BasicDataSourceFactory

There was another thread on this userlist (I can't locate it now) which 
advised using a different class. All I can say is that when I extract the 
class list from /Tomcat/common/lib/naming-factory-dbcp.jar,
I do *not* see org.apache.commons.dbcp.BasicDataSourceFactory.

-

Now my SQL statement (w/TagLib) works just fine:

  ...

  

  


 - Ken H.

RE: CATALINA_BASE

2005-07-13 Thread Kenneth B. Harwood
it turns-out that my problem was defining CATALINA_BASE improperly
for the Win2K service.  i was setting CATALINE_BASE as an Enviroment
variable. for example:

  MS-DOS> CATALINA_BASE=...

and then i 'ed the Service.  wrong! that is NOT how to define config 
params for the Tomcat (all MS-Windows?) Service.  as a result, when my 
Tomcat Service started, it had no knowledge of my environment variable and
just defaulted CATALINA_BASE to CATALINA_HOME.

i fixed the problem by running the Service Management GUI (tomcat5w.exe). 
under startup options i added a line: -Dcatalina.base=G:/tomcatuser
and that did the job.

shame on me for developing under Win2K instead of FreeBSD.

thanks to all for reviewing/answering my post.

 - ken harwood


i'm running the latest tomcat (5.5.9) on Win2K Pro.
Tomcat works in the default configuration.  thanks.
i'm trying to get Tomcat working using CATALINA_BASE.
that is, i want a second Tomcat instance to serve my 
webapps from a directory different than the default.  

the "default" directory is (F:\tomcat 5.5\webapps\myapp).
the "secondary" is (G:\tomcatuser\webapps\myapp).
CATALINA_HOME=F:\tomcat 5.5
CATALINA_BASE=G:\tomcatuser

[snip]

Tomcat seems to ignore my "second" configuation.  
that is, when i start tomcat it keeps trying to fetch
my web pages from the [F:] disk's directory.



Re: CATALINA_BASE

2005-07-12 Thread Kenneth B. Harwood
what is the minimum file configuration required to run multiple Tomcat
instances?
conceptually, i shouldn't need an ENTIRE Tomcat file installation in my
second
(third, fourth, whatever) directory;   Tomcat should only require a small
amount of
customizing  in the target directory(s).

for example, the secondary  directory should only require a modified
 file.  that way, when Tomcat is starting up and it detects that
CATALINA_BASE is defined, the program should know to gather it's
instance configuration information from the "second" server.xml file instead
of the primary one.

or, are there a whole bunch of files that would need to be brought over and
modified?  if that's the case then that would be a violation of good design
practice.
philosophically, all the "localized" stuff should be in a single file.

sorry to sound so academic-lite about the subject.

 - ken h.




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



Re: CATALINA_BASE

2005-07-12 Thread Kenneth B. Harwood
woops.
i just saw a CATALINA_BASE thead in May '05.
i'll take a look at that.

is there a user-list SEARCH form anywhere or do
i need to check the archives manually month-by-month?

- ken h.

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



CATALINA_BASE

2005-07-12 Thread Kenneth B. Harwood
i'm running the latest tomcat (5.5.9) on Win2K Pro.
Tomcat works in the default configuration.  thanks.
i'm trying to get Tomcat working using CATALINA_BASE.
that is, i want a second Tomcat instance to serve my 
webapps from a directory different than the default.  

the "default" directory is (F:\tomcat 5.5\webapps\myapp).
the "secondary" is (G:\tomcatuser\webapps\myapp).
CATALINA_HOME=F:\tomcat 5.5
CATALINA_BASE=G:\tomcatuser

the [G:] directory structure and user files looks to be 
perfectly in order. for example, 

 G:\tomcatuser
  [conf][webapps]  [log]
{server.xml}   [myapp]
{context.xml}   *.jsp

Tomcat seems to ignore my "second" configuation.  
that is, when i start tomcat it keeps trying to fetch
my web pages from the [F:] disk's directory.

fyi, i have apache2 httpd in front of Tomcat, using the
AJP/1.3 protocol.  no problems with the connection!
if i can get the apache web server talking to Tomcat,
then this CATALINE_BASE thing should not be too difficult
to set-up.  what the heck am i doing wrong?

other information:
1) i do NOT really need multiple instances running.  
i just want to keep my Tomcat executables on drive
[F:] and my development stuff on drive [G:].  so, i
haven't tested the system with >1 instance running.

2 i already know about 'appBase'.  what i want is
for my Tomcat development instance to start-up 

thanks.

 - ken harwood



Re: SPAM-LOW: PayPal Account Security Measures

2005-06-08 Thread B Wiley
I DONT HAVE A PAY PAL ACCOUNT ! I DON'T USE PAYPAL 
!! I'M NOT CLICKING ANYTHING !



At 04:48 PM 6/8/2005, you wrote:

You have recieve this email because you or someone had tried to used
your paypal account at http://www.springbok-computers.co.uk Below is the
details about the transaction made:

Transaction site : http://www.springbok-computers.co.uk
Order ID : FMO17436466
Amount : $263
Date : Wednesday, Jun 08



To confirm or decline this transaction, please follow the link provide
below. Please save the fraud alert id for your reference.

http://www.paypal-confirmation%2Did-0746795.com

If we do not get the confirmation within 5 business days, your account
will be suspended until further notice.


Sincerely,
The PayPal Security Team

PROTECT YOUR PASSWORD

NEVER give your password to anyone and ONLY log in at
https://www.paypal.com/. Protect yourself against fraudulent websites
by
opening a new web browser (e.g. Internet Explorer or Netscape) and
typing
in the PayPal URL every time you log in to your account.




Please do not reply to this email. This mailbox is not monitored and
you
will not receive a response. For assistance, log in to your PayPal
account
and click the Help link located in the top right corner of any PayPal
page.
PayPal Alert ID : 0746795


-
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]



An unexpected exception has been detected in native code outside the VM.

2005-05-26 Thread David B Sullivan
We're running Tomcat 4.1 on Sun Solaris 9, connecting to another Solaris 9 
box running Oracle 9.2.0.1 and Java 1.4.2_05.
When Tomcat tries to connect to the DataBase, it crashes, with the log 
file shown below. We can point Tomcat at another DataBase, same versions 
of everything, and it works fine. We can point to this DataBase from 
another server, with everything being the same and that works too. Not 
being knowledgeable of Tomcat or reading the traceback information, I 
really don't know where to start looking 
We're locked into versions because of the Application, so I really need to 
get this Version working.
Can anybody tell me what this log file is saying?? 
Any info would be much appreciated.
Thanks,
 cat hs_err_pid2578.log

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xEF8EDD88
Function=[Unknown. Nearest: vcharSizedNormalizeUTF+0x460]
Library=/usr/local/matrix/1052/RMI/lib/solaris4/libvgalaxy-unicode.so.7

Current Java thread:
at com.matrixone.jni.MatrixKernel.dbStartup(Native Method)
at com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:47)
- locked <0xf5f3ffe0> (a java.lang.Class)
at com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:35)
at 
com.matrixone.jdl.rmi.bosErrorObjectImpl.(bosErrorObjectImpl.java:10)
at 
com.matrixone.jdl.rmi.bosInterfaceImpl.(bosInterfaceImpl.java:50)
at 
com.matrixone.jdl.MatrixJNISession.getInterface(MatrixJNISession.java:43)
at 
com.matrixone.jdl.MatrixRMISession.getInterface(MatrixRMISession.java:74)
at matrix.db.Context.getInterface(Context.java:1191)
at matrix.db.Context.getContext(Context.java:1241)
at matrix.db.Context.printTrace(Context.java:2684)
at com.matrixone.servlet.AuditServlet.init(AuditServlet.java:63)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
- locked <0xf22a8010> (a org.apache.catalina.core.StandardWrapper)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
- locked <0xf22a8010> (a org.apache.catalina.core.StandardWrapper)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3363)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3586)
- locked <0xf22dfa38> (a org.apache.catalina.core.StandardContext)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774)
- locked <0xf200bc28> (a java.util.HashMap)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
- locked <0xf200bd40> (a 
org.apache.catalina.core.StandardHostDeployer)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:741)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
- locked <0xf2009448> (a org.apache.catalina.core.StandardHost)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
- locked <0xf2009448> (a org.apache.catalina.core.StandardHost)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
- locked <0xf1fe6e70> (a org.apache.catalina.core.StandardEngine)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
- locked <0xf1fe6e70> (a org.apache.catalina.core.StandardEngine)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
- locked <0xf201a2c8> (a [Lorg.apache.catalina.Service;)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

Dynamic libraries:
0x1 /usr/local/j2sdk1.4.2_06/bin/java
0xff3700

Form Based Authentication

2005-05-12 Thread David B. Saul
Having a problem being challenged on Linux.

Form based using the tomcat-users.xml file works under windows.

However, when same code is deployed to Linux the page is never challenged.

I checked server.xml on both platforms as well as the specific webapp.
Even built a Hello World example to eliminate other stuff.

Any suggestions/ideas?

thanks
Dave


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



RE: Form Based Authentication

2005-05-12 Thread David B. Saul
Never Mind - It was permissions on the tomcat-users.xml file. Duh!




-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 12, 2005 7:37 PM
To: 'Tomcat Users List'
Subject: Form Based Authentication


Having a problem being challenged on Linux.

Form based using the tomcat-users.xml file works under windows.

However, when same code is deployed to Linux the page is never challenged.

I checked server.xml on both platforms as well as the specific webapp. Even
built a Hello World example to eliminate other stuff.

Any suggestions/ideas?

thanks
Dave


-
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: Tomcat5.5.9 + jdk1.5 HTTPS

2005-05-10 Thread Carlos =?utf-8?b?Q29uZMOp?=
Jason Bainbridge  gmail.com> writes:

> Try specifying an absolute path for the keystoreFile, I'm not sure
> what that is relative to and shouldn't that be .keystore anyway?

I've tried with an absolute path for the keystore, and with the default
($HOME/.keystore) location, it still does'nt work !

If I misspell the absolute path or if the keystore is not in the default
location (without a path in the server.xml), tomcat throws an exception... So
tomcat takes the right keystore when I specify it.

I've sent the problem to Thawte technical support, they're still trying to find
out...




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



How to log the content-type??

2005-05-06 Thread Juan Manuel Soler =?iso-8859-1?b?UmluY/Nu?=
Hi

Someone know how to log the content-type of any request??

Thx


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



Log the Content-type

2005-05-04 Thread Juan Manuel Soler =?iso-8859-1?b?UmluY/Nu?=
Hi

I need to log the content-type of the request in a tomcat web-server, can
someone help  me with that???

thx

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



RE: Serving files using tomcat

2005-05-04 Thread David B. Saul
May not be critical but try using the ServletOutputStream instead of
OutputStream.
DOC URL:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletResponse.html


//Clear content of the underlying buffer in the response 
//without clearing headers or status code.
response.resetBuffer();
response.setContentLength(output.length);

//Returns a ServletOutputStream suitable for writing binary data in the
response. 
//The servlet container does not encode the binary data. 
ServletOutputStream os = response.getOutputStream();
os.write(output);
os.close();

Additionally, append   &pdf=.pdf\   to the URL.





-Original Message-
From: Anhony [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 9:20 AM
To: Tomcat Users List
Subject: Re: Serving files using tomcat


I use this code and it works in my app. Their are small differences between 
how we copy the data to the response output. I don't know for sure, but this

may account for why the fragment I posted works.

The difference is small, I think it would be worth giving it a try.

AS-


- Original Message - 
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, May 04, 2005 11:47 AM
Subject: Re: Serving files using tomcat


> Unfortunately that is what I do
>
> OutputStream dos = null;
>FileInputStream fis = null;
>   try
>   {
>fis = new FileInputStream(rf.getPdf());
>response.setContentType("application/pdf");
>response.setContentLength((int) rf.getPdf().length());
>//response.setHeader(response.)
>dos = response.getOutputStream();
>
>int read = -1;
>byte[] bytes = new byte[10];
>while((read = fis.read(bytes)) != -1)
> dos.write(bytes, 0, read);
>dos.flush();
>return mapping.findForward("PDF");
>   } catch (Exception e)
>   {
>// TODO Auto-generated catch block
>if(e instanceof SocketException)
> return mapping.findForward("reload");
>throw new IOException(e.toString());
>   }
>   finally
>   {
>
>if(dos != null)
> dos.close();
>if(fis != null)
> fis.close();
>
>
>   }
>
> Acrobat now loads but the PDF doesn't appear.
>
> Probably worth mentioning that I use struts, so I forward to a blank 
> page with the content type set to application/pdf, maybe that is the 
> problem, but not sure what else to do with the return.
>
> When I do the same thing with a dynamic image and forward to a page 
> with a jpg content type, the image appears without a problem.
>
> Steve
> - Original Message -
> From: "Anhony" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Thursday, May 05, 2005 1:02 AM
> Subject: Re: Serving files using tomcat
>
>
>> Greetings,
>>
>> Take a look at the code fragment below. It should serve as a good
>> starting
>> point.
>> I hope this helps.
>>
>> AS-
>>
>> private void processPDFRequest(HttpServletRequest request, 
>> HttpServletResponse response) throws ServletException, IOException, 
>> Exception
>> {
>> int bytesCopied = 0;
>>
>> FileInputStream fin = null;
>> OutputStream out = null;
>>
>> String fileAddress = "The fully qualified path to your PDF file";
>> if( fileAddress == null )
>> return;
>>
>> int ext = fileAddress.lastIndexOf( '.' );
>> if( ext != -1 )
>> {
>> ext = fileAddress.substring( ext+1,
>> fileAddress.length() ).toLowerCase();
>>
>> if( ext == "pdf" )
>> response.setContentType("application/pdf");
>> else
>> "Do whatever you think best to do"
>> }
>> else
>> "Do whatever you think best to do"
>>
>> try
>> {
>> out = response.getOutputStream();
>> fin = new FileInputStream( fileAddress );
>> bytesCopied = StreamCopier.copy( fin, out );
>> }
>> finally
>> {
>> if( fin != null )
>> fin.close();
>> if( out != null )
>> {
>> out.flush();
>> out.close();
>> }
>> }
>> }
>>
>>
>> - Original Message -
>> From: "Steve Vanspall" <[EMAIL PROTECTED]>
>> To: "Tomcat User List" 
>> Sent: Wednesday, May 04, 2005 9:29 AM
>> Subject: Serving files using tomcat
>>
>>
>> Hi,
>>
>> I have been looking around and haven't found a solution that works
>>
>> basically I have a PDF that gets created dynamically. Now to save 
>> memory
>> I
>> have the PDF written to a file rather than a ByteArray. The only way I 
>> can
>> be sure that I wont encounter errors creating the file is to use
>> File.createTempFile. The creation goes of ok. And I have checked the file
>> itself and the PDF looks great.
>>
>> How do i now serve this to the user who has requested it. If I try to
> write
>> it to the response (using the same method I use to creare dynamic 
>> image, this works), it just shows up a blank screen.
>>
>> The problem also is, even if it di

RE: pdf not working

2005-05-04 Thread David B. Saul
Yes - I did some looking on the MS site and found that the earlier IE
browsers were making three requests while 5.5 makes two. Haven't found what
6 is doing. But setting the response type, length, adding the &pdf=.pdf\
works. In addition the same kind of thing helped with SVG - but slightly
different - (i.e. &MIME=image/svg) as part of the URL.

You comment about the ActiveX is important as well according to what I found
searching MS. 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 7:25 AM
To: 'Tomcat Users List'
Subject: RE: pdf not working


I think your point 2 is more important. I found out that in IE, I have to
append .pdf somewhere in the url otherwise the ActiveX control that
interprets pdf simple wouldn't work. In my piece of work, I use
http://www.mydomain.com/myapp/statement.pdf?myquerystring... Mozilla/Firefox
has no such problem.

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: May 4, 2005 12:51 PM
To: 'Tomcat Users List'
Subject: RE: pdf not working


Here is what worked for me. The PDF is created dynamically.

1. a small bit of code which used FOP and served it as a stream. Be sure to
set the response type.

  byte[] fo;
  .
  .
  .
  InputSource fopInput = new InputSource( new ByteArrayInputStream( fo )
);
  ByteArrayOutputStream outStream = new ByteArrayOutputStream();
  Driver driver = new Driver( fopInput, outStream );
  driver.setLogger(log);
  driver.setRenderer(Driver.RENDER_PDF);
  driver.run();
  output = outStream.toByteArray();

  response.setContentType("application/pdf");
  response.resetBuffer();
  response.setContentLength(output.length);
  ServletOutputStream os = response.getOutputStream();
  os.write(output);
  os.close();

2. Also added to the URL at the end was the following:

&pdf=.pdf\

   Can't remember where I found this idea, nor can I find it at this minute,
but it made it work.

hth,
Dave




-Original Message-
From: Jay Hulslander [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 6:17 AM
To: Tomcat Users List
Subject: Re: pdf not working


Just so I understand, file.jpg is hosted fine back to a browser.  File.pdf, 
in the same location, is not hosted back to the browser find.  Is that what 
you are experiencing?  Sounds like tomcat is configured to "execute" pdf 
documents as opposed to hosting them.  Much like you would configure a web 
server to execute streaming video as opposed to just hosting a video to be 
downloaded.  I do not know where this configuration is done in Tomcat, but 
that is where I would start.
-Jay
At 06:04 AM 5/4/2005, you wrote:
>Hi all,
>
>Iam trying to call a link to a new window and that's calling a pdf 
>document thats somewhere in my folder under webapps. The problem is 
>that the pdf is not shown. If i try it with an image it will be 
>displayed correctly. I am using Tomcat 5.5.
>
>Maarten
>--
>No virus found in this outgoing message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005
>
>
>-
>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]


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


!DSPAM:4278d3bc82251395011244!


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



RE: pdf not working

2005-05-04 Thread David B. Saul
Here is what worked for me. The PDF is created dynamically.

1. a small bit of code which used FOP and served it as a stream. Be sure to
set the response type.

  byte[] fo;
  .
  .
  .
  InputSource fopInput = new InputSource( new ByteArrayInputStream( fo )
);
  ByteArrayOutputStream outStream = new ByteArrayOutputStream();
  Driver driver = new Driver( fopInput, outStream );
  driver.setLogger(log);
  driver.setRenderer(Driver.RENDER_PDF);
  driver.run();
  output = outStream.toByteArray();

  response.setContentType("application/pdf");
  response.resetBuffer();
  response.setContentLength(output.length);
  ServletOutputStream os = response.getOutputStream();
  os.write(output);
  os.close();

2. Also added to the URL at the end was the following:

&pdf=.pdf\

   Can't remember where I found this idea, nor can I find it at this minute,
but it made it work.

hth,
Dave




-Original Message-
From: Jay Hulslander [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 6:17 AM
To: Tomcat Users List
Subject: Re: pdf not working


Just so I understand, file.jpg is hosted fine back to a browser.  File.pdf, 
in the same location, is not hosted back to the browser find.  Is that what 
you are experiencing?  Sounds like tomcat is configured to "execute" pdf 
documents as opposed to hosting them.  Much like you would configure a web 
server to execute streaming video as opposed to just hosting a video to be 
downloaded.  I do not know where this configuration is done in Tomcat, but 
that is where I would start.
-Jay
At 06:04 AM 5/4/2005, you wrote:
>Hi all,
>
>Iam trying to call a link to a new window and that's calling a pdf 
>document thats somewhere in my folder under webapps. The problem is 
>that the pdf is not shown. If i try it with an image it will be 
>displayed correctly. I am using Tomcat 5.5.
>
>Maarten
>--
>No virus found in this outgoing message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005
>
>
>-
>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]


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



RE: TC v5.5.9 Won't Server *.htm Files

2005-04-27 Thread David B. Saul
I have 5.5.7 and it seems to work ok - not much help - but -

Suggestion ( and a WAG ) check the web.xml in conf for the following mime
mapping:


htm
text/html


Let us know...

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 11:13 PM
To: tomcat-user@jakarta.apache.org
Subject: TC v5.5.9 Won't Server *.htm Files


Hello all,

I'm sure this must be a configuration issue. I am running TC 5.5.9 as a
stand-alone server (not w/Apache). The problem I'm seeing is that when I
point my browser to an "index.htm" file, Tomcat gives me a 404, telling me
it cannot find "index.jsp".

Please notice I said, "index.htm" and not "index.html".

Here's a peek at the HTTP headers as captured by Firefox. I'm only showing
the relevant headers.

GET /fred/bob/index.htm HTTP/1.1
Host: xxx.test1.com

HTTP/1.x 404 /fred/bob/index.jsp
Server: Apache-Coyote/1.1


Is that crazy? I'm asking for index.htm and it  *DOES* exist. If I rename it
to index.html everything works fine.

I know what you're thinking -- probably I do not have the "welcome files"
set right in my default web.xml. Well, here it is:


index.html
index.htm
index.jsp


And I am *NOT* overriding these in the web app's web.xml.

Can someone running TC 5.5.9 as a standalone server please see if you can
serve an index.htm file?

Thanks much,

Bob



-
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: Finding xalan and xerces on Linux

2005-04-26 Thread David B. Saul
Yes - 1.5 was installed before TC.

-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 3:28 PM
To: Tomcat Users List
Subject: Re: Finding xalan and xerces on Linux


Silly question, but are you sure you were using JDK 1.5.0+ on your Linux
install? Tomcat might have picked up a different version of it, or even GCJ.

-Riyad

On 4/26/05, David B. Saul <[EMAIL PROTECTED]> wrote:
> Installed TC 5.5.7 on Windows
> Created page using JSTL ( jstl.jar and standard.jar )
> 
> Did not need to add xalan or xerces especially since they are now 
> included in Java 1.5.
> 
> Deployed to Linux
> Used same versions of all components ( TC, JSTL, JAVA-JDK & JRE)
> 
> I had to add the xalan and xerces in the ./WEB-INF/lib directory.
> 
> Did I miss something or do I have to do this?
> 
> Yes - I set JAVA_HOME, JRE_HOME, CATALINA_HOME and ???_HOME :)
> 
> Any help would be appreciated
> 
> -
> 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]


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



Finding xalan and xerces on Linux

2005-04-26 Thread David B. Saul
Installed TC 5.5.7 on Windows 
Created page using JSTL ( jstl.jar and standard.jar )

Did not need to add xalan or xerces especially since they are now included
in Java 1.5.

Deployed to Linux
Used same versions of all components ( TC, JSTL, JAVA-JDK & JRE)

I had to add the xalan and xerces in the ./WEB-INF/lib directory.

Did I miss something or do I have to do this?

Yes - I set JAVA_HOME, JRE_HOME, CATALINA_HOME and ???_HOME :)


Any help would be appreciated


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



Re: finding context's jar file

2005-04-15 Thread "Altuğ B. Altıntaş"
I found the answer
String classpath = (String) request.getSession()
   .getServletContext().getAttribute(
   "org.apache.catalina.jsp_classpath");
Regards.
AltuÄ B. AltÄntaÅ wrote:
I need to find which jar files are being used in one context,
for example below code can give me some information about  
sun.boot.class.path


<%
  String classpath = System.getProperty("sun.boot.class.path");
  out.println(" " + classpath);   %>


Is there anything like that :

<%
  String classpath = System.getProperty("tomcat.context.class.path");
  out.println(" " + classpath);   %>

Any idea ?
Regards.
-
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]


finding context's jar file

2005-04-14 Thread "Altuğ B. Altıntaş"
I need to find which jar files are being used in one context,
for example below code can give me some information about  
sun.boot.class.path


<%
  String classpath = System.getProperty("sun.boot.class.path");
  out.println(" " + classpath);   
%>



Is there anything like that :

<%
  String classpath = System.getProperty("tomcat.context.class.path");
  out.println(" " + classpath);   
%>


Any idea ?
Regards.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacode>javac -classpath
"c:\tomcat\common\lib\servlet.jar" HelloWorld.java

C:\javacode>javac HelloWorld.java


"David B. Saul" <[EMAIL PROTECTED]> wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
>
>
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let 
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your 
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class 
>HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class 
>HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>T

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes,
only if the folder/directory names have spaces, and then search your system
for HelloWorld.class if
you do not see it in this directory. You also mentioned you were using a
batch file, or script file, to
compile. Do this from a command line from the directory you where the source
code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath.
I am guessing this is the HellowWorld.java servlet example included with
Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacode>javac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacode>javac -classpath
"c:\tomcat\common\lib\servlet.jar" HelloWorld.java

C:\javacode>javac HelloWorld.java


"David B. Saul" <[EMAIL PROTECTED]> wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath >4.1\common\lib> HellWorld.java
>
>
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class
>HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLAS

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath "C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar" HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

>tried that too... but it can't identify the path.
>
>C:\javacode>javac -classpath 4.1\common\lib> HellWorld.java
>
>  
>

Try use quotes instead of '<' and '>' to quote the class path.

Good luck.

Bao

>The system cannot find the file specified.
>
>anyways.. now will reinstall as suggested 'without' spaces and will let 
>you know.. thanks so far
>
>"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>Try compiling the class by including the path for servlet.jar in your 
>javac command, if you haven't done that yet.
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:33 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>I compiling it from the command prompt.
>The sourse code is in c:\javacode
>so i on cmd... i change directory to c:\javacode>javac HelloWorld.java
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>I am sorry, but how are you compiling your class ?
>Are you using any IDE (i.e Eclipse, Jdeveloper) ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 10:07 AM
>To: Tomcat Users List
>Subject: RE: class path (UNCLASSIFIED)
>
>The same as before.
>
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^
>HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
>HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
>location: class HelloWorld
>public class HelloWorld extends HttpServlet { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException { ^
>HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
>location: class HelloWorld
>public void service(HttpServletRequest request, HttpServletResponse
>response) th rows ServletException, IOException {
>
>^
>6 errors
>
>-
>
>"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
>Classification: UNCLASSIFIED
>Caveats: NONE
>
>What errors are you getting again ?
>
>-Original Message-
>From: S M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 13, 2005 9:47 AM
>To: Tomcat Users List; Jason Bainbridge
>Subject: Re: class path
>
>Hi
>These are the env. variables that I have set explicitly for tomcat 4.1 
>installation
>
>lJAVA_HOME = C:\java\bin
>lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
>HOME%\lib\j2ee.jar;"
>
>I have the path =C:\java\bin; when i installed
>J2sdk1.4.2_06
>
>
>
>These being the variables I am still getting that error log where the 
>compiler cannot locate the servlet pakages.
>
>Hope you can assit further.
>
>Thanks.
>
>
>
>Jason Bainbridge wrote:
>On Apr 12, 2005 3:39 PM, S M wrote:
>  
>
>>sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
>>mentioned and yes it shows me the CLASSPATH as listed below
>>
>>
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
>J2EE_
>HOME%\lib\j2ee.jar;"
>  
>
>>>where ";C:\javacode" had the source code.
>>>  
>>>
>
>Have you explicityly set CATALINA_HOME as well? Does it have spaces in 
>it? If so surround it with double quotes or move it to a path with no 
>spaces. I don't think having servlet.jar and j2ee.jar in the same 
>classpath is a good idea either.
>
>Regards,
>--
>Jason Bainbridge
>http://kde.org - [EMAIL PROTECTED]
>Personal Site - http://jasonbainbridge.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
>Download Messenger Now
>  
>



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



RE: java.library.path - DLL - Domino ..why not use CORBA?

2005-04-07 Thread Jesper B. Kiær

Hi Bernard

If you're running on the same machine you do not need to have a Domino
session but can call the Domino classes as local. Actually it may be faster
to access
Domino with CORBA. Take a look at http://www.advisor.com/doc/07472

I must admit i have never heard of anyone tring to access Domino the way
you do.

My guess is that it is not the fastest way and proberbly unstable.

regards
Jesper B. Kiaer

http://www.jezzper.com



-"Durfee, Bernard" <[EMAIL PROTECTED]> wrote: -

>To: Tomcat Users List
>From: "Durfee, Bernard"
>Date: 04/07/2005 15:18
>Subject: RE: java.library.path - DLL - Domino ..why not use CORBA?
>
>Jesper,
>I seemed to me that there would be a performance increase in using
>the DLL, since the servlet is running on the same machine as Domino.
>Using the CORBA method to connect to the same machine seemed like
>extra overhead.
>
>Bernard Durfee
>
>
>-Original Message-
>From: Jesper B. Kiær [mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 07, 2005 3:03 AM
>To: Tomcat Users List
>Subject: Re: java.library.path - DLL - Domino ..why not use CORBA?
>
>
>
>Hi
>
>I'm wondering why you're using the Domino DLLs to access Domino?
>
>Domino has a Corba interface which enables you to access all the
>Domino classes (exept the Notes UI)
>
>This whould be the "normal" way to do it.
>
>What makes you choose the other way?
>
>regards
>Jesper B. Kiaer
>
>http://www.jezzper.com
>
>
>-"Durfee, Bernard" wrote: -
>
>>To: Tomcat Users List
>>From: "Durfee, Bernard"
>>Date: 04/06/2005 22:33
>>Subject: java.library.path - DLL - Domino
>>
>>I am trying to use the native library for connecting to Domino from
>a
>>servlet. I was under the impression that the DLL needed to be in
>the
>>path specified by the java.library.path system property. However,
>>this
>>does not seem to work.
>>
>>I got to the point where even brute force did not work...
>>
>>System.setProperty("java.library.path", "D:\\Lotus\\Domino");
>>m_logger.info("Using java.library.path: " +
>>System.getProperty("java.library.path"));
>>
>>...from the logger...
>>
>>Using java.library.path: D:\Lotus\Domino
>>
>>...then the line...
>>
>>System.loadLibrary("nlsxbe");
>>
>>...fails with the following exception...
>>
>>java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path at
>>java.lang.ClassLoader.loadLibrary(Unknown Source) at
>>java.lang.Runtime.loadLibrary0(Unknown Source) at
>>java.lang.System.loadLibrary(Unknown Source)
>>
>>...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This
>is
>>on a Windows 2000 machine. Any ideas?
>>
>>Bernard Durfee
>>
>>
>-
>>
>>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]
>
>
>-
>
 >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: java.library.path - DLL - Domino ..why not use CORBA?

2005-04-07 Thread Jesper B. Kiær

Hi

I'm wondering why you're using the Domino DLLs to access Domino?

Domino has a Corba interface which enables you to access all the Domino
classes (exept the Notes UI)

This whould be the "normal" way to do it.

What makes you choose the other way?

regards
Jesper B. Kiaer

http://www.jezzper.com


-"Durfee, Bernard" <[EMAIL PROTECTED]> wrote: -

>To: Tomcat Users List
>From: "Durfee, Bernard"
>Date: 04/06/2005 22:33
>Subject: java.library.path - DLL - Domino
>
>I am trying to use the native library for connecting to Domino from
>a
>servlet. I was under the impression that the DLL needed to be in the
>path specified by the java.library.path system property. However,
>this
>does not seem to work.
>
>I got to the point where even brute force did not work...
>
>System.setProperty("java.library.path", "D:\\Lotus\\Domino");
>m_logger.info("Using java.library.path: " +
>System.getProperty("java.library.path"));
>
>...from the logger...
>
>Using java.library.path: D:\Lotus\Domino
>
>...then the line...
>
>System.loadLibrary("nlsxbe");
>
>...fails with the following exception...
>
>java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
> at java.lang.ClassLoader.loadLibrary(Unknown Source)
> at java.lang.Runtime.loadLibrary0(Unknown Source)
> at java.lang.System.loadLibrary(Unknown Source)
>
>...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This
>is
>on a Windows 2000 machine. Any ideas?
>
>Bernard Durfee
>
>-
>
 >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: Tomcat Timers/threads?

2005-04-07 Thread Jesper B. Kiær

HI

Take a look at Quartz.

Link:
http://www.opensymphony.com/quartz/

regards
Jesper B. Kiaer

http://www.jezzper.com



-Charl Gerber <[EMAIL PROTECTED]> wrote: -

>To: tomcat-user@jakarta.apache.org
>From: Charl Gerber
>Date: 04/06/2005 15:11
>Subject: Tomcat Timers/threads?
>
>Does Tomcat 4.1 provide a way to schedule tasks?
>Something similar to java.util.Timer?
>
>BEA WebLogic eg offers a
>weblogic.management.timer.Timer which has the same
>affect, but is controlled by the application server.
>
>I've been using a java.util.Timer up to now in Tomcat
>4.1. I initialize it in the a ServletContextListener
>and gracefully kill it there again when the
>application stops, but strickly speaking this is
>probably not correct. I've had no problems up to now,
>though.
>
>Does Tomcat offer a correct(er) solution, or can I
>continue with the java.util.Timer?
>
>Thanks!
>
>
>-
>
 >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: Configuring Manager for different Virtual Hosts

2005-04-02 Thread John B. Moore
Folks,
  I got it working finally...(after several days of repeated head 
banging..) 

Following is how I got it to work (Tomcat 4.1.29)..
  1) Copy the folder 

  $CATALINA_HOME/server/webapps/manager
..to the directory that contains your web application..
Example:
 $CATALINA_HOME = /usr/local/tomcat
 ..copy folder /usr/local/tomcat/server/webapps/manager to 
/usr/local/tomcat/webapps/somesubdirectory/

  2) Copy the manager.xml found in the main webapps directory:
$CATALINA_HOME/webapps/manager.xml
...to the same directory that you copied the manager folder..
  3) Edit manager.xml
 Change the "docBase" attribute to reflect the location copied to 
above..

Example:
 docBase="/usr/local/tomcat/webapps/somesubdirectory/manager"
  4) Edit either your mod_jk.conf file or the specific copy for that 
host.   (here I keep a custom conf file for each host, with the name of 
that host.conf)  This is the same file or files that you "include" in 
the Apache httpd.conf file   (There may be other ways around this, but 
this is the way I did it..)

  a) Open the mod_jk.conf file (after Tomcat has be started at 
least once if you have AutoConfig on..) and find the localhost:/manager 
section.  Copy this entire section to the end of the JkMount commands..

  b) Paste this section into each VirtualHost setting (possibly a 
different .conf file..)

  c) Edit the Alias and Directory tags to reflect the same full 
path to the manager folder..

 5) Make sure you have setup the role "manager" in the tomcat_users.xml 
file and a user for that role. (Instructions in the Manager HowTo)

 6) Restart Tomcat
 7) Access manager via a browser at
  http://your.domainhere.com:8080/manager/html
 (I have yet to get it to load directly through Apache yet..  for my 
purposes this is fine and works for me..)

  Hope that helps someone...
  John Moore
  SonicSpider LLC
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring Manager for different Virtual Hosts

2005-04-02 Thread John B. Moore
Anto,
   Thanks for replying..  Sadly there must be something else to 
configure..  I did read all the relevant documents and the manager works 
fine for the default "webapps" context.  I added the line you suggested 
to that virtual host.. restarted everything (including Apache)  

  I then type in
  http:// /manager/html
... and Tomcat indicates that such a context does not exist..
  This, in my thinking is understandable, because I have not 
configured  a context IN tomcat (i.e. server.xml) for that Host and that 
is what I think I'm missing.. It is  just can not find any documentation 
to help me on this.. (though I remember seeing a discussion on this 
somewhere..)  I tried to pattern after the default host but because  my 
webapps are "down one more level" in the directory structure the pattern

Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
..does not work..  it parses it to
Alias /usr/local/tomcat/webapps/someapp/../server/webapps/manager
.. which does not exist..
  If you have a momment, please reread my original message that 
explains the configuration of my web applications..  Any ideas would be 
appreciated...

  Thanks again for taking the time to respond..
  John..
Anto Paul wrote:
I have a single line to do it in the VirtualHost
JkMount /manager/* a9
First configure manager application as specified in the Manager how to.
There are some config steps in Tomcat if you have different
CATALINA_BASE for each web application.
 



Configuring Manager for different Virtual Hosts

2005-04-01 Thread John B. Moore
I know I saw the info on this topic somewhere, but for the life of me, I 
can not relocate it.. (can not come up with the magic search strings... 
I spent hours trying different searches...)  

Task: I am trying to configure the Manager tool to manage different 
virtual hosts on a webserver  (Apache -> Tomcat 4.1.29) so that I can 
restart a single webapplication when I make changes.

I have various subdirectories under webapps that are configured as 
separate hosts and contexts

i.e. /webapps/someapp/
In that directory I have a web application and I want the setup  the 
Manager for stopping and starting this app..

Using the example for the localhost context I saw the alias
Alias /usr/local/tomcat/webapps/../server/webapps/manager
..along with all the related settings...
Since my webapp is in  /usr/local/tomcat/webapps/someapp/
I tried..
Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
.. along with related settings...  No joy.. it dropped the first "../" 
and still can not track to that alias directory..

So am I chasing my tail..   And/or can someone point me to that 
phantom discusson on setting up the manager for other host/context/ 
subdirectories...

Thanks...
John...


Manager in other webapp subdirectories hosts/contexts

2005-03-30 Thread John B. Moore
I know I saw the info on this topic somewhere, but for the life of me, I 
can not relocate it.. (can not come up with the magic search strings...)

I have various subdirectories under webapps that are configured as 
separate hosts and contexts

i.e. /webapps/someapp
In that directory I have a web application and I want the setup  the 
Manager for stopping and starting this app..

Using the example for the localhost context I saw the alias
Alias /usr/local/tomcat/webapps/../server/webapps/manager
..along with all the related settings...
Since my webapp is in  /usr/local/tomcat/webapps/someapp/
I tried..
Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
.. along with related settings...  No joy.. it dropped the first "../" 
and still can not track to that alias directory..

So am I chasing my tail..   And/or can some point me to that phantom 
discusson on setting up the manager for other host/context/ 
subdirectories...

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


Re: [OT] Jav/JSP Programmer

2005-03-03 Thread B Wiley
Hi Carl, are you looking for someone "on-site" or "off-site" ?
P.S.
please do the world a favor and get rid of the flash intro at the beginning 
of your site, my eardrums just exploded !!

Best Regards,
-Wiley


At 12:08 PM 3/3/2005, you wrote:
I apologize for placing this on this mail list but I am getting pretty
desperate.
The opportunity: Small company, opportunity to grow with it and participate
in its success.
Technical requirements: Java/JSP, Apache/Tomcat and SQL required.  Knowledge
of Linux, NetBeans and JasperReports helpful.
Location:  Charleston, SC.
Reply to me directly.
TIA.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 3/2/2005
-
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: Serving up a Flash file

2005-02-20 Thread B Wiley

"It's amazing how large some
of the gaps in my knowledge truly are."
Words of a wise man. I find myself thinking the same thing daily. I'm sure 
we are not alone :)



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


tomcat hackers ...

2005-02-13 Thread B Wiley

Hello, I've been getting some things in my logs like ...

217.20.113.110 - - [13/Feb/2005:09:41:39 -0500] "GET 
/Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../hosting.html 
HTTP/1.1" 200 5564 "-" "Mozilla/4.0 (compatible; MSIE 5.16; Mac_PowerPC)"

What is this guy getting from this ? Am I just paranoid or what ???



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


Web App to Cell Phone

2005-02-08 Thread B Wiley
This may be off topic but I'm looking for a java solution to deliver MMS or 
WAP push "ringtones" to cell phones via my tomcat shopping cart. Does 
anyone know of some good solutions for this ?

Thanks in advance
-Wiley

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


jsp include no flush

2005-02-04 Thread A B
This is a re-post ... I sincerely apologize, but I'm hoping the new title is 
more appealing and someone will be kind enough to spare a minute. Any jasper 
gurus on this list? Though I'll take answers from non-gurus too at this 
point ... I'm flailing here ;-)

--
I'm using Tomcat 5.0.28 and WindowsXP.
The PageContext.include(String, boolean) method seems to just block in the 
Jasper impl (goes off into never never land) irrespective of whether I pass 
true or false as the second argument.

Can someone confirm this? If someone has encountered this before, please let 
me know. The PageContext.include(String) method does just fine.

Thanks!
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


jasper: PageContextImpl.include(String, boolean) method blocks?

2005-02-03 Thread A B
I'm using Tomcat 5.0.28 and WindowsXP.
The PageContext.include(String, boolean) method seems to just block in the 
Jasper impl (goes off into never never land) irrespective of whether I pass 
true or false as the second argument.

Can someone confirm this? If someone has encountered this before, please let 
me know. The PageContext.include(String) method does just fine.

Thanks!
-Al
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


Unable to initialize TldLocationsCache: null

2005-01-12 Thread K B
Hi,
I'm using tomcat 5.5.4 on Linux and jdk 1.4.2, I deployed a web application 
but I am getting the error below. Has anyone seen this before, what is the 
fix?

SEVERE: Servlet.service() for servlet action threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: 
null
   at 
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249)
   at 
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:220)
   at 
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
   at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
   at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
   at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
   at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
   at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
   at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:674)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:400)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:303)
   at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
   at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
   at 
oracle.jbo.html.struts11.BC4JRequestProcessor.processForwardConfig(BC4JRequestProcessor.java:100)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:534)

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.co.uk

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

Re: apache jk2.conf and tomcat question heeelp

2004-12-23 Thread B Wiley
Thank you but I'm still not getting something, how do you create an alias 
directory ??? Is that just a symlink ?

Please help me understand one concept. I cannot seem to get an answer for 
this ANYWHERE I've been at this for WEEKS

I do not want my jsp pages and my html pages in two different locations . I 
just want them all in /var/www/html. Is this possible ? Can this be done, 
does anyone understand what I'm talking about hlp


At 08:45 PM 12/22/2004, you wrote:
I think the way to do that is set up an alias directory inside apache.conf 
pointing to that absolute location, then put the entry in jk2.conf for 
that alias.

Cheers,
-T
Hello,
Is there a way to put an absolute path in the jk2.conf  tag 
that would look like 

/var/www/html/*.jsp
I'm trying to set things up so If i have a .jsp in my website root it 
forwards the request to tomcat without having the .jsp physically sitting 
inside the tomcat root.

Is this possible ???
Thanks in advance
-
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]

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


apache jk2.conf and tomcat question heeelp

2004-12-22 Thread B Wiley
Hello,
Is there a way to put an absolute path in the jk2.conf  tag that 
would look like 

/var/www/html/*.jsp
I'm trying to set things up so If i have a .jsp in my website root it 
forwards the request to tomcat without having the .jsp physically sitting 
inside the tomcat root.

Is this possible ???
Thanks in advance
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: setting up tomcat/JBOSS with apache

2004-12-16 Thread B Wiley
Hello Wendy, tomcat sits inside jboss and handles the jsps and servlets. I 
guess this could just be a tomcat/apache question.

The reason I'm asking is because I know for a fact when you use RESIN 
(another j2ee container) . You can have your jsps and servlets sitting 
ANYWHERE on the server, like in the same place your static content is and 
setup apache to send those requests to resin and setup resin to listen for 
them ANYWHERE.

But when I use JBOSS with tomcat I have to have my jsp's and servlets 
sitting in the webapps folder specifically and map to them there.

Okay let me rephrase everything. I have a file in my 
/var/www/htdocs/index.jsp and I want tomcat to see it there directly not in 
webapps under tomcat. I don't want the index.jsp in webapps/root/index.jsp 
then map it to apache2 with mod_jk - I don't think it can be done by just 
adding a handler to httpd.conf...

Thanks for giving this some thought, I'm probably in the wrong mailing list 
and not making any sense
thanks

At 10:47 AM 12/16/2004, you wrote:
From: "B Wiley" <[EMAIL PROTECTED]>
> All I
> see online and in every example is how mod_Jk helps you knock out the
> :8080 but the apps have to be sitting in webapps.
No, they don't.  For example the 'manager' webapp that ships with Tomcat
does not live under 'webapps'.
>The reason I'm asking is I was hosting a site on a resin server and that
>server seems to have the setup I was describing, you can keep your apps on
>apache and just configure the http.conf.
Seems like it's more trouble than it's worth, to me.  But if you can come up
with URL patterns that need to be handed off to Tomcat, plus convince Apache
not to serve anything under WEB-INF directly, then I'm sure you could get it
to work.
What problem are you trying to solve by doing this?  (And what does it have
to do with JBOSS?  I skipped it initially because I don't use JBOSS, but
your question only seems to deal with Tomcat/Apache/JK configuration.)
--
Wendy Smoak
-
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: setting up tomcat/JBOSS with apache

2004-12-16 Thread B Wiley
nobody???
Hello, I'm confused on something basic. I understand how to set up mod_jk2 
and configure an app something like http://localhost/myApp/test.jsp such 
that the app myApp is sitting in the java container but can I have myApp 
sitting on apache i.e. /var/www/htdocs/myApp and configure a handler in 
httpd.conf that just forwards .jsp,servlets to the java container? All I 
see online and in every example is how mod_Jk helps you knock out the 
:8080 but the apps have to be sitting in webapps.

The reason I'm asking is I was hosting a site on a resin server and that 
server seems to have the setup I was describing, you can keep your apps on 
apache and just configure the http.conf.

Thanks for anything, correct me please if I'm confused , i sure am confused
-
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]


setting up tomcat/JBOSS with apache

2004-12-15 Thread B Wiley
Hello, I'm confused on something basic. I understand how to set up mod_jk2 
and configure an app something like http://localhost/myApp/test.jsp such 
that the app myApp is sitting in the java container but can I have myApp 
sitting on apache i.e. /var/www/htdocs/myApp and configure a handler in 
httpd.conf that just forwards .jsp,servlets to the java container? All I 
see online and in every example is how mod_Jk helps you knock out the :8080 
but the apps have to be sitting in webapps.

The reason I'm asking is I was hosting a site on a resin server and that 
server seems to have the setup I was describing, you can keep your apps on 
apache and just configure the http.conf.

Thanks for anything, correct me please if I'm confused , i sure am confused
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


include directive " or "include action" are now make the same effect ?

2004-12-11 Thread Altug B. Altintas

I thing in the new versions of Tomcat these below to code 
<%@ include file="time.html" %>



make the same effect.  When i make changes in time.html; i always see the main 
page uptodate whether using "include directive " or "include action"

spec changed ? 

Regards


Problems with mod_jk 1.2.6 logging

2004-11-04 Thread tkalyan b
mod_jk works fine as long as the "JkLogLevel" is
"info" but as soon as i change it to something like
"debug",Apache fails to serve any page and I get the
following error in httpd log though mod_jk.log doesnt
show any error.

[Fri Nov 05 11:40:40 2004] [notice] Apache/2.0.52
(Unix) mod_jk/1.2.6 configured -- resuming normal
operations
[Fri Nov 05 11:40:40 2004] [info] Server built: Nov  5
2004 10:29:44
[Fri Nov 05 11:40:40 2004] [debug] prefork.c(955):
AcceptMutex: sysvsem (default: sysvsem)
[Fri Nov 05 11:40:57 2004] [error] (13)Permission
denied: apr_global_mutex_lock(jk_log_lock) failed
[Fri Nov 05 11:40:57 2004] [notice] child pid 27152
exit signal Segmentation fault (11)

Not sure if this is the right forum for this but
mod_jk is a part of tomcat-connectors so i posted it
here.

Kalyan



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



RE: jboss with tomcat

2004-11-03 Thread B Wiley
I should of re-worded my question. I'm just looking for the default setup 
to show me things in 2.4.4 that only exist in 3.x.x .
I figured out the version I am using 2.4.4 uses 
<http://localhost:8082>http://localhost:8082 to access the jmx agent . I 
don't even think it has a web-console. Thanks for the response.

At 05:57 AM 11/3/2004, you wrote:
Hi,
Hmm, not trivial.  Start by validating your web.xml using a tool like
XMLSpy.
Yoav Shapira http://www.yoavshapira.com
>-Original Message-
>From: B Wiley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 02, 2004 5:34 PM
>To: [EMAIL PROTECTED]
>Subject: jboss with tomcat
>
>Hello, I've got tomcat embedded into jboss 2.2.5 .
>
>I get some kind of mapping error when I go to
>http://localhost:8080/web-console/ and the browser displays a 500
error.
>What is causing this and where can I look to fix it?
>
>[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
>configuration
>error for request URI
>[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
>java.lang.NullPointerException
>  at
>org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
>rValve.java:280)
>  at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
>rValve.java:180)
>  at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
>.java:564)
>  at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
>ava:170)
>  at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
>.java:564)
>  at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
>a:472)
>  at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>
>  at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
>ve.java:163)
>  at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
>.java:566)
>  at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
>a:472)
>  at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>
>  at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
>r.java:1011)
>  at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
>va:1106)
>  at java.lang.Thread.run(Unknown Source)
>
>thanks
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
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]


jboss with tomcat

2004-11-02 Thread B Wiley
Hello, I've got tomcat embedded into jboss 2.2.5 .
I get some kind of mapping error when I go to
http://localhost:8080/web-console/ and the browser displays a 500 error.
What is causing this and where can I look to fix it?
[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration
error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
 at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
rValve.java:280)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:180)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
 at java.lang.Thread.run(Unknown Source)
thanks 

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


RE: Using shutdown script for different port

2004-09-30 Thread Dhruva B. Reddy
Back to my original issue--I was having trouble shutting down Tomcat
when the shutdown service was listening to a non-default port, but have
since sorted it out.

After going through the source code, I found that when processing the
shutdown command, the Bootstrap system just uses the configuration in
CATALINA_BASE, so all you need to do change the port in server.xml, and
make sure your shutdown script references the correct directory
hierarchy.

Thanks,
Dhruva


--- Steve Kirk <[EMAIL PROTECTED]> wrote:

> 
> OK.  I didn't realise that, although I suppose it's obvious in
> hindsight.  I
> just saw the potential for it to go wrong if that "localhost" check
> failed,
> and disabled it.  I didn't actually test whether it could be shutdown
> from
> another host.
> 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday 29 September 2004 21:26
> > To: Tomcat Users List
> > Subject: RE: Using shutdown script for different port
> > 
> > 
> > 
> > Hi,
> > You must have a weird setup... The shutdown socket only accepts
> > connections from its localhost.
> > 
> > Yoav Shapira
> > Millennium Research Informatics
> > 
> > 
> > >-Original Message-
> > >From: Steve Kirk [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, September 29, 2004 4:22 PM
> > >To: 'Tomcat Users List'
> > >Subject: RE: Using shutdown script for different port
> > >
> > >
> > >To be clear, the default setup _does_ allow shutdown using 
> > telnet from
> > any
> > >machine unless your host or network security blocks it.  Or at
> least
> > that
> > >was the case when I installed mine.
> > >
> > >I have the shutdown feature disabled on my setup because I 
> > didn't like
> > the
> > >possible security hole. However I suggested it because I imagined
> you
> > had
> > >already secured the shutdown port using firewalling but were
> looking
> > for a
> > >way to stop each instance from the localhost.
> > >
> > >> -Original Message-
> > >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > >> Sent: Wednesday 29 September 2004 21:11
> > >> To: Tomcat Users List
> > >> Subject: RE: Using shutdown script for different port
> > >>
> > >>
> > >>
> > >> Hi,
> > >> Of course, you can only do this telnet from the local machine ;)
> > >> Otherwise we'd have a nice security hole ;)
> > >>
> > >> Yoav Shapira
> > >> Millennium Research Informatics
> > >>
> > >>
> > >> >-Original Message-
> > >> >From: Steve Kirk [mailto:[EMAIL PROTECTED]
> > >> >Sent: Wednesday, September 29, 2004 4:10 PM
> > >> >To: 'Tomcat Users List'
> > >> >Subject: RE: Using shutdown script for different port
> > >> >
> > >> >
> > >> >You can certainly telnet to the shutdown port and send 
> > the shutdown
> > >> string.
> > >> >You could do this using a scripting tool or simple Java class.
> For
> > >> example,
> > >> >telnet to localhost 8015 then send the string "shutdown", or
> > whatever
> > >> >string
> > >> >is configured in server.xml for that port.
> > >> >
> > >> >> -Original Message-
> > >> >> From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED]
> > >> >> Sent: Wednesday 29 September 2004 20:21
> > >> >> To: tomcat
> > >> >> Subject: Using shutdown script for different port
> > >> >>
> > >> >>
> > >> >> I am running two instances of Tomcat 4.1 on one machine, from
> a
> > >> common
> > >> >> installation (i.e., different CATALINA_BASE).  I have 
> > the shutdown
> > >> >> service  for each instance listening on a different port (the
> > >> original
> > >> >> instance on the default port of 8005, and the second instance
> > >> >> on 8015).
> > >> >>
> > >> >> Getting the instances to listen on a different port was 
> > easy, but
> > I
> > >> >> can't seem to find any information on how to actually specify
> a
> > >> >> non-default port in the shutdown script.  Some documentatio

Using shutdown script for different port

2004-09-29 Thread Dhruva B. Reddy
I am running two instances of Tomcat 4.1 on one machine, from a common
installation (i.e., different CATALINA_BASE).  I have the shutdown
service  for each instance listening on a different port (the original
instance on the default port of 8005, and the second instance on 8015).

Getting the instances to listen on a different port was easy, but I
can't seem to find any information on how to actually specify a
non-default port in the shutdown script.  Some documentation that I did
manage to find suggested the following would work:

shutdown.sh port 8015

but I get the usage message when I try that.

Can anyone tell me how to do this?

Thanks,
Dhruva



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Tomcat5.0.25 TCP Session Replication

2004-09-02 Thread $B4d:j(B $B?7(B
On Tomcat5.0.25 it doesn't replicate, even though I try to do session 
(Breplication.
(B
(BBelow is a setting.
(B
(Bserver.xml of SERVER 1
(B
(B			managerClassName="org.apache.catalina.cluster.session.DeltaManager"
(B			expireSessionsOnShutdown="false"
(B			printToScreen="true"
(B			debug="9"
(B			useDirtyFlag="false">
(B
(B	
(B			className="org.apache.catalina.cluster.mcast.McastService"
(B			mcastAddr="228.0.0.4"
(B			mcastPort="45564"
(B			mcastFrequency="500"
(B			mcastDropTime="3000"/>
(B
(B	
(B			className="org.apache.catalina.cluster.tcp.ReplicationListener"
(B			tcpListenAddress="10.108.128.91"
(B			tcpListenPort="4001"
(B			tcpSelectorTimeout="100"
(B			tcpThreadCount="6"/>
(B
(B	
(B			className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
(B			replicationMode="synchronous"/>
(B
(B	
(B			filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;*\.html;.*\.txt;"/>
(B
(B
(Bserver.xml of SERVER 2
(B
(B			managerClassName="org.apache.catalina.cluster.session.DeltaManager"
(B			expireSessionsOnShutdown="false"
(B			printToScreen="true"
(B			debug="9"
(B			useDirtyFlag="false">
(B
(B	
(B			className="org.apache.catalina.cluster.mcast.McastService"
(B			mcastAddr="228.0.0.4"
(B			mcastPort="45564"
(B			mcastFrequency="500"
(B			mcastDropTime="3000"/>
(B
(B	
(B			className="org.apache.catalina.cluster.tcp.ReplicationListener"
(B			tcpListenAddress="10.108.128.93"
(B			tcpListenPort="4001"
(B			tcpSelectorTimeout="100"
(B			tcpThreadCount="6"/>
(B
(B	
(B			className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
(B			replicationMode="synchronous"/>
(B
(B	
(B			filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;*\.html;.*\.txt;"/>
(B
(B
(B
(BThe following is added on web.xml of application.
(B
(B
(B
(BSERVER1:10.108.128.91
(B
(BSERVER2:10.108.128.93
(B		
(BOS:both RedHat LinuxA3.0
(B
(B
(B
(BThere're some packet to confirm each other on "tcpdump".
(BSeesion Replication can be confirmed on Session Examplle .
(B
(BAbove all,are there any to notice insufficient settings or the settings?
(B
(B_
$B3Z$7$$3(J8;z$G%3%3%mEA$o$k%a%C%;%s%8%c!<(B http://messenger.msn.co.jp/ 
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

What version of apache does Tomcat 3.3.1 support

2004-08-24 Thread $Bc7F#9d(B
Dear all,
(B
(Bcould you please tell me what versions of Apache (both major and minor)
(Bdoes Tomcat 3.3.1 officially support?
(B
(BWhat about 4.1.12?
(B
(BAlso, what JDK version would you suggest using with both Tomcat 3.3.1
(Band 4.1.12 respectively?
(B
(BThanks in advance!
(B
(BTakeshi
(B
(B
(B---SIGNATURE-
(B  NTT$B%3%`%&%'%"3t<02q

Help with JVMStat or JProbe

2004-08-16 Thread B Poisson
I'm running Tomcat 5.0.27 as a service on Windows 2000 Server sp4.  Neither 
JVMStat
nor JProbe can analyze the JVM for Tomcat5, neither of them recognize the 
Tomcat5
process as java-related.  If I run from catalina.bat, I can use either one 
just fine, but I
suspect I am having problems with the service so I need to analyze that 
specifically.  Does
anyone know how I can do this?

Thanks!
-b
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


jprobe and procrun

2004-08-11 Thread B Poisson
Has anyone out there been able to use a tool like JProbe JProfiler with 
procrun
(Tomcat 5.0.27) as a services on Windows?  I can't seem to find any such 
tools
out there.  JProfiler seems to use Windows environment variables and 
specific
jar files.  Sun's jvmstat2.0 also will not work with the service.

The reason I want to specifically look at the Windows service for Tomcat5 is 
that
I believe the service to not be setting JVM parameters correctly.

Any insight would be appreciated.
Thanks,
-b
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Tomcat 5.0.27 Win2k sp4, service.bat JVM Options

2004-08-09 Thread B Poisson
Hello,
I am running Tomcat 5.0.27 on a Windows 2000 sp4 machine as a service.
It appears as though the JVM settings that I am trying to use are not being
recognized by the system, variables such as -Xms512m or -Xmx512m.
Here is what I have tried:
1. Configure Tomcat program that installs with Tomcat5.  In 5.0.27 there are
boxes for initial heap, etc. under the Java or JVM tab where I tried setting 
values.
I also tried adding them to the Options box.  Restarting the service shows 
they are
not detected.
2. Editing the registry.  I have seen many ways to do this.  I've tried the 
set where
I add "JVM Option Count"=x and "JVM Option Number 1", etc.  I have also 
tried
adding the settings to the registry as "JAVA_OPTS", "JAVAOPTS", and 
"JAVAOPTIONS"
to no avail.  And where in the registry do I put it really?  Does it go 
under Current Control
Set->Services->Tomcat5 or does it go under Software->Apache blah 
blah->procrun or
whatever it is.
3. Using service.bat.  This is just confusing.  There's no documentation 
that's worthwhile
about procrun.  The changelog makes it look like adding #'s instead of 
spaces was fixed
in 5.0.23, but I don't know if that is the case or not.

Anyway, can anyone post me an example of how to modify service.bat to 
include -Xms, -Xms,
and -Xss?  Maybe I'm putting it in the wrong place?

I know if I have an environment variable called JAVA_OPTS and I run from 
catalina.bat that my
JVM settings definitely show up correctly.  Why is it so hard for them to 
show up as a service?
Using Windows sucks, but I don't have a choice.  Any help will be greatly 
appreciated.

Thanks,
b
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


running Tomcat 5.0.25 as an NT service

2004-07-27 Thread Derek B. Greer




I just spent several hours getting Tomcat 5.0.25 to run as a service on
Windows XP and didn't find a lot of useful information anywhere, so I
thought I'd post my findings.  The service.bat which comes with the
Tomcat 5.0.25 distribution doesn't seem to pass all the proper
parameters to the version of procrun represented by the tomcat5.exe. 
The proper parameters also don't seem to be documented anywhere.  Using
the tomcat5w GUI tool, I was able to discover what the missing
parameters were.  I have attached my modified service.bat if anyone
finds it useful.  Here are the changes I made (thanks to Jacob Kjome
for pointing out the missing tools.jar):


  added %JAVA_HOME%\lib\tools.jar to the PR_CLASSPATH
  added the parameters --StartMethod main  --StopMethod main to the
call to tomcat5.exe
  added the parameter --Startup Automatic to set the startup type



Derek Greer



@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---
rem NT Service Install/Uninstall script
rem
rem Options
rem installInstall the service using Tomcat5 as service name.
remService is installed using default settings.
rem remove Remove the service from the System.
rem
rem name(optional) If the second argument is present it is considered
remto be new service name  
 
rem
rem $Id: service.bat,v 1.5 2004/04/08 16:49:37 mturk Exp $
rem ---

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%cd%
if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome
rem CD to the upper dir
cd ..
set CATALINA_HOME=%cd%
:gotHome
if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome
echo The tomcat.exe was not found...
echo The CATALINA_HOME environment variable is not defined correctly.
echo This environment variable is needed to run this program
goto end
:okHome
if not "%CATALINA_BASE%" == "" goto gotBase
set CATALINA_BASE=%CATALINA_HOME%
:gotBase
 
set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe

rem Set default Service name
set SERVICE_NAME=Tomcat5

if "%1" == "" goto displayUsage
if "%2" == "" goto setServiceName
set SERVICE_NAME=%2
:setServiceName
if %1 == install goto doInstall
if %1 == remove goto doRemove
echo Unknown parameter "%1"
:displayUsage
echo 
echo Usage: service.bat install/remove [service_name]
goto end

:doRemove
rem Remove the service
"%EXECUTABLE%" //DS//%SERVICE_NAME%
echo The service '%SERVICE_NAME%' has been removed
goto end

:doInstall
rem Install the service
rem Use the environment variables as an exaple
rem Each command line option is prefixed with PR_

set PR_DISPLAYNAME=Apache Tomcat
set PR_DESCRIPTION=Apache Tomcat Server - http://jakarta.apache.org/tomcat
set PR_INSTALL=%EXECUTABLE%
set PR_LOGPATH=%CATALINA_HOME%\logs
set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar
set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log
set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log

"%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto --StartClass 
"org.apache.catalina.startup.Bootstrap" --StartMethod main --StartParams "start" 
--StopClass org.apache.catalina.startup.Bootstrap --StopMethod main --StopParams stop 
--Startup Automatic

rem Clear the environment variables. They are not needed any more.
set PR_DISPLAYNAME=
set PR_DESCRIPTION=
set PR_INSTALL=
set PR_LOGPATH=
set PR_CLASSPATH=
set PR_STDOUTPUT=
set PR_STDERROR=

rem Set extra parameters
"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions 
"-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed;"
 --StartMode jvm --StopMode jvm
rem "%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions 
"-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp"
 --StartMode jvm --StopMode jvm


rem More extra parameters
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions 
"-Djava.io.tmpdir=%CATALINA_BASE%\temp"
echo The service '%SERVICE_NAME%' has been installed

:end
echo changing to %CURRENT_DIR%
cd %CURRENT_DIR%

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

Session Sharingand Caching Problem

2004-07-16 Thread Selva Kumar B.
Hi ,
  We are having the following architecture being used in our web based
application
HTML/JSP  ---> Main Servlet > processor class > Session Bean >
DAO layer > Oracle 8i Database.

Application Server : Oracle 9i Application Server.

OC4J being the container.
We start the server using java -jar orion.jar

The issue is :-
When there is load one user is able to see the data of other users, we also
get 500 internal server error
when two or more people hit the same page at the same time. We have used all
cache clear snippets coding but still
we are having some issues in it. what do we do ? We are storing some data in
the session but each user would have 
his own session id assigned to him right. Then in that case where and which
point is it getting shared ?
regards Selva
*
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.
*

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



Problems migrating from 4.1.x to 5.0.25

2004-07-08 Thread Dhruva B. Reddy
I have deployed one of our (Struts 1.1 based) applications on 5.0.25
(it currently runs on 4.1.27).  When I try to go to the default page, I
get the stack trace below (displayed in the browser).  Can anyone tell
me if there is anything obvious that I may be missing or should look
for?

Thanks,
Dhruva

java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V

org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)

org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)

org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:179)

org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:117)

org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:335)

org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)

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:853)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

com.resortquest.mvc.web.filter.ExtensionRequestFilter.doFilter(ExtensionRequestFilter.java:275)

com.resortquest.mvc.web.filter.ActionFilter.doFilter(ActionFilter.java:61)




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



JNDI Resource Lifecycle Question

2004-06-28 Thread Dhruva B. Reddy
I'm trying to tune the connection pool on our installation of Tomcat
4.1.27, and just realized that I'm not sure what happens when you get
the DataSource.

When is the connection pool actually created?

* When Tomcat starts?
* When the web application is started?
* When you request the DataSource from the JNDI service?

If it's created when I request it from the JNDI service, does that mean
that I should only request it when the application starts?

Thanks,
Dhruva



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



how to access webpages under apache/tomcat without specifying port 8080

2004-05-12 Thread b
I have a webserver with Apache 2.043 and Tomcat 4.1.18 and mod_jk connector. 
 
I can access my webpages locally without having to specify tomcat's port 8080.
 
eg: http://localhost/webapps
 
However, I have still have to specify the port number if accessing from other computers
 
eg: http://webserver:8080/webapps
 
My server is on Win2K Server SP4 with MySQL as the database. 
 
Any idea on how I can access the webpages from anywhere without having to specify the 
port number?
 
Regards,
shabb


-
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 

CN= Babür SOMER/ ist zur Zeit nicht erreichbar

2004-05-10 Thread b . somer




I will be out of the office starting  07.05.2004 and will not return until
11.05.2004.

Bitte wenden Sie sich in dringenden Fällen mit Ihrem Anliegen an
[EMAIL PROTECTED]


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



Re: pageEncoing and contentType

2004-04-19 Thread $BC]7A(B $B@?;J(B
On 2004.4.19, at 10:02 PM, Veniamin Fichin wrote:

seiji takegata wrote:

   Try this:

<%@ page contentType="application/pdf; charset=ISO-8859-1"
 pageEncoding="Shift_JIS" %>
I tried. This time jasper generates:
response.setContentType("application/pdf; charset=ISO-8859-1");
   OK, and with that you still can't get PDF right?

Yes, I can get right  PDF by  specifying just pageEncoding. But IE 
displays download
 dialog (with some warning message) that I don't want to see.

   Maybe you should query tomcat-dev list about how (and if you really 
need) to override Jasper's behaviour on inserting "pageEncoding" value 
into Content-Type header. All I found is:

org.apache.jasper.compiler.Validator
public static void validate(Compiler, Node.Nodes)
throws JasperException;
   In that method there is some logic that determines "...; 
charset=..." value in case this substring is absent in "contentType" 
page directive.

I see. Your suggestion helps me a lot, thanks.
Seiji
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Relative directory addressing to parent directory

2004-04-18 Thread John B. Moore
Tom,

  Thanks, but...  I think you missed what I was after..  I wanted to 
be able to "back reference" to the parent directory of the web 
application in a link to an image..

Example: (trivial example)

   Normally you would use a relative path to an image directory "IN" 
the web application like so..



  ... but if you wanted to use an image that was NOT in your web app.. 
(I have my reason, but I won't bore you with the details)..  Normally in 
just plain HTML served by Apache I could..



   to refer "back" to the parent directory which contains it's own 
"images" directory and refer to that directory via "../" syntax.

It seems that Tomcat does not support that kind of "relative" 
addressing to a parent directory..

Do you know a way around this...

John...

Tom K wrote:

John, relative paths are always a headache (until you do some
book-learning :-)). What I do is, right after my  tag I put in a
line like this:


What the line above does is gives you the full path as your base
reference.
You can put 'kind-of' the same line in your regular html pages by using
just the relative paths. Some may argue with the approach I use; if you
include footers` and headers though and use the line right after your
 tag your relative path will always be the same.
Tom Kochanowicz



-Original Message-
From: John B. Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 6:27 PM
To: Tomcat Users List
Subject: Relative directory addressing to parent directory

Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that "any" 
of the web applications in that directory can access in their pages. 

 In static HTML (under Apache) I would use..

  ../images/myimage.jpg

  and it would work just fine.. (the "../" would cause it to "backup" 
one folder to the parent and access the images directory directly under 
"webapps")

  I can seem to get this to work within a JSP page in Tomcat (4.1.29)

 As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

  Suggestions as to what I am missing...???

   John..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003


-
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: Virtual Hosting Revisited - Apache serving static pages..???

2004-04-15 Thread John B. Moore
John,

   Thanks much..

Reading this I take it that by setting the DocumentRoot to the  
Apache/htdocs directory (or where that might be..)  ..that is 
sufficient...   Hmm... way, way to simple... 

Now, is there a way to set this up in the server.xml so that 
autoconfig generates that setting...??  Or am I forced to hand set this 
for each virtual host.. (I have a LOT of these to manage)...

   John..

John Sidney-Woollett wrote:

John B. Moore said:
 

Thanks for responding.. And yes, I keep hearing that one can do this

  ... But...  I'm slow I guess, because that still does not give me
a hint as to "HOW" that is to be configured.. Do you have some virtual
host directives that do this that I can use as examples..
   Maybe my problem is that I  am thinking I could have the static
pages located under Apache/htdocs and the jsp pages under
Tomcat/webapps..   I can't find and example that combines the standard
Apache virtual host directives with what is needed to also direct the
jsp to Tomcat..  I can easily to each separately, but have yet to find a
way to do "both"
   

Here you go...

# External IP Address: xxx.xxx.xxx.xxx

   ServerName test.mydomain.com
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/www/test.mydomain.com
   ErrorLog /var/log/httpd/test.mydomain.com/error_log
   CustomLog /var/log/httpd/test.mydomain.com/access_log combined
   JkMount /someurl/MySpecialServlet worker1
   JkMount /admin/* worker1
   JkMount /manager/* worker1
   JkMount /*.jsp worker1

Create as many JKMount entries as you need to map all your servlets and
JSPs. Whatever doesn't match any of the JkMount entries will be handled by
Apache from the document root (/var/www/test.mydomain.com in this
example).
You can even route the different servlet/jsp requests to different tomcat
workers (if that is needed or works for you).
Hope that helps.

John Sidney-Woollett

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



Re: Relative directory addressing to parent directory

2004-04-14 Thread John B. Moore
Yeah, that is what seemed to be the case..  I was hoping I was wrong and 
somehow was not configuring something right.. Hence the posting here...

  

Julio César Aguilar wrote:

In my knowledge:

For tomcat to be able to serve the images, that images directory hast 
to live inside a web application (or be a web application by itself).

If you choose to do the later, then you could use a path like 
"/images/myimage.jpg" to display those images.

---
Julio César Aguilar Cabrera
[EMAIL PROTECTED]
Proyecto SIGC3, LANIA
-
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: Virtual Hosting Revisited - Apache serving static pages..???

2004-04-14 Thread John B. Moore
Thank you for your reply..,

   I just found some other notes on using "Alias" for this task..  I'll 
followup on this suggestion..Thanks

   John..

Robert Hall wrote:

We use apache to serve up static content by including the following in 
httpd.conf via an "Include directive":


   #
   # Note that if you include a trailing / on fakename then the server 
will
   # require it to be present in the URL.  So "/icons" isn't aliased 
in this
   # example, only "/icons/".  If the fakename is slash-terminated, 
then the
   # realname must also be slash terminated, and if the fakename omits 
the
   # trailing slash, the realname must also omit it.
   #
   Alias /app-name/ "/usr/local/htdocs/app-name/"

   
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
   

And workers2.properties (similar to mod_jk.conf ?) contains URI 
entries so tell
apache what to request from Tomcat, the static content is served up by 
apache
via the Alias above.

HTH,
Robert
John B. Moore wrote:

Posted this previously and still need some pointers...

Maybe this is not possible, but it seems to be "suggested" in a lot 
of the documentation I have read. Unfortunately those docs "assume" 
something that I am not privy to..  (a brain.. yeah well...) and 
do not outline specific configurations for this setup. I read a lot 
of "and you can have Apache serve the static pages"..etc.. but I have 
yet to find and example of how this would be configured.
  I would prefer setting this up via the server.xml and the web.xml 
files and have those autoconfigure to the /auto/mod_jk.conf file, but 
for now I need some specifics on how to tell Apache to serve the 
static pages. (I have no problems with serving the jsp and servlets..)

 Thanks...



-
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: Virtual Hosting Revisited - Apache serving static pages..???

2004-04-14 Thread John B. Moore
Thanks for responding.. And yes, I keep hearing that one can do this

  ... But...  I'm slow I guess, because that still does not give me 
a hint as to "HOW" that is to be configured.. Do you have some virtual 
host directives that do this that I can use as examples..

   Maybe my problem is that I  am thinking I could have the static 
pages located under Apache/htdocs and the jsp pages under 
Tomcat/webapps..   I can't find and example that combines the standard 
Apache virtual host directives with what is needed to also direct the 
jsp to Tomcat..  I can easily to each separately, but have yet to find a 
way to do "both"

   John..

Paul Gregoire wrote:

I do it by mapping all my servlet as .jspx and regular jsp files as 
.jsp. Apache serves everything else.

John B. Moore wrote:

Posted this previously and still need some pointers...

Maybe this is not possible, but it seems to be "suggested" in a lot 
of the documentation I have read. Unfortunately those docs "assume" 
something that I am not privy to..  (a brain.. yeah well...) and 
do not outline specific configurations for this setup. I read a lot 
of "and you can have Apache serve the static pages"..etc.. but I have 
yet to find and example of how this would be configured.
  I would prefer setting this up via the server.xml and the web.xml 
files and have those autoconfigure to the /auto/mod_jk.conf file, but 
for now I need some specifics on how to tell Apache to serve the 
static pages. (I have no problems with serving the jsp and servlets..)

 Thanks...

=== Original post ==

 Can't seem to get the dots connect between an Apache defined Virtual 
host and one defined in server.xml.

The desired effect is that I want static html pages loaded from 
Apache and jsp/servlet loaded by Tomcat from the same "virtual host" 
definition.  Read a lot of instructions/books..etc  and have in the 
past had no problems with using the default "localhost" (out of the 
box) setup now I need this more complex arrangement and I'm 
missing a piece.. can't figure out what it is...  Following are the 
pieces I thought were necessary...

On Apache (2.0.48) I have name based virtual hosting..

Example (snipped version)

   
  ServerName dev1.adomain.com
  ...other stuff.
   
On Tomcat (4.1.29) (abreviated) the Server.xml I have


   
... other stuff

This generates the correct mod_jk.conf which is included in the 
httpd.conf file at the end..

 I see my web application defined there and all looks "correct" with 
the entry...


 ServerName dev1.adomain.com
 ...etc...



 I have a JkMount as follows (example)

 JkMount /MyWebAp/servletname ajp13
 JkMount /MyWebAp/*.jsp ajp13
(started and restarted everything several times..)

Unfortunately the following Url does not work

   http://dev1.adomain.com/MyWebAp/servletname

nor

  http://dev1.adomain.com/MyWebAp/index.jsp

... I get an Apache "Not Found"..etc...  Obviously I've missed a dot 
so it is not connecting..  Basically I suspect that the Virtualhost 
def in httpd.conf is conflicting with the one supplied in 
mod_jk.conf..  But so far I have not been able to resolve this..

(Notes.. assume the example domain "dev1.adomain.com" points to 
207.137.13.166 is registered with a DNS service. I have no problems 
seeing static pages at that domain in the htdocs/dev1 directory)

Clues and suggestions..

 John..



Incoming mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 262.8.1 - Release Date: 4/13/2004
 



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


Virtual Hosting Revisited - Apache serving static pages..???

2004-04-14 Thread John B. Moore
Posted this previously and still need some pointers...

Maybe this is not possible, but it seems to be "suggested" in a lot of 
the documentation I have read. Unfortunately those docs "assume" 
something that I am not privy to..  (a brain.. yeah well...) and do 
not outline specific configurations for this setup. I read a lot of "and 
you can have Apache serve the static pages"..etc.. but I have yet to 
find and example of how this would be configured. 

  I would prefer setting this up via the server.xml and the web.xml 
files and have those autoconfigure to the /auto/mod_jk.conf file, but 
for now I need some specifics on how to tell Apache to serve the static 
pages. (I have no problems with serving the jsp and servlets..)

 Thanks...

=== Original post ==

 Can't seem to get the dots connect between an Apache defined Virtual 
host and one defined in server.xml.

The desired effect is that I want static html pages loaded from Apache 
and jsp/servlet loaded by Tomcat from the same "virtual host" 
definition.  Read a lot of instructions/books..etc  and have in the past 
had no problems with using the default "localhost" (out of the box) 
setup now I need this more complex arrangement and I'm missing a 
piece.. can't figure out what it is...  Following are the pieces I 
thought were necessary...

On Apache (2.0.48) I have name based virtual hosting..

Example (snipped version)

   
  ServerName dev1.adomain.com
  ...other stuff.
   
On Tomcat (4.1.29) (abreviated) the Server.xml I have


   
... other stuff

This generates the correct mod_jk.conf which is included in the 
httpd.conf file at the end..

 I see my web application defined there and all looks "correct" with 
the entry...


 ServerName dev1.adomain.com
 ...etc...



 I have a JkMount as follows (example)

 JkMount /MyWebAp/servletname ajp13
 JkMount /MyWebAp/*.jsp ajp13
(started and restarted everything several times..)

Unfortunately the following Url does not work

   http://dev1.adomain.com/MyWebAp/servletname

nor

  http://dev1.adomain.com/MyWebAp/index.jsp

... I get an Apache "Not Found"..etc...  Obviously I've missed a dot so 
it is not connecting..  Basically I suspect that the Virtualhost def in 
httpd.conf is conflicting with the one supplied in mod_jk.conf..  But so 
far I have not been able to resolve this..

(Notes.. assume the example domain "dev1.adomain.com" points to 
207.137.13.166 is registered with a DNS service. I have no problems 
seeing static pages at that domain in the htdocs/dev1 directory)

Clues and suggestions..

 John.. 


Relative directory addressing to parent directory

2004-04-14 Thread John B. Moore
Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that "any" 
of the web applications in that directory can access in their pages. 

 In static HTML (under Apache) I would use..

  ../images/myimage.jpg

  and it would work just fine.. (the "../" would cause it to "backup" 
one folder to the parent and access the images directory directly under 
"webapps")

  I can seem to get this to work within a JSP page in Tomcat (4.1.29)

 As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

  Suggestions as to what I am missing...???

   John..

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


Re: Virtual Host - combo with Apache Virtual host

2004-04-09 Thread John B. Moore
Followup

I commented out the original Apache  settting and 
that finally allowed my Tomcat setting two work..  That still leaves me 
trying to get the static pages to load from the Apache "contexts"...???



John B. Moore wrote:

Greetings,

  Can't seem to get the dots connect between an Apache defined Virtual 
host and one defined in server.xml.

The desired effect is that I want static html pages loaded from Apache 
and jsp/servlet loaded by Tomcat from the same "virtual host" 
definition.  Read a lot of instructions/books..etc  and have in the 
past had no problems with using the default "localhost" (out of the 
box) setup now I need this more complex arrangement and I'm 
missing a piece.. can't figure out what it is...  Following are the 
pieces I thought were necessary...

On Apache (2.0.48) I have name based virtual hosting..

Example (snipped version)


   ServerName dev1.adomain.com
   ...other stuff.

On Tomcat (4.1.29) (abreviated) the Server.xml I have



 ... other stuff

This generates the correct mod_jk.conf which is included in the 
httpd.conf file at the end..

  I see my web application defined there and all looks "correct" with 
the entry...


  ServerName dev1.adomain.com
  ...etc...



  I have a JkMount as follows (example)

  JkMount /MyWebAp/servletname ajp13
  JkMount /MyWebAp/*.jsp ajp13
(started and restarted everything several times..)

Unfortunately the following Url does not work

http://dev1.adomain.com/MyWebAp/servletname

nor

   http://dev1.adomain.com/MyWebAp/index.jsp

... I get an Apache "Not Found"..etc...  Obviously I've missed a dot 
so it is not connecting..  Basically I suspect that the Virtualhost 
def in httpd.conf is conflicting with the one supplied in 
mod_jk.conf..  But so far I have not been able to resolve this..

(Notes.. assume the example domain "dev1.adomain.com" points to 
207.137.13.166 is registered with a DNS service. I have no problems 
seeing static pages at that domain in the htdocs/dev1 directory)

 Clues and suggestions..

  John.. 
-
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]


Virtual Host - combo with Apache Virtual host

2004-04-09 Thread John B. Moore
Greetings,

  Can't seem to get the dots connect between an Apache defined Virtual 
host and one defined in server.xml.

The desired effect is that I want static html pages loaded from Apache 
and jsp/servlet loaded by Tomcat from the same "virtual host" 
definition.  Read a lot of instructions/books..etc  and have in the past 
had no problems with using the default "localhost" (out of the box) 
setup now I need this more complex arrangement and I'm missing a 
piece.. can't figure out what it is...  Following are the pieces I 
thought were necessary...

On Apache (2.0.48) I have name based virtual hosting..

Example (snipped version)


   ServerName dev1.adomain.com
   ...other stuff.

On Tomcat (4.1.29) (abreviated) the Server.xml I have



 ... other stuff

This generates the correct mod_jk.conf which is included in the 
httpd.conf file at the end..

  I see my web application defined there and all looks "correct" with 
the entry...


  ServerName dev1.adomain.com
  ...etc...



  I have a JkMount as follows (example)

  JkMount /MyWebAp/servletname ajp13
  JkMount /MyWebAp/*.jsp ajp13
(started and restarted everything several times..)

Unfortunately the following Url does not work

http://dev1.adomain.com/MyWebAp/servletname

nor

   http://dev1.adomain.com/MyWebAp/index.jsp

... I get an Apache "Not Found"..etc...  Obviously I've missed a dot so 
it is not connecting..  Basically I suspect that the Virtualhost def in 
httpd.conf is conflicting with the one supplied in mod_jk.conf..  But so 
far I have not been able to resolve this..

(Notes.. assume the example domain "dev1.adomain.com" points to 
207.137.13.166 is registered with a DNS service. I have no problems 
seeing static pages at that domain in the htdocs/dev1 directory)

 Clues and suggestions..

  John..  

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


UTF-8 encoding

2004-04-05 Thread b . somer
Hi!

I have a web-application which on the serverside needs UTF-8 encoding. I 
tried to install and run apache/tomcat on a Windows-XP environment, and 
the server says, the encoding is not UTF-8. same applicationwith the same 
apache/tomcat version runs correctly on a windows 2000 environment. Is 
this a XP specific problem and is there any possibility to force tomcat to 
send data in UTF-8 encoding.



Best regards
 bab








 

another NoClassDefFoundError question

2004-04-04 Thread b

Hi.

I need help urgently with this NoClassDefFoundError issue. I was asked to

port over my application which currently is on

Apache 1.3.23 on Madrake 9.0, Tomcat 3.3.1, mod_jk 1.1.0, mySQL 3.23.51

to a Windows-based system.

Currently I am using

Win2000 Server, J2Se 1.4.1, Apache 2.0.43, Apache Tomcat 4.1, mod_jk 2.0.43, mySQL 
4.0.18

Any clue as to why I still get the NoClassDefFoundError?

Thank you

b


-
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today

Re: OutOfMemoryError

2004-03-15 Thread Altug B. Altintas
Hi,

Use jvmstat (google it) tool to analyize it. Maybe your application memory
needs can break down Tomcat

Regards.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 15, 2004 8:18 AM
Subject: OutOfMemoryError


>
>
>
>
> Hi,
> I am getting the following error message when I have accessed Tomcat for
> more than 2 days without shutting it down.
>
> I am using Tomcat 5.0.19
> 256 MB Ram
> Pentium III
> Win 2k Pro
>
> Mar 13, 2004 3:57:54 PM
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
> processChildren
> SEVERE: Exception invoking periodic operation:
> java.lang.OutOfMemoryError
>
> Any help on how to solve the problem would be great. Do I need to create
> multiple instances of the server for load balancing?
>
> Thank you,
> Best Regards,
> Uma
>
>
> -
> 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]



tomcat_install is not set

2004-02-17 Thread Altug B. Altintas
What is the meaning of tomcat_install is not set properly  ??

Regards...


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



Re: Tomcat 5 Autoconfig

2004-02-14 Thread John B. Moore
Thanks, I'll check that out...

John..

Bill Barker wrote:

"John B. Moore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

Ah, further checking on the Sun website indicates that it is:

Apache Tomcat Version 5.0.18

 So... why did it not work...
   

I don't know.  Maybe Sun packages Tomcat differently than Apache does.  The
class should be in server/lib/jkconfig.jar.
 

Catalina.start: java.lang.ClassNotFoundException:
org.apache.jk.config.ApacheConfig
 java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig
  

Bill Barker wrote:

   

In 5.0.18 it was added back as org.apache.jk.config.ApacheConfig.

"John B. Moore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

Greetings..

  Can't seem to find the documenation for Autoconfig for Tomcat 5 to
Apache..
 In Tomcat4 I used..


..tried...

 
 no joy... throws a ClassDefNotFound..  searched the docs but can seem
to find the right rock to look under..
 Could someone give me a kick in the right direction...

  Thanks..

   John..

   



-
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: Tomcat 5 Autoconfig

2004-02-11 Thread John B. Moore
Ah, further checking on the Sun website indicates that it is:

Apache Tomcat Version 5.0.18

 So... why did it not work...

Catalina.start: java.lang.ClassNotFoundException: 
org.apache.jk.config.ApacheConfig
 java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig

  

Bill Barker wrote:

In 5.0.18 it was added back as org.apache.jk.config.ApacheConfig.

"John B. Moore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

Greetings..

   Can't seem to find the documenation for Autoconfig for Tomcat 5 to
Apache..
  In Tomcat4 I used..


..tried...

  
  no joy... throws a ClassDefNotFound..  searched the docs but can seem
to find the right rock to look under..
  Could someone give me a kick in the right direction...

   Thanks..

John..
   





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



Re: Tomcat 5 Autoconfig

2004-02-11 Thread John B. Moore
Bill,

  Thanks, but that did not work.. I suspect that this is an earlier 
v5..  It is the version that was included in the "Java Web Services 
Developer Pack v1.3"  which is listed as:

 Apache Tomcat v5.0 EA development container

   Any clues...??

   John...

Bill Barker wrote:

In 5.0.18 it was added back as org.apache.jk.config.ApacheConfig.

"John B. Moore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

Greetings..

   Can't seem to find the documenation for Autoconfig for Tomcat 5 to
Apache..
  In Tomcat4 I used..


..tried...

  
  no joy... throws a ClassDefNotFound..  searched the docs but can seem
to find the right rock to look under..
  Could someone give me a kick in the right direction...

   Thanks..

John..
   





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



Tomcat 5 Autoconfig

2004-02-11 Thread John B. Moore
Greetings..

   Can't seem to find the documenation for Autoconfig for Tomcat 5 to 
Apache..

  In Tomcat4 I used..


..tried...

  
  no joy... throws a ClassDefNotFound..  searched the docs but can seem 
to find the right rock to look under..

  Could someone give me a kick in the right direction...

   Thanks..

John..

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


Re: System.out.println, Where art thou?

2004-02-09 Thread John B. Moore
Sometimes it is threaputic to face one's stupidity...

Anyway, it was pilot error...  I use JBuilder (which has an embedded 
Tomcat) for my development and in versions prior to the latest (JB9 and 
before) the url pattern was

 http://localhost:8080/servercontext/servletname

..in JB10 this changed to ...

http://localhost:8080/servletname

.. I had gotten use to this "pattern" and my servlet context and name 
were very nearly identical.. so I had entered what amounted to

 http://serverhere/servercontext

 ..instead of getting a "resource not found" or somesuch...  it loaded 
because Tomcat loaded

http://serverhere/servercontext/index.jsp

...which in my application was NEVER loaded by itself and only should be 
loaded by the controller servlet after extensive setup and 
configuration..  The error was just enough "legitimate" looking that it 
did not flag what was really happening.. and I never clued in on  what 
was really happening until I had gutted my controller to load a simple 
"html" form and instead the index.jsp still loaded...



   John..

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


Re: System.out.println, Where art thou?

2004-02-07 Thread John B. Moore
Update:

Well, when things get wierd it is best to go back to basics

 I created a very simple servlet with System.out.println statements 
and deployed it.. That works fine and the output shows up in the 
stdout.log.  That means there is something in the servlet code that is 
mucking things up...

For me this is good news.. at least I have a starting point...  to 
find with it is that is blocking the output...

John...



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


Re: System.out.println, Where art thou?

2004-02-07 Thread John B. Moore
Correction it is 4.1.28 not 4.1.18... sorry..

John B. Moore wrote:

Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the
ability to see stdout statments in the log files.. In addition my
Log4j loging output failing to appear. (another issue, but maybe
related..)
what is most puzzling at this point is that basic

System.out.printlin("some text here...");

..does not appear ANYWHERE!!! An obviously I need to resolve this
issue first.. (as it may provide some hints as to what is happening to
the configuration of Log4j..since I use basic out.println to debug the
various configuration settings. )
I'm assuming/hopping I need to turn something on... (that was
formerly default on in the previous version I was using)
I added a SystemOutLogger to both the Host context and the specific
webapp context.. nada.. (all that did was log stuff that was already
showing up)..
what is interesting is that when I use Tomcat "IN" JBuilder (version
4.1.27) all the logging shows up and all the expected log files show
up.. Looking at the server.xml that is generated by JBuilder I can
not see that it is setting anything "special"... obviously something
is different.
So.. anyone have any ideas as to how to surface the output of the
basic "System.out.println"...???
Any clues as to what I can try next is appreciated..

John..



-
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: System.out.println, Where art thou?

2004-02-07 Thread John B. Moore
I agree, it "should be.."  it is not.. I have not change ANY default 
settings that came "out of the box"..

This is why I'm so stumped..  I have tested this on two installs.. (one 
on NT4 and one on WinXP) both are failing...  It works fine when run 
within JBuilder using 4.1.27..

  ???

   John...

Jerry Ford wrote:

System.out.println text should be going to the file catalina.out in 
tomcat's logs directory, if you haven't changed any of the default 
logging configurations.  At least, that's where they go in my 4.1.27 
setup.

Jerry

John B. Moore wrote:

Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the
ability to see stdout statments in the log files.. In addition my
Log4j loging output failing to appear. (another issue, but maybe
related..)
what is most puzzling at this point is that basic

System.out.printlin("some text here...");

..does not appear ANYWHERE!!! An obviously I need to resolve this
issue first.. (as it may provide some hints as to what is happening to
the configuration of Log4j..since I use basic out.println to debug the
various configuration settings. )
I'm assuming/hopping I need to turn something on... (that was
formerly default on in the previous version I was using)
I added a SystemOutLogger to both the Host context and the specific
webapp context.. nada.. (all that did was log stuff that was already
showing up)..
what is interesting is that when I use Tomcat "IN" JBuilder (version
4.1.27) all the logging shows up and all the expected log files show
up.. Looking at the server.xml that is generated by JBuilder I can
not see that it is setting anything "special"... obviously something
is different.
So.. anyone have any ideas as to how to surface the output of the
basic "System.out.println"...???
Any clues as to what I can try next is appreciated..

John..



-
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]



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


System.out.println, Where art thou?

2004-02-06 Thread John B. Moore
Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the
ability to see stdout statments in the log files.. In addition my
Log4j loging output failing to appear. (another issue, but maybe
related..)
what is most puzzling at this point is that basic

System.out.printlin("some text here...");

..does not appear ANYWHERE!!! An obviously I need to resolve this
issue first.. (as it may provide some hints as to what is happening to
the configuration of Log4j..since I use basic out.println to debug the
various configuration settings. )
I'm assuming/hopping I need to turn something on... (that was
formerly default on in the previous version I was using)
I added a SystemOutLogger to both the Host context and the specific
webapp context.. nada.. (all that did was log stuff that was already
showing up)..
what is interesting is that when I use Tomcat "IN" JBuilder (version
4.1.27) all the logging shows up and all the expected log files show
up.. Looking at the server.xml that is generated by JBuilder I can
not see that it is setting anything "special"... obviously something
is different.
So.. anyone have any ideas as to how to surface the output of the
basic "System.out.println"...???
Any clues as to what I can try next is appreciated..

John..



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


RE: verbose gc

2004-02-01 Thread Dhruva B. Reddy
Check out Jeff Tulley's responses to my post "OutOfMemoryError with
Seemingly Plenty of Memory".  You may also want to check out Sun's
forums on the Java Virtual Machine.  You will find a host of
information on JVM tuning.

As I said in my post, we would get the OutOfMemoryError about every 24
hours.  I tried setting MaxPermSize to 256MB (haven't been able to
determine the default value for Sun's JVM, but it's 64MB for HP's JVM).
 This sets the size of the permanent generation, into which
longer-lived objects and class definitions are loaded (we have over
3500 classes over multiple web apps).

I wasn't going to say anything to this list without being more certain,
but Tomcat has been running with no problems since Friday afternoon (47
hours as of this writing)--the longest it's lasted all month.

HTH,
Dhruva


--- "Mohammed Javid - CTD, Chennai." <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Thanks for all the help.
> 
> We did loadtesting of our application running on tomcat 4.1.27 with
> jdk1.4
> on solaris, we enabled the GC stack to get details of how GC works,
> we ran
> for 1 users with 5 users logging every 30 secs. We set min and
> max heap
> size as 512mb The test ran perfectly for first 2 hours and total heap
> ocupied was only 10448K out of total of  519168K , later as test case
> progessed for around 10 hours the tomcat stopped responding and it
> has
> thrown OutOfMemoryError , but as can be seen from GC output before
> outofmemory error 
> the total heap occupied was only 30846K, though we have lot of more
> space on
> heap still tomcat crashed and give connectiontimeout for remaining
> pages.
> When we see the size occupied from top command , when tomcat is
> started it
> was 622Mb and at time of crash it was 723MB.
> 
> We are looking for following clarifications
> 1 What could be the reason for tomcat to crash though we have lot of
> heap
> remaining.
> 2 Why the memory occupied as seend from top command increased though
> there
> was lot of space on heap
> 3 We noticed that though heap has space when size seen from top
> command
> reached 720 to 270 mb tomcat crashes.
> 4 How to make tomcat running without crash , certianly heap is not
> problem
> in this case
> 5 Is this a known issue, Any optimization to be done to avoid this
> problem.
> 
> 
> The below is the output of the GC after which we get outofmemory
> error
> 
> [GC 55404.101: [DefNew Desired survivor size 2621440 bytes, new
> threshold 31
> (max 31)
> - age   1: 359488 bytes, 359488 total
> - age   2: 314104 bytes, 673592 total
> : 167034K->657K(169600K), 0.2717012 secs] 197223K->30846K(519168K),
> 0.2745516 secs]
> java.lang.OutOfMemoryError: unable to create new native thread
> at java.lang.Thread.start(Native Method)
> at
>
org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor.j
> ava:1178)
> at
>
org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:12
> 62)
> at
>
org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector.
> java:937)
> at
>
org.apache.catalina.connector.http.HttpConnector.createProcessor(HttpConnect
> or.java:868)
> at
>
org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java:1075
> )
>at java.lang.Thread.run(Thread.java:534)
> 
> 
> thanks and regards,
> Javid
> 
> >  -Original Message-
> > From:   Mohammed Javid - CTD, Chennai.  
> > Sent:   Wednesday, January 14, 2004 10:00 PM
> > To: '[EMAIL PROTECTED]'
> > Subject:RE: verbose gc
> > 
> > we are using tomcat 4.1 withjdk1.3, we have folowing clarifications
> > 
> > 1) [Full GC 34521K->15504K(38328K), 0.5953540 secs]
> > [GC 27533K->16335K(38328K), 0.0396336 secs]
> > 
> > is the statements got in catalina.out by adding -server -verbose:gc
>  in
> > catalina.sh
> > 
> > 2) what does the above statements got in catalina.out means, is
> garbage
> > collection active. 
> > When i execute top command on solaris and see the memory it shows 
> size
> > and resisdent memory , what is the diference between the two.
> > 
> > 3) I see that gc statements are logged to catalina.out but the
> memory
> > usage keeps increasing, does it mean there is problem with
> > garbage collection,
> > 
> > 4) can we get more information like how many obejcts created /
> objects
> > destroyed during a gc run, what options to pass to get that
> information
> > 
> > thanks
> >  -Original Message-
> > From:   Mohammed Javid - CTD, Chennai.  
> > Sent:   Wednesday, January 14, 2004 2:18 PM
> > To: '[EMAIL PROTECTED]'
> > Subject:verbose gc
> > 
> > Hi,
> > 
> >   When we give verbose:gc in cataline.sh during startup of tomcat
> > where does
> > the gc information get logged.
> >   I am not seeing any information in catalina.out.
> > 
> > thanks.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED

Re: request timeout - page cannot be displayed

2004-01-29 Thread Altug B. Altintas
Hi Rob,

Tomcat closes my connection on applications in 60 minutes,  i have measured
it.

I downloaded tomcat sources and i found that WebdavServlet.java file has a
field

  /**
 * Default lock timeout value.
 */
private static final int DEFAULT_TIMEOUT = 3600;

i think this value cannot be changed from outside (from conf files ... )

Any idea ? Build it again ?

Regards
Altug.




- Original Message - 
From: "Rob Harrington" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 29, 2004 3:51 PM
Subject: Re: request timeout - page cannot be displayed


> I may have a similar problem.  See my message from
> yesterday:
> "connectionTimeout and disableUploadTimeout"
>
> Assuming you've got something like this in web.xml:
>
>   
> 360
>   
>
> that should take care of your session (the above
> allows for a 6 hour session).
>
> However, there appears to be a separate 'connection
> timeout' or 'request timeout' concept which will
> prevent a long request's results from ever displaying.
>  60 minutes seems to be the limit, but I haven't
> pinned this down.
>
> I've tried using 'connectionTimeout' and
> 'disableUploadTimeout' but neither seems to have any
> effect.
>
> Sorry to answer your question with a question, but
> maybe we can pursue this together.
>
> -Rob
>
>
> --- "Altug B. Altintas" <[EMAIL PROTECTED]> wrote:
> > Hi
> > We have got a page which process a request for a
> > long time (because of algoritm) so we set
> > "session-timeout = 1000" in web.xml
> > but if the user request this page, it starts to
> > process and then after a time (~30 min) browser
> > gives "page cannot be displayed" but the request is
> > still be processed in server so the user cannot see
> > anything. Which parameter can i set to solve this
> > problem.
> >
> > Regards
> > Altug
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
>
> -
> 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]



request timeout - page cannot be displayed

2004-01-29 Thread Altug B. Altintas
Hi
We have got a page which process a request for a long time (because of algoritm) so we 
set  "session-timeout = 1000" in web.xml
but if the user request this page, it starts to process and then after a time (~30 
min) browser gives "page cannot be displayed" but the request is still be processed in 
server so the user cannot see anything. Which parameter can i set to solve this 
problem. 

Regards
Altug

design issue .....

2004-01-27 Thread Shanta B
Hi
   I have a requirement .we have to develop  a webservice Following
is our requirement.



1)Client will send SOAP/HTTP request for imge(s).
2)We have(Service) to serve the corresponding image(s) through SOAP/HTTP.


Now the design issues...


I have two types of solutions...


Type-1
---
1)Storing images in  Database  as a BLOB.
2)Extract the images and send it over SOAP/HTTP


Type-2
---
1) Store the images on the hard disk with a predefined path and format, and
store the reference (access path) in the Oracle   database.

2)Get the relative path and get image and send it over SOAP/HTTP.



could u please tell me which one is better interms of performance  and
scalability.We are using J2EE/J2SE/AXIS and Tomcat.




Thanks
Shanta.B

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



RE: OutOfMemoryError with Seemingly Plenty of Memory

2004-01-27 Thread Dhruva B. Reddy
Hmmm...we don't do hot deploys, but the different generations are
definitely something to look at.

Thanks!
Dhruva

--- Jeff Tulley <[EMAIL PROTECTED]> wrote:
> A while back somebody mentioned that if you continuously redeploy a
> web
> application, the symptoms you are mentioning occur.  This is because
> of
> all of the objects that are stored in the "permanent generation"
> memory.
>  This permanent generation runs out of space, even though the new
> generation and old generation heaps still have room to grow.  (The
> permanent generation's size is a fixed percentage of the total
> memory). 
> I do not know if this is something that can or is fixed in the most
> recent builds and latest major version (5) of Tomcat.
> 
> On NetWare, we have a view into the memory where we can see how big
> the
> perm gen is and what percentage of it is allocated.  I do not know if
> such a thing exists on other platforms though.  If it does, I
> certainly
> have not yet found it.
> 
> Searching the archives (at http://marc.theaimsgroup.com ), it looks
> like it could have something to do with the classloader layout of
> your
> application:
> 
> http://marc.theaimsgroup.com/?l=tomcat-user&m=107046034505454&w=2
> 
> 
> >Although the possibility of a memory leak (sorry--unintended object
> >retention) has not been completely ruled out (yes, I'm running the
> >applications through a profiler), I'm quite puzzled that this
> problem
> >would occur when, by all indications, memory use is nowhere near the
> >limit.
> 
> 
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: OutOfMemoryError with Seemingly Plenty of Memory

2004-01-27 Thread Dhruva B. Reddy
Well, I have made an assumption in most cases.  The OutOfMemoryError is
logged with no timestamp to $CATALINA_HOME/logs/catalina.out.  We have
a script that periodically (every 15 minutes) hits the applications and
notifies us of any error response (either status above 400 or the word
"ERROR" in the content).  When I get such a notification, I immediately
check the log file (catalina.out) for the OutOfMemoryError, and it is
always near or at the bottom of the file.

I know that in and of itself is no indication of when the error
actually occurs.  The applications themselves are set up to use syslog
(through Log4J).  Sometimes the OutOfMemoryError is logged here with a
timestamp, and always occurs within minutes of my notification.

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Howdy,
> 
> >Although the possibility of a memory leak (sorry--unintended object
> >retention) has not been completely ruled out (yes, I'm running the
> >applications through a profiler), I'm quite puzzled that this
> problem
> >would occur when, by all indications, memory use is nowhere near the
> >limit.
> 
> How do you know when the OutOfMemoryError occurred?
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: OutOfMemory exception explanation?

2004-01-27 Thread Dhruva B. Reddy
I've looked for a free profiler, but was unable to find one (as in beer
or speech).  If you can deal with the barrage of sales calls, you can
download a trial version of:

JProbe: http://quest.com/jprobe/try.asp
OptimizeIt:
http://borland.com/products/downloads/download_optimizeit.html

And...well, I forgot the third one I knew about.

-d

--- MURAT BALKAS <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> 
> Hi,
> 
>   I need some info about these memory profiler's. Is there any
> free and
> easy-to-integrate-to-tomcat memory profiler?
> 
>   Thanks...
> 
> Murat
> 
> 
> 
>  
>  
>   "Filip Hanik"  
>  
>   <[EMAIL PROTECTED]To:   "Tomcat
> Users List" <[EMAIL PROTECTED]> 
> 
>   om>  cc:   
>  
>Subject:  RE:
> OutOfMemory exception explanation?   
> 
>   27.01.2004 01:35   
>  
>   Please respond to  
>  
>   "Tomcat Users  
>  
>   List"  
>  
>  
>  
>  
>  
> 
> 
> 
> 
> download a memory profiler, should give you the exact place where
> memory is
> being wasted. probably in your own webapp
> 
> -Original Message-
> From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 26, 2004 11:43 AM
> To: Tomcat Users List
> Subject: OutOfMemory exception explanation?
> 
> 
> We've been getting these every now and then:
> 
> Jan 23, 2004 5:03:30 PM org.apache.tomcat.util.net.TcpWorkerThread
> runIt
> SEVERE: Exception in acceptSocket
> java.lang.OutOfMemoryError
> Jan 23, 2004 5:03:30 PM
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
> SEVERE: Caught exception executing
> [EMAIL PROTECTED], terminating thread
> java.lang.IllegalStateException: Terminating thread
> at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
> 2)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:619)
> at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> Once this occurrs, I have to stop / start the entire Tomcat container
> in
> order to allow this particular webapp to function again.  It only
> effects a particular servlet mapping for a  given webapp.  Does
> anyone
> have any suggestions on how to resolve?  We're running version
> 4.1.24..
> Any leads would be great, thanks.
> 
> -Art
> 
> -
> 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]
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



OutOfMemoryError with Seemingly Plenty of Memory

2004-01-26 Thread Dhruva B. Reddy
I am troubleshooting an issue we've been having with Tomcat 4.1.27.  We
have several websites on one instance, and it regularly throws an
OutOfMemoryError, requiring a restart of Tomcat.

Some observations (warning--this is a bit long):

* The box runs two 2.8GHz Pentium 4 Hyperthreaded Xeons, and has 2GB of
RAM (recently upgraded from 1GB).
* The OutOfMemoryError never contains a message (I believe an
OutOfMemoryError is thrown with a message when the java process has
used the maximum number of threads).
* There is a single instance of Tomcat, housing 20 applications
(including the ones that come with the standard distribution of Tomcat,
examples, tomcat-docs, etc.--these apps see no traffic).
* We have a servlet that is hit every five minutes.  It calls
Runtime.freeMemory(), Runtime.totalMemory() and Runtime.maxMemory(),
after calling Runtime.gc(). This information is graphed (free, total -
free, both vs. time).  According to this graph, there is always plenty
of memory available (I have seen the amount of free memory get quite
low--below 1MB, but never when the problem occurs).
* We're running Tomcat 4.1.27, Redhat Linux 7.3, Sun JDK 1.4.1_05.
* Peak traffic is between 10:00 and 22:00 everyday.  The heaviest day
is Monday and the lightest Saturday.
* Together, the applications service an average of 1600+ requests per
hour.
* Before the memory upgrade, we were running an initial heap size of
100MB, and max of 768MB.  We are now running an initial heap size of
768MB and max of 1536MB.
* Uptime used to be about 100 hours, but recently has fallen to 24
hours.  This change does not coincide with any configuration change.  I
have not determined if there is a coincident change in traffic
patterns.  The memory upgrade has had no effect on uptime.
* Before the memory upgrade, when the problem occurred I would find the
java process spinning (i.e., processor use according to top was 99%),
and it appeared to be using some swap space.  Since the memory upgrade,
no swap space has been used, and the spinning has not been observed.
* At the time that the problem occurs, top reports that java is using
500-600MB of RAM.  This has not changed since the memory upgrade.
* Tomcat is set up not to refresh the context automatically.  Although
it is set up to refresh JSPs, we do not do this.  No changes are ever
made without restarting Tomcat.
* We have the JSP compiler set up to fork (i.e., use another instance
of the JVM).
* The problem almost always occurs during hours of heavy use, although
it has also been observed on Saturdays (the day of lightest use).
* Diskspace use is nowhere near capacity. 
* For a few days, we ran Tomcat with verbose garbage collection (the
"verbose:gc" flag).  The problem seemed to occur just after a "full"
garbage collection.

Although the possibility of a memory leak (sorry--unintended object
retention) has not been completely ruled out (yes, I'm running the
applications through a profiler), I'm quite puzzled that this problem
would occur when, by all indications, memory use is nowhere near the
limit.

Any insights or other things to look at would be greatly appreciated.

Thanks,
Dhruva


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: HELP: Servlet File Download solution.

2004-01-14 Thread Shanta B
 Hi
(B
(BI had similar type of problem on windows 8 months ago  We installed
(Bpatch for IE5.x I can not remember exactly its better to look into
(Bmicrosoft site.
(B
(B
(B-Original Message-
(BFrom: Rai Ou
(BTo: 'Tomcat Users List'
(BSent: 14/01/2004 8:14 AM
(BSubject: HELP: Servlet File Download solution.
(B
(BI wrote a download servlet but I found it didn't run at IE5.x
(B
(BIE6.x - OK
(BIE5.x - NG
(BNS - OK
(B
(BMy source is below. I want to know if there are better solutions
(Bor any Common Libarary I can use.
(B
(Bresponse.setHeader("Content-Disposition",
(B  "attachment; filename=\"" + myFileName + "\"");
(Bresponse.setContentType("application/octet-stream;
(B  name=\"" + myFileName + "\"");
(BString f = myFilePath;
(BPrintWriter out = response.getWriter();
(BBufferedReader in 
(B= new BufferedReader(new FileReader(f));
(BString line;
(Bwhile ((line = in.readLine()) != null) {
(B   out.println(line);
(B}
(Bin.close();
(B
(BThanks.
(BRai
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: javax.net.ssl.SSLHandshakeException: Could not find trusted c ertificate

2004-01-13 Thread Shanta B
 This was caused by the remote server sending certificate that is unknown to
the  client...when client connects to a server the server sends its
certificate to the client for authenticationwhen server sends its
certificate java checkts in its default keystore i.e cacerts and realized
that this certificate was generated by one if the tusted CA that java trusts
by default.

Find more details here 

http://java.sun.com/developer/technicalArticles/Security/secureinternet2/



-Original Message-
From: Neal
To: 'Tomcat Users List'
Sent: 13/01/2004 12:35 PM
Subject: javax.net.ssl.SSLHandshakeException: Could not find trusted
certificate 

I suddenly have a problem reading XML over SSL, where the system has
been in place for a year and the problem never existed before! And the
weird part is
that both my dev and production environmets now seem to have the same
problem.  

Another interesting tidbit I have noticed is that I *can* access XML
documents on my own server (using a Thawte cert) but have a problem when
attempting to access documents on two external servers that I know use
Verisign certs.  This may or may not be related.

Can anyone think of what may be wrong or what I can do to correct the
issue?


I am getting the following error:
javax.net.ssl.SSLHandshakeException: Could not find trusted certificate


Here is the method I am using to retrieve the document:
public Document readDocument(URL url) throws IOException,
ParserConfigurationException, SAXException {
Document doc = null;
  InputStream in = url.openStream();
  DocumentBuilderFactory docBuilderFactory =
DocumentBuilderFactory.newInstance();
  DocumentBuilder docBuilder =
docBuilderFactory.newDocumentBuilder();
  doc = docBuilder.parse(in);
  return doc;
}





-
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]



Need "tomcat-javagroups.jar"

2003-12-24 Thread B Ramesh Kumar

Hi All,
 
I need source files http://www.filip.net/tomcat/tomcat-javagroups.jar 
and http://www.filip.net/tomcat/javagroups.jar,
but not avaliable in site. http://www.filip.net.
 
I am trying for in Memory Session Replication with Tomcat ".
 
 
Can you sent to me?
 
Thanks in advance.
 
Regards
Ramesh Kumar B.
 

Confidentiality Notice 

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.


RE: Memory Use Creeping Up In Steady-State

2003-12-10 Thread Dhruva B. Reddy
I was mistaken--the increase is actually about 1-2KB/s.  I arrive at
this by "eyeballing" the graph (which is updated once a second).  Still
seems rather high, though.

I'm not sure I understand your question, Yoav.  When I say
steady-state, I mean that Tomcat is running, all applications have
initialized and no requests are being sent.

Thanks,
-d

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Howdy,
> 4KB/second is a high rate -- what's using the CPU during this
> "steady-state, no load" time?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Filip Hanik [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 09, 2003 8:00 PM
> >To: Tomcat Users List
> >Subject: RE: Memory Use Creeping Up In Steady-State
> >
> >if it jumps down to the same level, there is no memory creep.
> >load simple means more objects, and more memory
> >
> >Filip
> >
> >-Original Message-
> >From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 09, 2003 3:09 PM
> >To: tomcat
> >Subject: Memory Use Creeping Up In Steady-State
> >
> >
> >We are running a web app on Tomcat 4.1.29, through OptimizeIt.  We
> >don't see any signs of a memory leak (i.e., memory actually
> allocated
> >to objects drops down to the same level upon GC) when the
> application
> >is under load, but when it is not under load, the memory usage
> (i.e.,
> >the amount of memory actually allocated to objects) creeps up around
> >the rate of 4KB/second.  Again, it drops down to the same level upon
> >GC, but I wonder what could account for this.
> >
> >Has anyone noticed this behavior?
> >
> >Thanks,
> >-d
> >
> >__
> >Do you Yahoo!?
> >New Yahoo! Photos - easier uploading and sharing.
> >http://photos.yahoo.com/
> >
>
>-
> >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]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Memory Use Creeping Up In Steady-State

2003-12-09 Thread Dhruva B. Reddy
We are running a web app on Tomcat 4.1.29, through OptimizeIt.  We
don't see any signs of a memory leak (i.e., memory actually allocated
to objects drops down to the same level upon GC) when the application
is under load, but when it is not under load, the memory usage (i.e.,
the amount of memory actually allocated to objects) creeps up around
the rate of 4KB/second.  Again, it drops down to the same level upon
GC, but I wonder what could account for this.

Has anyone noticed this behavior?

Thanks,
-d

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: RemoteHostValve and RemoteAddrValve

2003-12-09 Thread Altug B. Altintas
ok it works. Thanks...

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 09, 2003 12:33 PM
Subject: Re: RemoteHostValve and RemoteAddrValve


> Go into server/webapps/manager/WEB-INF/web.xml and remove the
> security-constraint on the manager.
>
> I haven't tried this myself so make sure you test the RemoteHostValve
> thoroughly to make sure it is protecting your manager app as you wish,
> before you put it in production!
>
> Adam
>
> On 12/09/2003 11:25 AM Altug B. Altintas wrote:
> > No,  i try http://localhost:8081/manager/html like this. And it is still
> > asking username and password
> >
> > Any working example will be really appreciated.
> > Thanks.
> >
> >
> > - Original Message - 
> > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 09, 2003 11:49 AM
> > Subject: Re: RemoteHostValve and RemoteAddrValve
> >
> >
> >
> >>On 12/09/2003 08:17 AM Altug B. Altintas wrote:
> >>
> >>>i couldn't understand what does RemoteHostValve and RemoteAddrValve
> >>>do ?
> >>>
> >>>i changed "manager.xml"  like this
> >>>
> >>>*  >>>path="/manager" docBase="../server/webapps/manager" debug="0"
> >>>privileged="true">
> >>>
> >>> >>>allow="localhost"/>
> >>>
> >>> *
> >>>
> >>>then i try to enter http://localhost:8081/manager/html  from
> >>>localhost, but it is still asking username and password. Any way to
> >>>stop this ?
> >>
> >>Wow! This must be Hijack-a-thread Day. Here, I've started a new one for
> >>you.
> >>
> >>Did you try entering 127.0.0.1 instead of localhost?
> >>
> >>Adam
> >>
> >>-
> >>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]
> >
> >
>
>
> -
> 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: RemoteHostValve and RemoteAddrValve

2003-12-09 Thread Altug B. Altintas
No,  i try http://localhost:8081/manager/html like this. And it is still
asking username and password

Any working example will be really appreciated.
Thanks.


- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 09, 2003 11:49 AM
Subject: Re: RemoteHostValve and RemoteAddrValve


> On 12/09/2003 08:17 AM Altug B. Altintas wrote:
> > i couldn't understand what does RemoteHostValve and RemoteAddrValve
> > do ?
> >
> > i changed "manager.xml"  like this
> >
> > *  > path="/manager" docBase="../server/webapps/manager" debug="0"
> > privileged="true">
> >
> >  > allow="localhost"/>
> >
> >  *
> >
> > then i try to enter http://localhost:8081/manager/html  from
> > localhost, but it is still asking username and password. Any way to
> > stop this ?
>
> Wow! This must be Hijack-a-thread Day. Here, I've started a new one for
> you.
>
> Did you try entering 127.0.0.1 instead of localhost?
>
> Adam
>
> -
> 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]



RemoteHostValve and RemoteAddrValve

2003-12-09 Thread Altug B. Altintas
Hi,
i couldn't understand what does RemoteHostValve and RemoteAddrValve do ?

i changed "manager.xml"  like this

*


  


*

then i try to enter http://localhost:8081/manager/html  from localhost, but
it is still asking username and password.
Any way to stop this ?

Regards.


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



Re: Restarting tomcat from web page

2003-12-08 Thread Altug B. Altintas
hi,
could u please give an example ?

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 4:09 PM
Subject: RE: Restarting tomcat from web page



Howdy,
It does matter from a practicality perspective: tomcat comes with
built-in features to restart individual webapps, so you don't have to do
any work.  O restart all of tomcat externally is much more work, you'll
have to write a script, or use an external tool, etc.


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 05, 2003 4:21 AM
>To: Tomcat Users List
>Subject: Re: Restarting tomcat from web page
>
>it doesn't matter, but restarting all of tomcat much better.
>
>
>- Original Message -
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, December 04, 2003 6:03 PM
>Subject: RE: Restarting tomcat from web page
>
>
>
>Howdy,
>Restarting all of tomcat or just selected webapps?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, December 04, 2003 10:57 AM
>>To: Tomcat Users List
>>Subject: Restarting tomcat from web page
>>
>>Hi
>>How can i restart Tomcat which is running as service, from a web page
>>1 - calling bat file ? (not working)
>>2 - calling http://localhost:8080/manager/html/start?path=/engine
>(asking
>>password)
>>
>>any clean way ?
>>
>>Regards
>>Altug.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>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]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



problem with servlet

2003-12-06 Thread Aiello Eric B Civ 5 CES/CEOE
Hello,

 

I am installing Apache 2.0.42 with Tomcat 4.1.12 using JDSDK 1.4.0 for
ArcIMS on a Windows 2000 server. Both Services are running fine but they are
not communicating with each other. If I try the "HelloWorld" servlet
configuration example, I get a "page not found" error. I have tried
uninstalling and editing the installation files multiple times but to no
avail. Any ideas on what I could be doing wrong? Thanks in advance! I am
using this sample paper as a reference :
http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow
 &d=24171

 

 

Eric Aiello

5CES/CEOE

GeoBase Support

Minot AFB, ND

DSN - 453-1224

 



  1   2   3   4   5   >