Issues with writing to the log file

2023-10-10 Thread Shakila Rajaiah
Hello Users,
I am not sure if I have set up my application correctly. The logs that I have 
included in my java application are not getting written to the log files.
I have catalina.2023-10-10 which only contaings information about the server 
starting.localhost.2023-10-10 having similar information
localhost_access_log.2023-10-10 - get and post requests

I can see all the logs on the server when it is running. Can I write out that 
information to a text file? If so can you please send me the link?
Thanks,Shakila

Shakila Rajaiah  *  e-mail: sraja...@yahoo.com  
 

   
  

Deploying Multiple versions of Apache Tomcat on the same physical server/Machine

2023-06-14 Thread Shakila Rajaiah
Dear Team,
I have several java applications running on different production servers.
I have the first production server set up to run Java 1.8 and 
apache-tomcat-9.0.46.
I have the second production server set up to run Java 11 and 
apache-tomcat-10.0.27 due to different programming needs that were not 
available in Java 8.
Is there any way that I can deploy the two versions of the 
apache-tomcat-servers on the same physical machine? How will I be able to set 
up up JAVA_HOME and CATALINA_HOME environmental variables? 

Just wanted to make sure that I was deploying my applications wisely.
Any help on this will be much appreciated.
Thanks,Shakila.

Shakila Rajaiah  *  e-mail: sraja...@yahoo.com  
Cell: (513) 967-6084  Home: (513) 791-6737

embeded tomcat apache-jasper dependency

2022-08-15 Thread Shakila Rajaiah
Earlier Noelette replied:It looks like you have multiple locations/instances of 
the same jar file (jasper-el.jar by the looks of the error message). This is 
typically included with tomcat. Are you also including a version with your 
application?

I think that I accidently did. Please look at the steps I tried. I am unable to 
remove these .jar files from Eclipse. Therefore I keep getting the error. Any 
help will do 



Hello Mark Thomas, Noelette Stout, & Tomcat Users,

I am trying to deploy two war files to Tomcat server. The first application 
deploys fine. The second application is erroring out and this is the error I am 
getting:

11-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version name:   
Apache Tomcat/9.0.4611-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server built:          
May 8 2021 17:35:52 UTC11-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version number: 
9.0.46.011-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Name:               
Windows Server 2012 R211-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Version:            
6.311-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Architecture:          
amd6411-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Java Home:             
C:\Program Files\Java\jre1.8.0_29111-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           
1.8.0_291-b1011-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            
Oracle Corporation11-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         
C:\apache-tomcat-9.0.4611-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         
C:\apache-tomcat-9.0.4611-Aug-2022 10:04:21.393 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.util.logging.config.file=C:\apache-tomcat-9.0.46\conf\logging.properties11-Aug-2022
 10:04:21.393 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log 
Command line argument: 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager11-Aug-2022 
10:04:21.393 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log 
Command line argument: -Djdk.tls.ephemeralDHKeySize=204811-Aug-2022 
10:04:21.393 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log 
Command line argument: 
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources11-Aug-2022 
10:04:21.393 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log 
Command line argument: -Dignore.endorsed.dirs=11-Aug-2022 10:04:21.393 INFO 
[main] org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Dcatalina.base=C:\apache-tomcat-9.0.4611-Aug-2022 10:04:21.393 INFO 
[main] org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Dcatalina.home=C:\apache-tomcat-9.0.4611-Aug-2022 10:04:21.393 INFO 
[main] org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Djava.io.tmpdir=C:\apache-tomcat-9.0.46\temp11-Aug-2022 10:04:21.414 
INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The 
Apache Tomcat Native library which allows using OpenSSL was not found on the 
java.library.path: [C:\Program 
Files\Java\jre1.8.0_291\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program
 Files (x86)\Common 
Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\apache-maven-3.8.1\bin;C:\Program
 Files\Java\jre1.8.0_291\bin;C:\Program 
Files\Java\jre1.8.0_291;C:\apache-tomcat-9.0.45;C:\apache-tomcat-9.0.45\bin;C:\Program
 Files\Java\jdk1.8.0_291\bin;C:\Program Files (x86)\Microsoft SQL 
Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;.]11-Aug-2022 
10:04:21.862 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing 
ProtocolHandler ["http-nio-8080"]11-Aug-2022 10:04:21.971 INFO [main] 
org.apache.catalina.startup.Catalina.load Server initialization in [842] 
milliseconds11-Aug-2022 10:04:22.002 INFO [main] 
org.apache.catalina.core.StandardService.startInternal Starting service 
[Catalina]11-Aug-2022 10:04:22.002 INFO [main] 
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: 
[Apache Tomcat/9.0.46]11-Aug-2022 10:04:22.033 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [C:\apache-tomcat-9.0.46\webapps\ROOT.war]11-Aug-2022 10:04:25.971 
SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying 
web application archive 

Re: Help with deploying multiple .WAR files in Tomcat

2022-08-05 Thread Shakila Rajaiah
Thank you - let me look into this.Shakila.
Shakila Rajaiah  *  e-mail: sraja...@yahoo.com  
 

On Thursday, August 4, 2022 at 05:49:02 PM EDT, Noelette Stout 
 wrote:  
 
 It looks like you have multiple locations/instances of the same jar file 
(jasper-el.jar by the looks of the error message). This is typically included 
with tomcat. Are you also including a version with your application?
Caused by: java.lang.IllegalArgumentException: More than one fragment with the 
name [org_apache_jasper_el] was found. This is not legal with relative 
ordering. See section 8.2.2 2c of the Servlet specification for details. 
Consider using absolute ordering.  


On Thu, Aug 4, 2022 at 1:21 PM Shakila Rajaiah  
wrote:

Hello Tomcat users,
Can someone help me find the correct documentation to deploy more than one war 
file on Tomcat server. The information available on the web is confusing.
I followed this instruction  and dropped both test1.war and test2.war files in 
the webapps folder. Test1.war seems to have deployed correctly. Howeevr I 
received multiple error messages with deploying test2.war. The errors are 
highlighted in yellow.Simply drop both war files into Tomcat's webapps folder. 
That is all you need to do. By default, Tomcat expands ("explodes" some say) 
each war (technically a zip file) into a folder and automatically deploys the 
app for you. This happens on the fly if Tomcat is already running, or on 
startup when you launch Tomcat.

and this is the error message that I received.
 .             _            __ _ _/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \ ( 
)\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/  ___)| |_)| | | | | || (_| |  ) ) ) ) 
'  || .__|_| |_|_| |_\__, | / / / 
/=|_|==|___/=/_/_/_/:: Spring Boot ::                
(v2.4.5)
022-08-02 14:47:48.459  INFO 1148 --- [           main] 
c.c.d.p.app.Test1Application   : Starting Test1Application v0.0.1-SNAPSHOT 
using Java 1.8.0_291 on  with PID 1148 
(C:\apache-tomcat-9.0.46\webapps\citilink\WEB-INF\classes started by 
sr46\bin)022-08-02 14:47:48.475  INFO 1148 --- [           main] 
c.c.d.p.app.Test1Application   : No active profile set, falling back to default 
profiles: default022-08-02 14:47:51.319  INFO 1148 --- [           main] 
w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: 
initialization completed in 2703 ms022-08-02 14:47:52.319  INFO 1148 --- [      
     main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing 
ExecutorService 'applicationTaskExecutor'022-08-02 14:47:52.819  INFO 1148 --- 
[           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing 
ExecutorService 'taskScheduler'022-08-02 14:47:52.866  INFO 1148 --- [          
 main] c.c.d.p.app.Test1Application   : Started Test1Application in 5.811 
seconds (JVM running for 12.214)2-Aug-2022 14:47:52.897 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [C:\apache-tomcat-9.0.46\webapps\test1.war] has finished in [9,766] 
ms2-Aug-2022 14:47:52.897 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [C:\apache-tomcat-9.0.46\webapps\Test2-0.0.1-SNAPSHOT.war]2-Aug-2022 
14:47:53.116 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR 
Error deploying web application archive 
[C:\apache-tomcat-9.0.46\webapps\Test2-0.0.1-SNAPSHOT.war]       
java.lang.IllegalStateException: Error starting child               at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720) 
              at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)         
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:692)  
             at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1023)          
     at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)      
         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
              at java.util.concurrent.FutureTask.run(Unknown Source)            
   at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.util.concurrent.AbstractExecutorService.submit(Unknown 
Source)               at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:824)          
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)  
             at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1611)              
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)  
             at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
               at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) 
              at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBas

Help with deploying multiple .WAR files in Tomcat

2022-08-04 Thread Shakila Rajaiah
Hello Tomcat users,
Can someone help me find the correct documentation to deploy more than one war 
file on Tomcat server. The information available on the web is confusing.
I followed this instruction  and dropped both test1.war and test2.war files in 
the webapps folder. Test1.war seems to have deployed correctly. Howeevr I 
received multiple error messages with deploying test2.war. The errors are 
highlighted in yellow.Simply drop both war files into Tomcat's webapps folder. 
That is all you need to do. By default, Tomcat expands ("explodes" some say) 
each war (technically a zip file) into a folder and automatically deploys the 
app for you. This happens on the fly if Tomcat is already running, or on 
startup when you launch Tomcat.

and this is the error message that I received.
 .             _            __ _ _/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \ ( 
)\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/  ___)| |_)| | | | | || (_| |  ) ) ) ) 
'  || .__|_| |_|_| |_\__, | / / / 
/=|_|==|___/=/_/_/_/:: Spring Boot ::                
(v2.4.5)
022-08-02 14:47:48.459  INFO 1148 --- [           main] 
c.c.d.p.app.Test1Application   : Starting Test1Application v0.0.1-SNAPSHOT 
using Java 1.8.0_291 on  with PID 1148 
(C:\apache-tomcat-9.0.46\webapps\citilink\WEB-INF\classes started by 
sr46\bin)022-08-02 14:47:48.475  INFO 1148 --- [           main] 
c.c.d.p.app.Test1Application   : No active profile set, falling back to default 
profiles: default022-08-02 14:47:51.319  INFO 1148 --- [           main] 
w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: 
initialization completed in 2703 ms022-08-02 14:47:52.319  INFO 1148 --- [      
     main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing 
ExecutorService 'applicationTaskExecutor'022-08-02 14:47:52.819  INFO 1148 --- 
[           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing 
ExecutorService 'taskScheduler'022-08-02 14:47:52.866  INFO 1148 --- [          
 main] c.c.d.p.app.Test1Application   : Started Test1Application in 5.811 
seconds (JVM running for 12.214)2-Aug-2022 14:47:52.897 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [C:\apache-tomcat-9.0.46\webapps\test1.war] has finished in [9,766] 
ms2-Aug-2022 14:47:52.897 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [C:\apache-tomcat-9.0.46\webapps\Test2-0.0.1-SNAPSHOT.war]2-Aug-2022 
14:47:53.116 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR 
Error deploying web application archive 
[C:\apache-tomcat-9.0.46\webapps\Test2-0.0.1-SNAPSHOT.war]       
java.lang.IllegalStateException: Error starting child               at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720) 
              at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)         
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:692)  
             at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1023)          
     at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)      
         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
              at java.util.concurrent.FutureTask.run(Unknown Source)            
   at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.util.concurrent.AbstractExecutorService.submit(Unknown 
Source)               at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:824)          
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)  
             at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1611)              
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)  
             at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
               at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) 
              at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)         
      at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)    
           at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:829)      
         at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)            
   at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) 
              at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) 
              at java.util.concurrent.FutureTask.run(Unknown Source)            
   at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.util.concurrent.AbstractExecutorService.submit(Unknown 
Source)               at 

Re: Troubleshoot why Tomcat stops running (was RE: How do I post a question with the users?)

2022-02-10 Thread Shakila Rajaiah
I did take a look at the log files, but could not find any valuable 
information. ( server started) deploying war etc. There is no information on 
the server shutting down. The logging level is set at INFO in 
logging.properties. Am I being shown the correct logging information?
Thanks,
Shakila  

On Wednesday, February 9, 2022, 03:20:51 AM EST, Hiran CHAUDHURI 
 wrote:  
 
 CONFIDENTIAL & RESTRICTED

Usually Tomcat runs rock solid for ages. You need to find out the reason for 
the process to stop.
Have you had a look at the Tomcat logfiles? 
https://tomcat.apache.org/tomcat-9.0-doc/introduction.html#Directories_and_Files

Hiran

-Original Message-
From: Shakila Rajaiah 
Sent: Tuesday, February 8, 2022 1:27
To: ch...@christopherschultz.net; Tomcat Users List 
Subject: How do I post a question with the users?

CAUTION: External mail. Be careful with links and attachments.


Hi Chris,
I deployed a java war file to a remote windows server. However the Tomcat 
server stops running after a few days / weeks. I need to run a monthly job, 
therefore the job fails as the server is not running. I am unable to find any 
information on this. Can someone please help. I can give me more details if 
needed.
Thanks,Shakila.
Shakila Rajaiah  *  e-mail: sraja...@yahoo.com


    On Monday, February 7, 2022, 03:33:00 PM EST, Christopher Schultz 
 wrote:

 Rakesh,
IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is intended only for the use 
of the individual or entity shown above as addressees . It may contain 
information which is privileged, confidential or otherwise protected from 
disclosure under applicable laws . If the reader of this transmission is not 
the intended recipient, you are hereby notified that any dissemination, 
printing, distribution, copying, disclosure or the taking of any action in 
reliance on the contents of this information is strictly prohibited. If you 
have received this transmission in error, please immediately notify us by reply 
e-mail or using the address below and delete the message and any attachments 
from your system. Amadeus Data Processing GmbH Geschaftsfuhrer: Sven 
Fuhrmeister Sitz der Gesellschaft: Erding HR Munchen 212770 Berghamer Strasse 6 
85435 Erding Germany.
  

How do I post a question with the users?

2022-02-07 Thread Shakila Rajaiah
Hi Chris,
I deployed a java war file to a remote windows server. However the Tomcat 
server stops running after a few days / weeks. I need to run a monthly job, 
therefore the job fails as the server is not running. I am unable to find any 
information on this. Can someone please help. I can give me more details if 
needed.
Thanks,Shakila.
Shakila Rajaiah  *  e-mail: sraja...@yahoo.com  
 

On Monday, February 7, 2022, 03:33:00 PM EST, Christopher Schultz 
 wrote:  
 
 Rakesh,

On 2/6/22 14:52, rakesh meka wrote:
> Greetings of the day. Hope you all are doing well.
> 
> I am actually new to tomcat. I had required from the client that we need to
> upgrade tomcat from 8.5.23 to 8.5.75 where there is an application is
> deployed which makes sap 4.6c integration.
> 
> So I need to upgrade from old version to new version without losing any
> data/connections.
> 
> I couldn't find the steps or proper tutorials on how to start upgrade.
> 
> Should I need uninstall current version and then install new version and
> deploy the application?
> 
> Is there any better way that I can upgrade the current folder structure to
> new version without uninstalling in thatcase what are changes I need to do?
> 
> 
> Please let me know. I would be eagerly waiting for the response from you.

You might want to read this as you prepare your upgrade. It may help you 
upgrade in the future.

https://tomcat.apache.org/presentations.html#latest-split-installation

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org