You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Deme Carv <de...@gmail.com> on 2014/10/08 22:54:45 UTC

Issue when trying to move a webaplication from Websphere6/JDK6 to Tomcat8/JDK8

I have an application which runs perfectly in WebSphere 6.1 using JDK6 but
now I want to publish it to Tomcat8 using JDK8. It is a simple application
which is based on some JSP and some servlets. I was able to deploy it to
Tomcat8 eithier from my STS or by creating a war file an publishing this
war from admin console. But I can't access this application. There is no
error in my console output and every dependency I have fix it. I have no
idea what can be the root cause. The only message I saw it the one pasted
in the title. I change to FINE the four lines in logging.properties but it
didn't help to see any clear message. Any suggestion that help me at least
to know where to check will be very appreciatted.

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINE
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
= FINE
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
= FINE
org.apache.jasper.compiler.TldLocationsCache.level = FINE

CATALINA.OUT:

Oct 08, 2014 3:08:29 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor
C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
Oct 08, 2014 3:08:29 PM
org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source'
to 'org.eclipse.jst.j2ee.server:my_aplication' did not find a matching
property.
Oct 08, 2014 3:08:30 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
Enable debug logging for this logger for a complete list of JARs that
were scanned but no TLDs were found in them. Skipping unneeded JARs
during scanning can improve startup time and JSP compilation time.
Oct 08, 2014 3:08:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor
C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
has finished in 873 ms

Re: Issue when trying to move a webaplication from Websphere6/JDK6 to Tomcat8/JDK8

Posted by Konstantin Kolinko <kn...@gmail.com>.
2014-10-09 18:26 GMT+04:00 Deme Carv <de...@gmail.com>:
> Kolinko, thank you for your comments.

The rules of this mailing list:
http://tomcat.apache.org/lists.html#tomcat-users
-> 6. When replying, please write your text below the quoted one.


> The message I am seeing is "At least one JAR was scanned for TLDs yet
> contained no TLDs".

That is informational (INFO) message. It just says that startup of
your web application takes longer time than if you configure Tomcat to
skip some jars during scanning.   Nothing is broken.


> In few words I copy a project folder from Eclipse (Rational Aplication
> Developer) which has WebSphere6.1 libraries and JDK6 and import in other
> Eclipse (Spring Tool Suite) which I added Tomcat 8 and JDK8.

What version of Eclipse ?

> I removed
> every dependency from Websphere. The project is quite simple: basically use
> JSP and Servelets. However there isn't any complaint about library, I am
> getting the info message "At least one JAR was scanned for TLDs yet
> contained no TLDs" when compiling. I have no idea where I can look to. I
> tryed by creating the EAR file and importing through the Admin console,

Whose admin console?

Apache Tomcat consumes WAR files. It does not work with EARs.

If you need to use EJBs etc, you need Apache TomEE instead of Apache Tomcat.

> by
> adding the project through Eclipse and by clicking in Run at Server and I
> can access or open the application. Any suggestion will very appreciated.

The logs say that your application has started. Are you using correct
URL in the web browser?

Also see into log files. Some errors are logged into log files but not
to the console.


> On Wed, Oct 8, 2014 at 6:34 PM, Konstantin Kolinko <kn...@gmail.com>
> wrote:
>
>> 2014-10-09 0:54 GMT+04:00 Deme Carv <de...@gmail.com>:
>> > I have an application which runs perfectly in WebSphere 6.1 using JDK6
>> but
>> > now I want to publish it to Tomcat8 using JDK8. It is a simple
>> application
>> > which is based on some JSP and some servlets. I was able to deploy it to
>> > Tomcat8 eithier from my STS or by creating a war file an publishing this
>> > war from admin console. But I can't access this application.
>>
>> What exactly do you mean by "can't access"?
>>
>> > There is no
>> > error in my console output and every dependency I have fix it. I have no
>> > idea what can be the root cause. The only message I saw it the one pasted
>> > in the title.
>>
>> Re-read the title. There is no message mentioned there.
>>
>>
>> > I change to FINE the four lines in logging.properties but it
>> > didn't help to see any clear message. Any suggestion that help me at
>> least
>> > to know where to check will be very appreciatted.
>> >
>> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level =
>> FINE
>> >
>> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
>> > = FINE
>> >
>> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
>> > = FINE
>> > org.apache.jasper.compiler.TldLocationsCache.level = FINE
>>
>> The logging.properties file is used only if java.util.logging is
>> configured to use it (via certain system properties). The
>> catalina.bat/sh scripts do configure them. But if you run from within
>> Eclipse IDE, by default the IDE does not configure those properties.
>>
>>
>> > CATALINA.OUT:
>> >
>> > Oct 08, 2014 3:08:29 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> > INFO: Deploying configuration descriptor
>> > C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
>> > Oct 08, 2014 3:08:29 PM
>> > org.apache.catalina.startup.SetContextPropertiesRule begin
>> > WARNING: [SetContextPropertiesRule]{Context} Setting property 'source'
>> > to 'org.eclipse.jst.j2ee.server:my_aplication' did not find a matching
>> > property.
>> > Oct 08, 2014 3:08:30 PM org.apache.jasper.servlet.TldScanner scanJars
>> > INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
>> > Enable debug logging for this logger for a complete list of JARs that
>> > were scanned but no TLDs were found in them. Skipping unneeded JARs
>> > during scanning can improve startup time and JSP compilation time.
>> > Oct 08, 2014 3:08:30 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> > INFO: Deployment of configuration descriptor
>> > C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
>> > has finished in 873 ms
>>
>> Note the name: "my_aplication2". You should use the same name in web
>> browser. (There is a typo: s/aplication/application/)
>>
>> https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Naming
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>

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


Re: Issue when trying to move a webaplication from Websphere6/JDK6 to Tomcat8/JDK8

Posted by Deme Carv <de...@gmail.com>.
Kolinko, thank you for your comments.
The message I am seeing is "At least one JAR was scanned for TLDs yet
contained no TLDs".
In few words I copy a project folder from Eclipse (Rational Aplication
Developer) which has WebSphere6.1 libraries and JDK6 and import in other
Eclipse (Spring Tool Suite) which I added Tomcat 8 and JDK8. I removed
every dependency from Websphere. The project is quite simple: basically use
JSP and Servelets. However there isn't any complaint about library, I am
getting the info message "At least one JAR was scanned for TLDs yet
contained no TLDs" when compiling. I have no idea where I can look to. I
tryed by creating the EAR file and importing through the Admin console, by
adding the project through Eclipse and by clicking in Run at Server and I
can access or open the application. Any suggestion will very appreciated.

On Wed, Oct 8, 2014 at 6:34 PM, Konstantin Kolinko <kn...@gmail.com>
wrote:

> 2014-10-09 0:54 GMT+04:00 Deme Carv <de...@gmail.com>:
> > I have an application which runs perfectly in WebSphere 6.1 using JDK6
> but
> > now I want to publish it to Tomcat8 using JDK8. It is a simple
> application
> > which is based on some JSP and some servlets. I was able to deploy it to
> > Tomcat8 eithier from my STS or by creating a war file an publishing this
> > war from admin console. But I can't access this application.
>
> What exactly do you mean by "can't access"?
>
> > There is no
> > error in my console output and every dependency I have fix it. I have no
> > idea what can be the root cause. The only message I saw it the one pasted
> > in the title.
>
> Re-read the title. There is no message mentioned there.
>
>
> > I change to FINE the four lines in logging.properties but it
> > didn't help to see any clear message. Any suggestion that help me at
> least
> > to know where to check will be very appreciatted.
> >
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level =
> FINE
> >
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
> > = FINE
> >
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
> > = FINE
> > org.apache.jasper.compiler.TldLocationsCache.level = FINE
>
> The logging.properties file is used only if java.util.logging is
> configured to use it (via certain system properties). The
> catalina.bat/sh scripts do configure them. But if you run from within
> Eclipse IDE, by default the IDE does not configure those properties.
>
>
> > CATALINA.OUT:
> >
> > Oct 08, 2014 3:08:29 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> > INFO: Deploying configuration descriptor
> > C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
> > Oct 08, 2014 3:08:29 PM
> > org.apache.catalina.startup.SetContextPropertiesRule begin
> > WARNING: [SetContextPropertiesRule]{Context} Setting property 'source'
> > to 'org.eclipse.jst.j2ee.server:my_aplication' did not find a matching
> > property.
> > Oct 08, 2014 3:08:30 PM org.apache.jasper.servlet.TldScanner scanJars
> > INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
> > Enable debug logging for this logger for a complete list of JARs that
> > were scanned but no TLDs were found in them. Skipping unneeded JARs
> > during scanning can improve startup time and JSP compilation time.
> > Oct 08, 2014 3:08:30 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> > INFO: Deployment of configuration descriptor
> > C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
> > has finished in 873 ms
>
> Note the name: "my_aplication2". You should use the same name in web
> browser. (There is a typo: s/aplication/application/)
>
> https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Naming
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Issue when trying to move a webaplication from Websphere6/JDK6 to Tomcat8/JDK8

Posted by Konstantin Kolinko <kn...@gmail.com>.
2014-10-09 0:54 GMT+04:00 Deme Carv <de...@gmail.com>:
> I have an application which runs perfectly in WebSphere 6.1 using JDK6 but
> now I want to publish it to Tomcat8 using JDK8. It is a simple application
> which is based on some JSP and some servlets. I was able to deploy it to
> Tomcat8 eithier from my STS or by creating a war file an publishing this
> war from admin console. But I can't access this application.

What exactly do you mean by "can't access"?

> There is no
> error in my console output and every dependency I have fix it. I have no
> idea what can be the root cause. The only message I saw it the one pasted
> in the title.

Re-read the title. There is no message mentioned there.


> I change to FINE the four lines in logging.properties but it
> didn't help to see any clear message. Any suggestion that help me at least
> to know where to check will be very appreciatted.
>
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINE
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
> = FINE
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
> = FINE
> org.apache.jasper.compiler.TldLocationsCache.level = FINE

The logging.properties file is used only if java.util.logging is
configured to use it (via certain system properties). The
catalina.bat/sh scripts do configure them. But if you run from within
Eclipse IDE, by default the IDE does not configure those properties.


> CATALINA.OUT:
>
> Oct 08, 2014 3:08:29 PM org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deploying configuration descriptor
> C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
> Oct 08, 2014 3:08:29 PM
> org.apache.catalina.startup.SetContextPropertiesRule begin
> WARNING: [SetContextPropertiesRule]{Context} Setting property 'source'
> to 'org.eclipse.jst.j2ee.server:my_aplication' did not find a matching
> property.
> Oct 08, 2014 3:08:30 PM org.apache.jasper.servlet.TldScanner scanJars
> INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
> Enable debug logging for this logger for a complete list of JARs that
> were scanned but no TLDs were found in them. Skipping unneeded JARs
> during scanning can improve startup time and JSP compilation time.
> Oct 08, 2014 3:08:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deployment of configuration descriptor
> C:\STS\apache-tomcat-8.0.14\conf\Catalina\localhost\my_aplication2.xml
> has finished in 873 ms

Note the name: "my_aplication2". You should use the same name in web
browser. (There is a typo: s/aplication/application/)

https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Naming

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