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

2014-10-09 Thread Deme Carv
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 knst.koli...@gmail.com
wrote:

 2014-10-09 0:54 GMT+04:00 Deme Carv demec...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




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

2014-10-08 Thread Deme Carv
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: NoSuchMethodError: org/apache/xml/utils/TreeWalker

2014-08-01 Thread Deme Carv
Fistlly, thank you both of all for answering. I am very glad for very rapid
comments. I attached a file in my original question which tells the jar I
have in both situation. I guess it might not be delivered to the forum. I
know that there is RAD involved but there are as well apache libraries
included and I am sure there are a lot of people in this forum with huge
experience in such libraries. I don't think my root cause is related to the
Websphere server. I guess that there are some conflict between jars. Even
though you might think different, could you at least tell me if you see
some conflict in this libraries? The problem arises when
apache.xalan.serialize.SerializerToXML run with libraries below.

C:\IBM\SDP\runtimes\base_v61\lib
C:\Rad\workspace\my_app\WebContent\WEB-INF\lib.eclipseproductactivation.jar
activation-impl.jarclasses12.jaraspectjrt.jarcommons-collections.jarbase.jar
commons-fileupload.jarbootstrap.jarcommons-io-1.4.jarbsf-engines.jar
commons-logging.jarcommandlineutils.jaribmjzos.jarEJBCommandTarget.jar
javax.jarffdcSupport.jarjstl.jarhtmlshell.jarjta.jarinstallver.jarjzos.jar
installxml.jarlog4j-1.2.14.jariscdeploy.jarmail.jarivblogbr.jar
quartz-1.6.0.jarIVTClient.jarquartz-all-1.6.0.jarj2ee.jarspring.jarjacl.jar
standard.jarlaunchclient.jarxalan-2.4.1.jarlmproxy.jarxerces-1.4.4.jar
mail-impl.jarmarshall.jarnif.jarpc-appext.jarphysicalrep.jarpmirm4arm.jar
rrd-appext.jarrsadbutils.jarrsahelpers.jarserviceadapter.jar
sib.api.jmsra.rarsib.ra.rarsljc.jarspy-sl.jarspy.jarsqlserver.jarstartup.jar
tcljava.jarurlprotocols.jarutil.jarwsatlib.jarwsif-compatb.jar


2014-08-01 9:05 GMT-03:00 Daniel Mikusa dmik...@pivotal.io:

 On Thu, Jul 31, 2014 at 8:13 PM, Deme Carv demec...@gmail.com wrote:

  I am getting the error from subject when running the below code in
  Websphere in my RAD. It is very interesting that this code doesn't cause
  any error in Server. The server runs up Tomcat 6 but I must set the same
  code to run in Websphere. I have searched for hours in web but I didn't
  find nothing that I could at least give a try. I attached a pdf with the
  libs that I found in each place. I guess that it might exist some
 conflict
  but I have no idea why it is working in Tomcat but it is not working in
  Websphere.
 
  Error message in browser:
 
  Error 500:
 
 org/apache/xml/utils/TreeWalker.init(Lorg/xml/sax/ContentHandler;Lorg/apache/xpath/DOMHelperV
 
  Error message in RAD console:
  java.lang.NoSuchMethodError:
 
 org/apache/xml/utils/TreeWalker.init(Lorg/xml/sax/ContentHandler;Lorg/apache/xpath/DOMHelperV
 

 NoSuchMethodErrors often occur when you have the wrong version of a library
 on your class path.  This happens because your code is looking for one
 version, that has method X while the library you've included has a
 different version without method X.

 I don't know a lot about WebSphere, but I do recall that it ships with an
 older set of libraries and that it prefers those libraries (it calls this
 parent first) over ones in the application (it calls this parent last).
  I've seen cases where switching to parent last mode has resolved similar
 issues.

 If that doesn't help, I second André's suggestion to look for help in a
 more appropriate forum.

 Dan


 
  at org.apache.xalan.serialize.SerializerToXML.seriali
  ze(SerializerToXML.java:2578)
 
  org.apache.xalan.serialize.SerializerToXML serializertoxml = new
  org.apache.xalan.serialize.SerializerToXML();
 
  My code snippet:
  java.io.FileWriter filewriter = new java.io.FileWriter(file);
 
  serializertoxml.setWriter(filewriter);
 
  serializertoxml.serialize(node); // the error happens here
 
  serializertoxml.flushWriter();
 
  filewriter.write(\n);
 
  filewriter.close();
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 



Re: NoSuchMethodError: org/apache/xml/utils/TreeWalker

2014-08-01 Thread Deme Carv
Sorry, it is my fault. Rational Application Development. Basicaly it is an
IBM version of Eclipse. Let's say, like there is a Spring version of
eclipse wich comes with Fabric server easily settled, IBM provides RAD wich
has easily setting of Websphere. I guess that I am facing the error because
some jar wich comes with RAD or Websphere is conflicting when I am using
Xarlan but I am not that experienced in Xarlan so I don't know which I
could try remove or update from the previous list.


2014-08-01 12:51 GMT-03:00 André Warnier a...@ice-sa.com:

 By the way, pardon my ignorance, but what's a RAD ?
 I did look it up in Google, but it comes up with either Rite Aid
 Corporation or a unit of nuclear radiation..


 Deme Carv wrote:

 Fistlly, thank you both of all for answering. I am very glad for very
 rapid
 comments. I attached a file in my original question which tells the jar I
 have in both situation. I guess it might not be delivered to the forum. I
 know that there is RAD involved but there are as well apache libraries
 included and I am sure there are a lot of people in this forum with huge
 experience in such libraries. I don't think my root cause is related to
 the
 Websphere server. I guess that there are some conflict between jars. Even
 though you might think different, could you at least tell me if you see
 some conflict in this libraries? The problem arises when
 apache.xalan.serialize.SerializerToXML run with libraries below.

 C:\IBM\SDP\runtimes\base_v61\lib
 C:\Rad\workspace\my_app\WebContent\WEB-INF\lib.
 eclipseproductactivation.jar
 activation-impl.jarclasses12.jaraspectjrt.jarcommons-
 collections.jarbase.jar
 commons-fileupload.jarbootstrap.jarcommons-io-1.4.jarbsf-engines.jar
 commons-logging.jarcommandlineutils.jaribmjzos.jarEJBCommandTarget.jar
 javax.jarffdcSupport.jarjstl.jarhtmlshell.jarjta.
 jarinstallver.jarjzos.jar
 installxml.jarlog4j-1.2.14.jariscdeploy.jarmail.jarivblogbr.jar
 quartz-1.6.0.jarIVTClient.jarquartz-all-1.6.0.jarj2ee.
 jarspring.jarjacl.jar
 standard.jarlaunchclient.jarxalan-2.4.1.jarlmproxy.jarxerces-1.4.4.jar
 mail-impl.jarmarshall.jarnif.jarpc-appext.jarphysicalrep.jarpmirm4arm.jar
 rrd-appext.jarrsadbutils.jarrsahelpers.jarserviceadapter.jar
 sib.api.jmsra.rarsib.ra.rarsljc.jarspy-sl.jarspy.
 jarsqlserver.jarstartup.jar
 tcljava.jarurlprotocols.jarutil.jarwsatlib.jarwsif-compatb.jar


 2014-08-01 9:05 GMT-03:00 Daniel Mikusa dmik...@pivotal.io:

  On Thu, Jul 31, 2014 at 8:13 PM, Deme Carv demec...@gmail.com wrote:

  I am getting the error from subject when running the below code in
 Websphere in my RAD. It is very interesting that this code doesn't cause
 any error in Server. The server runs up Tomcat 6 but I must set the same
 code to run in Websphere. I have searched for hours in web but I didn't
 find nothing that I could at least give a try. I attached a pdf with the
 libs that I found in each place. I guess that it might exist some

 conflict

 but I have no idea why it is working in Tomcat but it is not working in
 Websphere.

 Error message in browser:

 Error 500:

  org/apache/xml/utils/TreeWalker.init(Lorg/xml/
 sax/ContentHandler;Lorg/apache/xpath/DOMHelperV

 Error message in RAD console:
 java.lang.NoSuchMethodError:

  org/apache/xml/utils/TreeWalker.init(Lorg/xml/
 sax/ContentHandler;Lorg/apache/xpath/DOMHelperV
 NoSuchMethodErrors often occur when you have the wrong version of a
 library
 on your class path.  This happens because your code is looking for one
 version, that has method X while the library you've included has a
 different version without method X.

 I don't know a lot about WebSphere, but I do recall that it ships with an
 older set of libraries and that it prefers those libraries (it calls this
 parent first) over ones in the application (it calls this parent last).
  I've seen cases where switching to parent last mode has resolved
 similar
 issues.

 If that doesn't help, I second André's suggestion to look for help in a
 more appropriate forum.

 Dan


  at org.apache.xalan.serialize.SerializerToXML.seriali
 ze(SerializerToXML.java:2578)

 org.apache.xalan.serialize.SerializerToXML serializertoxml = new
 org.apache.xalan.serialize.SerializerToXML();

 My code snippet:
 java.io.FileWriter filewriter = new java.io.FileWriter(file);

 serializertoxml.setWriter(filewriter);

 serializertoxml.serialize(node); // the error happens here

 serializertoxml.flushWriter();

 filewriter.write(\n);

 filewriter.close();


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




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




NoSuchMethodError: org/apache/xml/utils/TreeWalker

2014-07-31 Thread Deme Carv
I am getting the error from subject when running the below code in
Websphere in my RAD. It is very interesting that this code doesn't cause
any error in Server. The server runs up Tomcat 6 but I must set the same
code to run in Websphere. I have searched for hours in web but I didn't
find nothing that I could at least give a try. I attached a pdf with the
libs that I found in each place. I guess that it might exist some conflict
but I have no idea why it is working in Tomcat but it is not working in
Websphere.

Error message in browser:

Error 500:
org/apache/xml/utils/TreeWalker.init(Lorg/xml/sax/ContentHandler;Lorg/apache/xpath/DOMHelperV

Error message in RAD console:
java.lang.NoSuchMethodError:
org/apache/xml/utils/TreeWalker.init(Lorg/xml/sax/ContentHandler;Lorg/apache/xpath/DOMHelperV

at org.apache.xalan.serialize.SerializerToXML.seriali
ze(SerializerToXML.java:2578)

org.apache.xalan.serialize.SerializerToXML serializertoxml = new
org.apache.xalan.serialize.SerializerToXML();

My code snippet:
java.io.FileWriter filewriter = new java.io.FileWriter(file);

serializertoxml.setWriter(filewriter);

serializertoxml.serialize(node); // the error happens here

serializertoxml.flushWriter();

filewriter.write(\n);

filewriter.close();

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