Class loading in Tomcat server
Hi,
I need to specify a class in web.xml or server.xml or any where else, but it shouldnot look for the class during my server startup, it should look only during my application running time. How can I achieve this in Tomcat server?
thanks
kasim wrote:
thanks for the reply.
I have specified driver class details in context.xml file of Tomcat(5.5), server starts looking up for classes during tomcat server startup, I need to avoid this. So is there anyway to specify my db details in some XML and that shouldnot look for the classes during server start-up time?
Assuming you're talking about database connections, use the Resource mechanism to manage your database connection pools. Your program shouldn't have to deal with the details of database connection.
You specify all the database connection info in context or server.xml, and your program accesses them through JNDI, it's all detailed in the Tomcat documentation.
Similar Messages
-
Performance issues with class loader on Windows server
We are observing some performance issues in our application. We are Using weblogic 11g with Java6 on a windows 2003 server
The thread dumps indicate many threads are waiting in queue for the native file methods:
"[ACTIVE] ExecuteThread: '106' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
java.io.WinNTFileSystem.getBooleanAttributes(Native Method)
java.io.File.exists(Unknown Source)
weblogic.utils.classloaders.ClasspathClassFinder.getFileSource(ClasspathClassFinder.java:398)
weblogic.utils.classloaders.ClasspathClassFinder.getSourcesInternal(ClasspathClassFinder.java:347)
weblogic.utils.classloaders.ClasspathClassFinder.getSource(ClasspathClassFinder.java:316)
weblogic.application.io.ManifestFinder.getSource(ManifestFinder.java:75)
weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
weblogic.application.utils.CompositeWebAppFinder.getSource(CompositeWebAppFinder.java:71)
weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
weblogic.utils.classloaders.CodeGenClassFinder.getSource(CodeGenClassFinder.java:33)
weblogic.utils.classloaders.GenericClassLoader.findResource(GenericClassLoader.java:210)
weblogic.utils.classloaders.GenericClassLoader.getResourceInternal(GenericClassLoader.java:160)
weblogic.utils.classloaders.GenericClassLoader.getResource(GenericClassLoader.java:182)
java.lang.ClassLoader.getResourceAsStream(Unknown Source)
javax.xml.parsers.SecuritySupport$4.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
javax.xml.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
javax.xml.parsers.FactoryFinder.find(Unknown Source)
javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
org.ajax4jsf.context.ResponseWriterContentHandler.<init>(ResponseWriterContentHandler.java:48)
org.ajax4jsf.context.ViewResources$HeadResponseWriter.<init>(ViewResources.java:259)
org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:445)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
On googling this seems to be an issue with java file handling on windows servers and I couldn't find a solution yet. Any recommendation or pointer is appreciatedHi shubhu,
I just analyzed your partial Thread Dump data, the problem is that the ajax4jsf framework ResponseWriterContentHandler triggers internally a new instance of the DocumentBuilderFactory; every time; triggering heavy IO contention because of Class loader / JAR file search operations.
Too many of these IO operations under heavy load will create excessive contention and severe performance degradation; regardless of the OS you are running your JVM on.
Please review the link below and see if this is related to your problem.. This is a known issue in JBOSS JIRA when using RichFaces / ajaxJSF.
https://issues.jboss.org/browse/JBPAPP-6166
Regards,
P-H
http://javaeesupportpatterns.blogspot.com/ -
Dynamic Class Loading (RMI)
Hi,
i have my rmi server, implementing objects,stubs and skeleton classes deployed in my Tomcat server and they are stored under the tomcat root folder.
In anoather jvm iam trying to load the classes thru the below code.
java -Djava.rmi.server.codebase=http://ssd8/tomcat-3.2.4/install_dir/webapps/ROOT/WEB-INF/rmicode stockMarketClient
ssd8 is the hostname(machine) which contains all my rmi server files.
and stockmarketclient is my rmi client.
Iam getting the java.lang.noclassdeffound error.
what may be the problem???
Should i have the security policy file in the client machine.Please Do tell me if any of the following worked I'll be greatly obliged
1) Try this
java -Djava.rmi.server.codebase=http://servername/dir1/dir2/ RMIServer
This / thing at the end of the URL is very important
2) This is how I did it just Today
Dynamic Class Loading Using RMI
Server Side
1) Main Interface
2) Implementing Class
3) Stub & Skel (RMI Server & Web Server)
4) All Other Classes used by the Server
Web Server Side
1) Main Interface
2) Stub & Skel (RMI Server & Web Server)
3) All Other Classes (not Main Client Class)
Client Side
1) Main Interface
2) Main Client Class
3) Stubs
4) Security Manager
RUNNING
SERVER
java DataServerImpl
CLIENT
java DataClient xyz
Note
Make Calls as follows
System.setSecurityManager(new LaxSecurityManager());
DataServer server = (DataServer) Naming.lookup("rmi://localhost:1099/DataServer");
Runnable r = (Runnable)server.getNewClass();
r.run();
DON'T make Calls as follows
System.setSecurityManager(new LaxSecurityManager());
DataServer server = (DataServer) Naming.lookup("rmi://localhost:1099/DataServer");
NewClass obj = server.getNewClass();
obj.run();
if done as above provide the Class NewClass to the Client as well ( whole purpose defeated)
Code
// SecurityManager
import java.rmi.*;
import java.security.*;
public class LaxSecurityManager extends RMISecurityManager
// All Checks are routed through this method
public void checkPermission(Permission p)
// do nothing
// Main Interface
import java.rmi.*;
public interface DataServer extends Remote
public boolean login(String usr_name,char[] pass_wrd) throws RemoteException;
public Object getNewClass() throws RemoteException;
// Main Server
import java.rmi.*;
import java.rmi.server.*;
import java.rmi.registry.*;
public class DataServerImpl /*extends UnicastRemoteObject*/ implements DataServer
static
try
LocateRegistry.createRegistry(1099);
catch(Exception e)
System.err.println("Static " + e);
public boolean login(String usr_name,char[] pass_wd) throws RemoteException
System.out.println("Welcome " + usr_name);
if( pass_wd == null || pass_wd.length == 0 || pass_wd.length > 10 )
return false;
return true;
public Object getNewClass() throws RemoteException
System.out.println("Returning New Class");
return new NewClass();
public DataServerImpl() throws RemoteException
try
System.setProperty("java.rmi.server.codebase","http://localhost:8080/");
UnicastRemoteObject.exportObject(this);
Naming.rebind("DataServer",this);
catch(java.net.MalformedURLException e)
System.err.println("DataServerImpl " + e);
return;
System.out.println("Server Registered");
public static void main(String[] args) throws Exception
new DataServerImpl();
// Class Moving Around the Network
public class NewClass implements java.io.Serializable,Runnable
int num;
public void run()
System.out.println("Start the Server with Number = " + num);
public NewClass()
num = (int)(Math.random()*1000);
public String toString()
return num + "";
// Client
import java.rmi.*;
public class DataClient
public static void main(String[] args) throws Exception
System.setSecurityManager(new LaxSecurityManager());
String pass = new String();
if(args.length == 0)
System.err.println("usage: java DataClient PassWord");
System.exit(1);
else
pass = args[0];
DataServer server = (DataServer) Naming.lookup("rmi://localhost:1099/DataServer");
Runnable r = (Runnable)server.getNewClass();
r.run();
All the Best -
How to set tomcat server path in windows XP
hi frnds,
I am new to java technologies.I am trying to learn all alone Hw am wandering how to set class path of tomcat server in windows xp.
it shud be in user varibles r system varibles
Thanks everyone in advance,
cheers........
roopaWhat exactly are you trying to accomplish here?
-
Updating Classes Running in Tomcat
I am running some JSP's which are using classes. Then I make a change to the class on another machine and recompile the class.
After this I copy over the existing classes onto the Tomcat server.
What I have noticed though is that Tomcat is still using the old classes. I have tried stopping Tomcat and restarting it, which does solve the problem.
Is there any way that I can update the classes without stopping and re-starting Tomcat?
Reason being is that there may be users currently connected to the web server and stopping it will stop them!Some servlet engines support updating classes on the fly and some do not. The ones that do support that usually have a configuration option that allows you to turn it on and off, or to apply it only to certain servlets or directories. I don't know about whether Tomcat supports updating classes on the fly, but if it does you should find some configuration options for it.
-
How can I make server use single class loader for several applications
I have several web/ejb applications. These applications use some common libraries and should share instances of classes from those libraries.
But applications are being deployed independently thus packaging all them to EAR is not acceptable.
I suppose the problem is that each application uses separate class loader.
How can I make AS use single class loader for a set of applications?
Different applications depend on different libraries so I need a way that will not share library for all applications on the domain but only for some exact applications.
When I placed common jar to *%domain%/lib* - all works. But that jar is shared between all applications on the domain.
When I tried to place common jar to *%domain%/lib/applibs* and specified --libraries* attribute on deploying I got exception
java.lang.ClassCastException: a.FirstDao cannot be cast to a.FirstDaoHere http://download.oracle.com/docs/cd/E19879-01/820-4336/6nfqd2b1t/index.html I read:
If multiple applications or modules refer to the same libraries, classes in those libraries are automatically shared.
This can reduce the memory footprint and allow sharing of static information.Does it mean that classes should be able to be casted ?You didn't specify which version of the application server you are using, but the config is similar as long as you know what to look for. Basically, you need to change the classloader delegation. Here's how it is done in 8.2
http://download.oracle.com/docs/cd/E19830-01/819-4721/beagb/index.html -
Dynamic class loading from directory on server
Hello,
I am not sure if this is right forum, but I think it is more weblogic then ADF issue...
I am trying to create and load dynamically classes in weblogic (10.3.2.0). It is ADF application which I deploy to the weblogic server.
When I print ((GenericClassLoader)this.getClass().getClassLoader()).getFinderClassPath()I see the path to my directory (of course not just this path) C:\...\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\tmp\_WL_user\test\753the\dynamicClasses(I have added directory dynamicClasses to manifest for deployment WAR profile).
In this directory I create class files. I have checked it, files are really created there.
When I try to load created class with the same classloader, for which I have printed classpath, ClassNotFoundException is thrown.
Please where could be the problem? Isn't it possible to load classes from directory instead of jar, do I need some special server configuration,...?
Thank you in advance
QjetaHi Qjeta,
I am not sure but you can give it a try using URLClassLoader...Which we generally use for DynamicClassLoading:
import java.net.URLClassLoader;
<font color=maroon>
String path="C:/.../system11.1.1.2.36.55.36/DefaultDomain/servers/DefaultServer/tmp/_WL_user/test/753the/dynamicClasses";
*URLClassLoader loader = new URLClassLoader(new URL[] { new URL(path) });*
Class c = loader.loadClass ("your.class.NameHere");
</font>
// Load class from class loader. filly qualified class name (means classname with package name) is the name of the class to be loaded
in the above code the "C:/.../system11.1.1.2.36.55.36/DefaultDomain/servers/DefaultServer/tmp/_WL_user/test/753the/dynamicClasses" should be the location of the directory where your classes are placed....If you want to load a perticular Jar then you need to write the jarfile name as well like following:
C:/.../system11.1.1.2.36.55.36/DefaultDomain/servers/DefaultServer/tmp/_WL_user/test/753the/dynamicClasses/Myapplication.jar
.================================
If the above code works for you then later you can even try to enhance your code by doing the following:
Thread.currentThread().setContextClassLoader(urlClassLoaderRef);
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here) -
TOMCAT SERVER CONNECTED TO LOAD BALANCER
Hi ,
scenario:
Tomcat server addedd to the load balancer for performance .
Q&A:
We have added tomcat(new server) to load balancer,now all the services are up and running,but i want to know the validation of how the new server added to the cluster will have the connections via load balancer to this server. is there any simple way where by we can go by looking at some logs, or load, or connection statistics for the Tomcat server whilst users connect.
please gurus can you help,
1.HOW TO VALIDATE THE LB IS WORKING FINE .
2.TOMCAT SERVICES VIA LB (CONNECTION)
3.OTHER VALIDATION TO BE CONSIDERED.
Regards,SAP Business Objects really cannot verify if your load balancer is working fine, you should take that up with your load balancer manufacturer or IT folks that manage it.
When using a load balancer with business objects deployment on tomcat you should enable session persistance (this is mandatory in XIR2) and may be needed in some circumstances in XI 3.x.
A little trick I've seen customers do is to change an image file in the deployment to have a #1 or 2 or 3 or... depending on the tomcat server, this way they could tell which server the load balancer was redirecting to. To do this right click the image when accessing tomcat (to get it's location in the deployment) and simply edit with MS paint or favorite image editor (back up the original 1st just in case...)
Regards,
Tim -
I have setup tomcat 4.1.12 on WinXP. Tomcat is integrated with IIS.
I am able to work with my web applications. My problem is :
I cant use my own classes in my application. Tomcat is not able to locate my .class file, i think. I have tried this:
1) created c:\tomcat4\webapps\myapp\WEB-INF\classes and placing my .class file in it.
2) created c:\tomcat4\work\Standalone\localhost\myapp\WEB-INF\classes and placing my .class file in it.
3) placed my .class file under D:\tomcat4\shared\classes
4) placed my .class file under D:\tomcat4\common\classes
After each step, I restarted the Tomcat service and the IIS service.
I checked my Tomcat Application Manager, my application is there but the WEB-INF folder is not visible. But if I rename it and refresh the page, the renamed folders appears. I'm not sure why this is happening. I would be grateful if anyone could clarify this for me.
I have referred to the documentation - Class Loader - HOW TO ... but cant solve this problem. Did I miss anything?
Please help.Try this create somename\WEB-INF\classes\ fold and add all classes and then create a war file. And put the war file in webapps of tomcat. There is no problem in running tomcat and IIS totgether.
-
Data adaptor deployment error in tomcat server
Hi,
I have created a data-plugin where i am calling Siebel On demand webservice and deployed in tomcat server ( apache-tomcat-6.0.26\webapps\web-determinations\WEB-INF\classes\plugins).I have put all the related jars in plugin folders.Now problem is when I am starting the tomcat server there in no error in console but if i see localhost.log file error is coming
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/exolab/castor/mapping/xml/descriptors/BindXmlDescriptor
at java.lang.Class.getEnclosingMethod0(Native Method)
at java.lang.Class.getEnclosingMethodInfo(Class.java:929)
at java.lang.Class.isLocalOrAnonymousClass(Class.java:1239)
at java.lang.Class.getCanonicalName(Class.java:1167)
at com.oracle.util.reflection.ClassWrapper.getCanonicalName(ClassWrapper.java:189)
at com.oracle.util.discovery.LocalPluginFinder.findPluginInClass(LocalPluginFinder.java:279)
at com.oracle.util.discovery.LocalPluginFinder.findPluginsInURLTarget(LocalPluginFinder.java:251)
at com.oracle.util.discovery.LocalPluginFinder.findPlugins(LocalPluginFinder.java:162)
at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:154)
at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91)
at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
I have put the castor-1.3.1.jar file in plugin folder .Then also same error.I can see the BindXmlDescripto.class file in the jar.
what could be the reason.You need to put any associated jar files in the WEB-INF/lib directory. That should fix your problem.
The Developers Guide section on "Create a Plugin" describes what goes in the WEB-INF/classes/plugins and what goes in WEB-INF/lib
Cheers
Frank
Edited by: frank.hampshire on Jun 15, 2010 10:55 AM -
Order of class loading in a Web Application
Hi,
I have been trying to find out if there is a defined order in which classes contained in WEB-INF/classes
and/or WEB-INF/lib should be loaded.
There doesn't appear to be any mention of class loading order in either the J2EE 1.3 or J2EE 1.4
specifications. That does not mean that there isn't a defined class load order, it just means I haven't found one.
Typical behaviour from servers such as Tomcat (reference implementation of the Servlet Engine) show
that classes in WEB-INF/classes are loaded before classes contained in jars under WEB-INF/lib.
Because there doesn't appear to be a mandated class load order I cannot assume that the same
behaviour holds for all servers, unless someone here knows better of course.
The reason for the question is that relying on the exhibited class load order means we can patch web applications by simply putting the patch under the WEB-INF/classes directory.
If this should not be relied upon then patches will have to be applied directly to the affected jar files,
this is not a problem in itself however it is nice to be able to keep the patches out of the jars for
ease of rolling back patches without having to copy jar files all over the place.
Any insights would be welcome.
ThanksIf you say that it is server specific i don't find
that to be the correct answer b'cozI didn't give an answer, I am looking for one. I gave an example of the behaviour that Tomcat 4.1.x
exhibits, one that we currently make use of for patching web applications. My question was about
whether or not this behaviour can be relied upon.
the class files are depended on the jar files which
need to checked in first before getting loaded b'coz
it should check for dependent files before only while
getting deployed.This is why the class load order is important.
Is the Web Application Classloader going to look in WEB-INF/classes first every time followed
by WEB-INF/lib everytime, is the order undefined, or is it reversed?
More over if you just think of class loading mechanism
of classes folder only then it is loaded in the order
specified in the web.xml file.
in this we specify the order of loading.As far as I know web.xml does not allow you to specify where classes should be loaded from and in
which classpath order, you define which classes should be used for application components.
The only load order you can specify is the load order of servlets on startup.
If you know different I would love to know how you would configure web.xml to specify the classpath order
in which classes are loaded. -
Tomcat server 6.0.35 on jdeveloper 11.1.1.5
Hi Experts,
I am using tomcat server 6.0.35 and Jdeveloper 11.1.1.5 Trying to run my application on tomcat server but its not showing at all
I have tried all the things which they showed on blogs but I don't know why it is not working out?
In my tomcat Logs tomcat6 stderr it is showing like this
2012-05-22 09:47:03 Commons Daemon procrun stderr initialized
May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
May 22, 2012 9:47:05 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 22, 2012 9:47:05 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
May 22, 2012 9:47:05 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1333 ms
May 22, 2012 9:47:05 AM org.apache.catalina.users.MemoryUserDatabase open
WARNING: Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported.
org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/allow-java-encodings
at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:129)
at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:556)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:391)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:747)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
May 22, 2012 9:47:05 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
May 22, 2012 9:47:06 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:06 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webapp1.war
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [webapp1] startup failed due to previous errors
May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
May 22, 2012 9:47:08 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:08 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 22, 2012 9:47:08 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
May 22, 2012 9:47:08 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2630 ms
__In catalina folder it is showing like this__
May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
May 22, 2012 9:47:05 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 22, 2012 9:47:05 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
May 22, 2012 9:47:05 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1333 ms
May 22, 2012 9:47:05 AM org.apache.catalina.users.MemoryUserDatabase open
WARNING: Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported.
org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/allow-java-encodings
at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:129)
at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:556)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:391)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:747)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
May 22, 2012 9:47:05 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
May 22, 2012 9:47:06 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:06 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webapp1.war
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [webapp1] startup failed due to previous errors
May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
May 22, 2012 9:47:08 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
May 22, 2012 9:47:08 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 22, 2012 9:47:08 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
May 22, 2012 9:47:08 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2630 ms
**In local host folder it is showing like this**
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
java.lang.ClassNotFoundException: oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
I do have a question whether Tomcat server will work on 11.1.1.5 or not
If not which version of jdeveloper and tomcat can I use and make it work properly
Can anyone help me out?
Thanks in Advance
SantoshI think that no one ADF version is certified to the tomcat container. If you want to deploy in tomcat you could use apache myfaces trinidad, which is the opensource ADF Faces donated from Oracle to the Apache Foundation.
Regards, -
Hi Experts,
Initially my File Parser Application was working fine with Tomcat Server. But now it is throwing this error and application is not showing the desired results.
Apr 16, 2010 3:17:14 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_15\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.5.0_15\bin\client;C:\Program Files\Java\jre1.5.0_15\bin;D:\Program Files\Documentum\Shared;C:\Program Files\Documentum\Shared;F:\Program Files\Documentum\Shared;F:\Documentum\fulltext\fast40;F:\Documentum\product\5.3\fusion;C:\Program Files\Oracle\jre\1.1.8\bin;F:\\bin;F:\\Apache\Perl\5.00503\bin\mswin32-x86;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\PuTTY\;C:\Program Files\QuickTime\QTSystem\
Apr 16, 2010 3:17:14 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 16, 2010 3:17:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 594 ms
Apr 16, 2010 3:17:14 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 16, 2010 3:17:14 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
Apr 16, 2010 3:17:14 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 16, 2010 3:17:14 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 16, 2010 3:17:14 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 16, 2010 3:17:14 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Apr 16, 2010 3:17:14 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 16, 2010 3:17:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 640 ms
Apr 16, 2010 3:17:50 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.sun.xml.internal.txw2.Document resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.sun.xml.internal.ws.transport.http.server.EndpointDocInfo resolves to a package
An error occurred at line: 12 in the generated java file
Only a type can be imported. javax.xml.stream.events.EndElement resolves to a package
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at ProcessServlets.doPost(ProcessServlets.java:45)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)/usr/java/apache-tomcat-6.0.16/./GoodLuck does not exist or is not a readable directoryRTFEM.
-
Creating a link to text file in a tomcat server not working in JSP webapp
I am using netbeans to create an web application within my desktop, and then I load the build/web folder to a tomcat server to test the application. Everything works fine. However, when I try to link up my JSP pages to text files (.txt) create by the application on the server, I seem to be getting files that might be kept in a terminal.
When I get the Real path of the servlet context, I find that it is to a C:\ type file rather than a //hostname type of directory. So obviously those files are not being reached.
Does anybody know how to deal this problem?There are a number of ways to get to the Flash Global Security settings dialog.
My favourite way is just to double click on a Captivate SWF (not the HTM file) to open it in a web browser, then right click on the playing screen to get the Flash context menu. On the context menu, click the Global Settings option.
In the web page that opens, click the link on the left to Global Security Settings.
Add the folder or drive location of your published Captivate content to the Trusted Locations. -
I want to write in a XML file which is located on the TOMCAT server
hello all,
can anybody tell me or give me code snippet for writing some data through my application i.e from client side on te file which is located on the TOMCAT server(especially XML file).
tell me how can i do that?
it is urgent
cya
sushHello sush,,,,
I am sending you some API / classes that will definetely help you for writing XML file through java.
1) TransformerFactory.newInstance();
2)Transformer serializer
3)StreamResult
4)serializer.transform(source,result);
5)DOMSource
From Vikas_khengare
[ [email protected] ]
Maybe you are looking for
-
My ipod cannot be recognized by my computer
My 4G nano works perfectly fine when playing music. but when I connect it to my computer. The changing icon is shown, but it doesn't pop out in iTune. I enabled it disk use, but now I cannot find the drive. Seems it is connected (it's charging), but
-
Error Loading data from SAP R/3 to BW
Dear sdn, When I create a infopackage and load transaction or master data from R3. Sometimes the produre is correct but most of the time errors occurs. <b>The monitor <i><u>detail</u></i> trip info:</b> Extraction (messages): Missing messages
-
Issue with cf 8 and jboss 4.3
I'm using CF 8 multiserver version with Model-glue framework. I'm trying to access EJBs from jboss4.3. And I'm getting this error. Could not access a java object field called TRACE. I have no problem with CF 8 and jboss4.2. When I did some research o
-
How far is this true? Very IMPORTANT!!!
I saw this on bitpipe.com web site. How far is this true? (search for ideabundle on this site and you can go to the actual website of Giga...) Following is a QUOTE (ie. an extract) "In this IdeaBundle, Giga Analysts look at the foundation of Oracles
-
New skype design on windows 7?
Logged in with a forced update at the startup and got this 'new' skype. Solved! Go to Solution. Attachments: Untitled.jpg 1388 KB