Ritu Kama

Ranch Hand
+ Follow
since Sep 10, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ritu Kama

Hi,
I am quite new to Oracle 9i. I have installed a WAR on Oracle application server that contains a servlet. This servlet uses JaxP for XSL transformation. I am getting this error
java.lang.NoClassDefFoundError: javax/xml/transform/TransformerFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at XpeCoproc.<init>(XpeCoproc.java:28)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1659)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4020)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2218)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:585)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Why would it not finejava.lang.NoClassDefFoundError: javax/xml/transform/TransformerFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at XpeCoproc.<init>(XpeCoproc.java:28)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1659)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4020)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2218)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:585)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
I have placed the jaxp.jar file in classpath. I have also specified jaxp.jar in application classpath. Still it does not seem to find the right jar file.
Has anyone tried this before. I know that Oracle comes with its own version of Jaxp and transformer, but I want to override that.
Thanks
Ritu
19 years ago
Where should I place a .properties file in tomcat environment?
19 years ago
I think the situation was well summed up on BBC.
US seems to be the only one (besides usual allies like UK and Australia who never have different opinion ) pushing for WAR, AND that is because US has not been able to categorically prove the presence of ENOUGH SERIOUS threat that world/UN has to ACT NOW!!! That responsibility still lies on US.
19 years ago
DonT Wanna Fight No More - Tina Turner
19 years ago
Hi,
I have Apache 2.0.43 on linux and single instance of Jakarta tomcat 4.1.8 as servlet engine. Both are installed on linux. I also installed mod_jk connector. Now I am doing some load tests against this server configuration. As I ramp up the load, I start seeing 500 Internal server errors.
There is nothing in Tomcat logs. However, when I see the mod_jk.log I see following error
[Wed Jan 29 01:57:42 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network prob
lems or tomcat is down.
[Wed Jan 29 01:57:42 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problem
s.
[Wed Jan 29 01:57:42 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2
[Wed Jan 29 01:57:42 2003] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is l
istenning on the wrong port. Failed errno = 104

Any ideas why this is happening? Does this mean that Tomcat is going down and then comes up to process next request? How can I fix this?
Thanks
Ritu
19 years ago
Hi Christopher,
Looking at the answers, I think you will be better off doing your research somewhere else.
Rest
----------------
Christopher is doing some research. In research there is no right or wrong answer. So if somebody details his/her lifestyle, then others should not try to justify it or try to differ from it. That's the whole point of research.
Also Indians who are in India can't judge on the lifestyle of people here. Same is true the other way.
19 years ago
Thanks a lot! I will try it out and let you know.
Ritu
19 years ago
Hi,
I am pretty sure, someone will be able to help me on this. I installed Tomcat standalone and did some performance testing with my servlet. The results are quite bad.
I am hoping that if I configure Tomcat to work with Apache, then Apache will take care of the performance required with hundreds of simultanoeus connections and might be able to give better performance. Am I right or wrong!
Also if somebody can provide a link to website/How To guide to setting up Tomcat to run with Apache, it will be very useful.
Thanks
Ritu
19 years ago
Can you give a better example. Or if you have a sample of what kind of XML you are trying to produce.
I have worked with IBM XML Security Suite but it is XML Security and not Web Services Security suite.
19 years ago
I think to answer it in a layman words, Web Services can be described as "Services provided on Internet". It sounds like really layman but that is the basics.
The services can be of different types depending upon the service provider and users. Also Web services can be offered externally on the Web to general public users or can be internally available for intranet. Also it is important to understand that users are not necessarily "humans". The user of a webservice can be another webservice itself.
There could be a cost associated to providing web service. That's why Web services security becomes quite important. We would want to know who used the service and Was user authorised to use it.
19 years ago
Well, the xmlSource document is somehow getting lost and I get this exception.
It will be really helpful if you can tell me why that is happening. Seems to me that when I use xmlSource the first time for getAssociatedStylesheet(), the xmlSource content gets lost (like an EOF of some kind)
Hi,
I am transforming XML in a servlet. The logic is simple. Client sends the XML in content of HTTP Post. The XML contains the name of Stylesheet with <xml-stylesheet> Processing Instruction.
However, when I try to do the transformation I get the TransformException
It seems to me that if I try to use xmlSource then it looses it's contents. So if I use it next time, I get some form of exception -
The exception looks as follows:
The root element is required in a well-formed document.javax.xml.transform.TransformerException: The root element is req
uired in a well-formed document.
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:686)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
at TransformXML.doPost(TransformXML.java:34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
-----------------------------------
The source code is as follows:
Can you believe!! Man auctioning himself and family on ebay.
This is the strangest people can get
CNN Money
19 years ago