InvocationTargetException on servlet startup
Hello,
I'm a DBA thrust into the App server world. I have a servlet developed in WebObjects packaged as .war file that I am trying to deploy in Oracle9iAS (9.0.4.0.0) Containers for J2EE. I have added the application entries to the application.xml and http-web-site.xml. The servlet throws the error below and gives a 503 Serve Unavailabe error in the browser. THe servlet runs fine in JBoss and the WO developer doesn't have any ideas other than run it in JBoss. Any ideas on the cause of the this error are greatly appreciated.
Thanks
Jeff
Classes and frameworks will be loaded out of the WEB-INF/lib and WEB-INF/classes directories.
MainBundle will be set to Logbook
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:415)
at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.java:78)
at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:629)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2091)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4507)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2710)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:629)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:264)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NoClassDefFoundError
at com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:451)
... 16 more
Well I can offer a few, some I don't remember...
I know that at one point I had defined an applicaton context in my server.xml file and later commented it out. But I don't see that having a relationship to this Invocation error..
Other changes include at some point removing an entire web application directory, with its associated web.xml from out of the webapps dir. Maybe some of the settings there were causing a problem..
Similar Messages
-
Specify the order of servlet startup
Hi,
I'am trying to specify the order of the servlet startup in Iplanet 4.0 ..but not able to ..
is their any way by which we can specify the order of the servlets that should be started while starting the webserverIn answer to your original question:
970992 wrote:
However, when I look at the execution plan, I see that the last predicate (to_number(answer) > 0) has been executed the first. Henceforth, it checks many rows first. Normally, 75 rows belong to 31/12/2012 as you see from the following. Can I specify the execution order?According to the execution plan, it will do a full scan of surveys using the predicate on insertdate to build the (presumably in-memory) hash table (hash based on survey_id) to do the joins (Step 2). Then, it does a full scan of the answers table using the question_uid and answer predicates (Step 3). For each row it finds that matches those predicate, it will prpobe the hash table created in step 2 using the hashed value of survey_seq_id. So, it is doing the insertdate predicate first.
In answer to your last post
970992 wrote:
>
First of all i would get rid of the implizit type conversion:
TO_NUMBER("A"."ANSWER")>0)it is not implicit conversion, I reckon it is explicit type conversion, isnt it?
No, it is an implicit type conversion. Your code says answer > 0, since the answer column is a varchar2 column, Oracle implicitly converts the answer column to a number to compare against the number on the right side of the comparison. Note that if something like 'A' ever becomes a valid answer, then this query will fail with ORA-01722: invalid number.
>
>
Obviously "A"."ANSWER" is not a number colmun, problably varchar, so use something like
A.ANSWER != "0"
or
A.ANSWER > "0"Yes answer column is varchar2 but can you type A.ANSWER > "0" as a predicate? I mean, you can not varchar > varchar, can you?
Of course you can use inequality predicates on a varcahr column. Is the string A greater than the string B?
Based on the explain plan, your statistics might be a little off, not hugely so. The esitmates are at least in the right order of magnitude based on what you have posted so far.
What indexes, if any, are available on the two tables?
John -
InvocationTargetException at Tomcat Startup
I am seeing the following error appear in my catalina log after starting Tomcat on Red Hat Linux 8.0 using jdk 1.4.1...
I am able to run servlets and JSP pages from the browser as well as within my application but would like to know more about this error .. I'd like to resolve it. Any feedback would be appreciated. Thanks.
Nov 28, 2003 4:42:09 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1581)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3568)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:815)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1340)
... 43 moreWell I can offer a few, some I don't remember...
I know that at one point I had defined an applicaton context in my server.xml file and later commented it out. But I don't see that having a relationship to this Invocation error..
Other changes include at some point removing an entire web application directory, with its associated web.xml from out of the webapps dir. Maybe some of the settings there were causing a problem.. -
Class not found for Startup servlet
I have deployed a war file under weblogic 7. The application has some startup servlets,
which are failing to load during startup. It returns the following error messages
for each servlet
####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer> <Thread-8>
<kernel identity> <> <101249> <[ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet for servlet
StartupTSContentDaemonServlet could not be loaded because the requested class
was not found in the classpath D:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerces2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
java.lang.UnsupportedClassVersionError: com/abc/servlets/startup/StartupTSContentDaemonServlet
(Unsupported major.minor version 48.0)>
####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer> <Thread-8>
<kernel identity> <> <101216> <Servlet: "StartupTSContentDaemonServlet" failed
to preload on startup in webapp: "abcApps">
javax.servlet.ServletException: [ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet for servlet
StartupTSContentDaemonServlet could not be loaded because the requested class
was not found in the classpath D:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerces2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
java.lang.UnsupportedClassVersionError: com/abc/servlets/startup/StartupTSContentDaemonServlet
(Unsupported major.minor version 48.0)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:785)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2763)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2708)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2681)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:552)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
at java.lang.Thread.run(Thread.java:479)
When i look into the directories weblogic created after deployment, there is a
cls2372.jar at 1 level above the web-inf folder and it has all the servlets in
the correct package structure i.e. com/abc/servlets/startup
Any idea on why this is happening or what i am doing wrong?also posting to servlet newsgroup.
"Ram" <[email protected]> wrote in message
news:[email protected]...
>
I have deployed a war file under weblogic 7. The application has somestartup servlets,
which are failing to load during startup. It returns the following errormessages
for each servlet
####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer><Thread-8>
<kernel identity> <> <101249><[ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet forservlet
StartupTSContentDaemonServlet could not be loaded because the requestedclass
was not found in the classpathD:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea
\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381
\jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAp
pServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.j
ar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApp
s_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.
\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerc
es2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApp
s_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\ab
cdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF
\lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdel
ete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
java.lang.UnsupportedClassVersionError:com/abc/servlets/startup/StartupTSContentDaemonServlet
(Unsupported major.minor version 48.0)>
####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer><Thread-8>
<kernel identity> <> <101216> <Servlet: "StartupTSContentDaemonServlet"failed
to preload on startup in webapp: "abcApps">
javax.servlet.ServletException:[ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet forservlet
StartupTSContentDaemonServlet could not be loaded because the requestedclass
was not found in the classpathD:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea
\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381
\jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAp
pServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.j
ar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApp
s_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.
\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerc
es2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApp
s_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\ab
cdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF
\lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdel
ete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
java.lang.UnsupportedClassVersionError:com/abc/servlets/startup/StartupTSContentDaemonServlet
(Unsupported major.minor version 48.0)
atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:785)
atweblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:2763)
atweblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:2708)
atweblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServle
tContext.java:2681)
atweblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:552)
atweblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:744)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
at java.lang.Thread.run(Thread.java:479)
When i look into the directories weblogic created after deployment, thereis a
cls2372.jar at 1 level above the web-inf folder and it has all theservlets in
the correct package structure i.e. com/abc/servlets/startup
Any idea on why this is happening or what i am doing wrong? -
Tomcat 4 as service plus invoke servlet on startup
Hi all. My two questions are as follows, any feedback is much appreciated.
1st)
I wish to run tomcat as a service where it will start automatically on startup plus you can restart it from the win 2000 service console. I have followed the advice on the following link http://www.prabhums.org/weblogs/?postid=237 which places an entry into the service console but doesn't start or stop tomcat as required.
2nd)
On tomcat startup I wish to invoke a servlet when the service starts. Where would I config this and any parameters etc? web.xml?
Thanks in advance
TasIt's very simple to have a servlet startup. Just use the load-on-startup element in your wbe.xml when you define the servlet.
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.kcole.mypackage.MyServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>Use a different number. I believe the numbers indicate order of startup.
We use them to mainly to start processes/threads that run at an interval, like a TimerTask for example. We use them for things like setting up our custom connection pool and setting up jobs such as checking directories for files to import, etc.
As to what the request and response objects contain, I don't think there are any. The servlet spec doesn't say regarding this when using the load-on-startup. It runs the init() method.
Karl -
Urgent!!!!!!!!!!Calling a servlet setting cookie
Hi,
The following is the complete picture of my problem. I am having a simple java servlet program in my domino server. (regarding the set-up's for executing the servlet program in the domino server....all are through...no problem over there...every thing is done, as per the guidence in the domino administration help).
I want to contact my above said servlet program (in my domino server), from my simple java program (in my client machine). To contact the servlet program from my client machine, i am using the cookie generated by the BROWSER (Internet Explorer), as the entry in to the domino server. But still the servlet program is not getting executed.
As far As the servlet execution from the browser ("http://192.168.10.12:8001/servlet/testing"), the servlet program is getting executed. But If I get the same cookie (DomAuthSessID) from the browser, using the "alert(javascript:document.cookie)"......and try to call the servlet from my java program, the servlet is not getting executed....could u pl. advice me for the above problem.
Thanks and Regards
Subha
Java program for ur reference:(client machine)
import java.io.*;
import java.net.*;
public class authen
public static void main(String args[]) throws Exception
try
HttpURLConnection urlconnection = null;
URL serverURL = new URL("http://192.168.10.55:8001/servlet/testing");
urlconnection= (HttpURLConnection)serverURL.openConnection();
urlconnection.setDoOutput(true);
urlconnection.setRequestMethod("POST");
urlconnection.setFollowRedirects(true);
urlconnection.setRequestProperty("Connection", "Keep-Alive");
urlconnection.setRequestProperty("DomAuthSessID","AAE228AB68335546B277E9B375412A8A");
urlconnection.setDoOutput(true);
urlconnection.setDoInput(true);
urlconnection.setUseCaches(false);
urlconnection.setAllowUserInteraction(true);
urlconnection.connect();
catch (Exception e)
e.printStackTrace();
Hope, the way I have called my servlet program "testing" from my client machine is correct.
SERVLET PROGRAM (Which resides in the domino server)
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorldExample extends HttpServlet
public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException
System.out.println("####");
System.out.println("### DOMINO AUTHENTICATION ####");
System.out.println("####");
public void doPost(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse) throws ServletException, IOException
System.out.println("####");
System.out.println("### DOMINO AUTHENTICATION ####");
System.out.println("####");
In the servlet.properties file, i have documented as,
# HelloWorldExample properties
servlet.testing.code=HelloWorldExample
servlets.startup=testingTry to replace urlconnection.setRequestProperty
("DomAuthSessID","AAE228AB68335546B277E9B375412A8A");with urlconnection.setRequestProperty
("Cookie","DomAuthSessID=AAE228AB68335546B277E9B375412A8A");Let me know if this solves your problem
BG -
Exceptions details : java.lang.reflect.InvocationTargetException
I have set up a web service.
Development environment:
1 java 5.0
2 jwsdp 2.0
3 Java system application server 9.0
I set up the web service by following these steps:
1 write endpoint application source code
2 write build file and build properties.
3 use asant command compile the source code (successfully)
4 use "asant generate-runtime-artifacts" generate web service artifacts(successfully)
5 use "asant pkg-war" to package war file. (successfully)
6 use "asant deploy-app " to deploy the web service. (successfully)
So, I can find my webservice in administration console. I click the test button, it pop up a webpage, in which I can input parameters for my web method.
After inputting all the parameters, I clicked the button to invock my web method. But some exceptions occured.
Exceptions details : java.lang.reflect.InvocationTargetException
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:311) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:106) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:284) ... 28 more Caused by: javax.xml.ws.soap.SOAPFaultException: Unknown fault type:class java.lang.NoClassDefFoundError at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:86) at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(SOAPXMLDecoder.java:211) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:540) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:260) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139) at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86) at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174) at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108) at $Proxy76.getAdslPortStatus(Unknown Source) ... 33 more
Anybody can give me a clue? Thank you very much.
Message was edited by:
Flashget
Message was edited by:
Flashgeti to have the same errors which u got sir, if u find any answer please send it to me
[email protected]
regards
hari krishna -
!!!Loading Servlets for the first time!!!
Whenever I first start weblogic and I hit a servlet for the first time there
is a long initialization period. My servlet uses a ton of other classes
which is the reason for the lag. Once it is hit for the fist time, every
subsequent hit is very fast. This I believe is due to the fact that all of
the other dependent classes are loaded into Weblogic's JVM.
My first solution to this problem was to use weblogic's build in servlet
startup class which loads the servlet and calls its init method. This does
not work because much of my initialization is done in other servlet methods.
The servlet itself is initialized but all of its dependent classes are not.
My second solution was to preload all of the dependent classes when the
server starts up. So when the first user hits the a servlet they do not have
to wait 30+ seconds. Therefore I also tried implementing a T3Client of my
own which extends T3StartupDef. This class takes in as args all of the
dependent classes and loads each one into memory. But this seems not to work
because I JVM is garbage collecting all of the classes initialized.
Has anyone out there encountered this problem.
Thanks much,
-JimHow often does this servlet have to be reloaded? If your WL server isn't
being bounced, then only one server per WL bounce will ever see this
problem; a simple solution would be for the support team to just invoke that
servlet on those occasions when the server bounces.
"James Lobraco" <[email protected]> wrote in message
news:3986ffe2$[email protected]..
Whenever I first start weblogic and I hit a servlet for the first timethere
is a long initialization period. My servlet uses a ton of other classes
which is the reason for the lag. Once it is hit for the fist time, every
subsequent hit is very fast. This I believe is due to the fact that all of
the other dependent classes are loaded into Weblogic's JVM.
My first solution to this problem was to use weblogic's build in servlet
startup class which loads the servlet and calls its init method. This does
not work because much of my initialization is done in other servletmethods.
The servlet itself is initialized but all of its dependent classes arenot.
>
My second solution was to preload all of the dependent classes when the
server starts up. So when the first user hits the a servlet they do nothave
to wait 30+ seconds. Therefore I also tried implementing a T3Client of my
own which extends T3StartupDef. This class takes in as args all of the
dependent classes and loads each one into memory. But this seems not towork
because I JVM is garbage collecting all of the classes initialized.
Has anyone out there encountered this problem.
Thanks much,
-Jim -
Using ejb service from a servlet in Weblogic 6.0sp1
anybody had sucess using ejb service from a servlet in Weblogic
6.0sp1 ?
It worked in Weblogic 6.0. But in 6.0sp1, the servlet startup always
return me "ClassCastException"
when narrowing a lookup of an ejbHome to the specific class.
Using this same ejb service from a standalone Java client wotked
fine in both versions.
Any body has aby clue ?
Help greatly appreciated
hyliu
The ejbc'ed jar needs to be in the CLASSPATH of the servlet server.
Gene
"Haiyang Liu" <[email protected]> wrote in message news:3ab2670c$[email protected]..
>
> anybody had sucess using ejb service from a servlet in Weblogic
> 6.0sp1 ?
>
> It worked in Weblogic 6.0. But in 6.0sp1, the servlet startup always
> return me "ClassCastException"
> when narrowing a lookup of an ejbHome to the specific class.
> Using this same ejb service from a standalone Java client wotked
> fine in both versions.
>
> Any body has aby clue ?
>
> Help greatly appreciated
>
> hyliu
>
-
Convert existing servlet into portlet
Hi
We have a set of Java servlets running on apache and jserv and not using Portal. My task is to be able to convert these into Portal.All of the existing servlets are extends/use our existing set of classes. They display a list of rows in a table as HTML with a URL pointing back to the same servlet or different servlet based on logic, with set of parameter. With my current setup (all on a Win2000 system), I have installed the JPDK samples and it is working fine, but have now got stuck in applying the concepts to my own existing servlets. So can you help me how can i convert an existing Java servlet into Portal?
First i tried the "how to build your own java portal exercise" and it runs fine. But when i tried to run simple servlet to convert into portlet, i got the following error. I am really confuse about Renderer. Is it nessessary to make Renderer or use Default Renderer? I will really thankful to you if you give me some idea.
I changed the following in to conf/jserv properties.
1. set the " <showPage class="AgeServlet"/> " in provider.xml
2. in zone property
servlet.AgeServlet.code=oracle.portal.provider.v1.http.HttpProvider
servlet.AgeServlet.initArgs=provider_root=C:\MyProvider,sessiontimeout=1800000,debuglevel=1
3. In jserv property
wrapper.classpath=C:\MyProvider\MyClasses
Where i put my AgeServlet.class
4.Stop and Start the Oracle HTTP Server.
When i try to run url(http://host.domain:port/servlet/AgeServlet) it gives me following error.
Error!
javax.servlet.ServletException: Unable to initialize new provider instance: java.lang.reflect.InvocationTargetException
My servlet is
// JDK1.2.2 module
import java.io.*;
import java.util.*;
//JSDK modules
import javax.servlet.*;
import javax.servlet.http.*;
* class to promt for the year of birth
* and calculate the age.
* @author Vipul Patel [email protected]
public class AgeServlet extends HttpServlet {
* method to call doPost
* @param request
* @param response
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
doPost(request, response);
* method to call calculateAge
* @param request
* @param response
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
getAge(request, response);
* method for display html form for get year
* and calculate the age
* @param request
* @param response
public void getAge(HttpServletRequest request,
HttpServletResponse response) {
response.setContentType("text/html");
PrintWriter out = null;
try {
out = response.getWriter();
} catch(IOException ex) {
ex.printStackTrace();
String age = calculateAge(request, response);
// create and send html form to user
out.println("<html>");
out.println("<body>");
out.println("<title>Age calculation</title>");
out.println("<form action=\"/servlets/AgeServlet\" method=get>");
out.println(age + "<br>");
out.println("Enter the Year of Birth<input type=\"text\" name=ageyear><br>");
out.println("<input type=submit value=submit>");
out.println("<input type=\"reset\" value=\"reset\">");
out.println(" </form>");
out.println("</body>");
out.println("</html> ");
* calculate the age
* @param request
* @param response
* @return age
public String calculateAge(HttpServletRequest request,
HttpServletResponse response) {
String age= "";
String year="";
int curr_year;
int count_year = 0;
year = request.getParameter("ageyear");
Date date = new Date();
String today_date = date.toString();
today_date = today_date.substring(24,29);
curr_year = Integer.parseInt(today_date);
if((year != null) && (!year.equals("")) ) {
int get_year = Integer.parseInt(year);
if(get_year > curr_year) {
age = "You enterd wrong entry!!!!!";
} else {
for (int i=get_year; i<=curr_year; i++) {
count_year++;
age ="Your age is: " + String.valueOf(count_year);
} else {
age = "Enter the year of Birth";
return age;
Thank you very much!!
Vipul Patel
nullHi
Now i changed my code and it display my contents on broweser. But when i submit the form i cannot able to forward my request to same page. Any suggestion please.
Thanks.
changed code
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import oracle.portal.provider.v1.*;
import oracle.portal.provider.v1.http.*;
public class AgeServlet extends HttpServlet {
* Initialize global variables
public void init(ServletConfig config) throws ServletException {
super.init(config);
* Process the HTTP Post request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
doGet(request,response);
* Get Servlet information
* @return java.lang.String
public String getServletInfo() {
return "AgeServlet Information";
* Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
PortletRenderRequest pr = (PortletRenderRequest)request.getAttribute(HttpProvider.PORTLET_RENDER_REQUEST);
try {
renderShow(pr);
} catch (Exception e) {
private void renderShow(PortletRenderRequest pr)
throws PortletException {
try {
/*HttpServletRequest request = (HttpServletRequest)
pr.getAttribute(HttpProvider.SERVLET_REQUEST);
HttpServletResponse response = (HttpServletResponse)
pr.getAttribute(HttpProvider.SERVLET_RESPONSE); */
PrintWriter out = pr.getWriter();
pr.setContentType("text/html; charset=WINDOWS-1252");
pr.setContentType("text/html");
//PrintWriter out = response.getWriter();
// create and send html form to user
out.println("<html>");
out.println("<body>");
out.println("<title>Age calculation</title>");
out.println("<form method=\"POST\" action=\""+HttpPortletRendererUtil.htmlFormActionLink(pr,PortletRendererUtil.PAGE_LINK) +"\">");
HttpPortletRendererUtil.htmlFormHiddenFields(pr,PortletRendererUtil.PAGE_LINK);
String ageParam = HttpPortletRendererUtil.portletParameter(pr, "ageyear");
String submitParam = HttpPortletRendererUtil.portletParameter(pr, "mySubmit");
out.println("Enter the Year of Birth<input type=\"text\" name=\" + ageParam + \"><br>");
out.println("<input type=\"submit\" name=\" + submitParam + \" value=\"submit\">");
out.println(" </form>");
out.println("</body>");
out.println("</html> ");
if (pr.getParameter(submitParam) != null ) {
out.println("You are "+ calculateAge(pr,out));
} catch (Exception e) {
* calculate the age
* @param request
* @param response
* @return age
public String calculateAge(PortletRenderRequest pr, PrintWriter out) {
String age= "";
String year="";
int curr_year;
int count_year = 0;
year = pr.getParameter("ageParam");
Calendar rightNow = Calendar.getInstance();
curr_year = rightNow.get(Calendar.YEAR);
if((year != null) && (!year.equals(""))) {
int get_year = Integer.parseInt(year);
if(get_year > curr_year) {
age = "You enterd wrong entry!!!!!";
} else {
count_year = curr_year - get_year;
age = String.valueOf(count_year);
} else {
age = "Enter the year of Birth";
return age;
Error message
Wed, 08 Aug 2001 00:04:55 GMT
No DAD configuration Found
DAD name:
PROCEDURE : !null.wwpob_page.show
URL : http://ntserver:80/pls/null/!null.wwpob_page.show?_pageid=null
PARAMETERS :
===========
ENVIRONMENT:
============
PLSQL_GATEWAY=WebDb
GATEWAY_IVERSION=2
SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24
GATEWAY_INTERFACE=CGI/1.1
SERVER_PORT=80
SERVER_NAME=ntserver
REQUEST_METHOD=POST
QUERY_STRING=_pageid=null
PATH_INFO=/null/!null.wwpob_page.show
SCRIPT_NAME=/pls
REMOTE_HOST=
REMOTE_ADDR=172.16.0.27
SERVER_P ROTOCOL=HTTP/1.1
REQUEST_PROTOCOL=HTTP
REMOTE_USER=
HTTP_CONTENT_LENGTH=52
HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) RPT-HTTPClient/0.3-2S
HTTP_HOST=ntserver
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_ENCODING=gzip, deflate, x-gzip, compress, x-compress
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_ACCEPT_CHARSET=
HTTP_COOKIE=portal30=3.0,en,us,AMERICA,7044103775205D94AE891C2EB8EC88ECB9671CC56E5524FFBAE3419299B938639A5159BD1DF60D6A57362DA77173DED757521073FAB521072C6E83A9EDD32D5DD1E3859A48A75
9C1537468FDD6B2AF6C36692DA501614F9B;
portal30_sso=3.0,en,us,AMERICA,C62FD25D23E9A2D66948EDCD463B2CCD50050AD8D02B7EF55A61DBC14E253387C44B1A5D9668CC141CE38DD4455FEF3D28188817CC1678D8F0C1F642C95CB0E34406EFC41D4A36E1A2915
182A5FC121377E258FA76480763
Authorization=
HTTP_IF_MODIFIED_SINCE=
HTTP_REFERER=
null -
Different Classloader for JSP, Servlets?
Hi!
Does the WL5-JSP-servlet use an other classloader then the other
servlets??
I've previous posted an article with the subject "JSP - Servlet - Static
Code in Classes".
I will try to describe my problem better:
At server startup I pass information to my startup servlet, for example
the user and pw for our connection pool. The startup servlet instanciates
the class Global which creates a db-pool with the user and pw getting
from
the startup-servlet.
startup-servlet {
public void init(ServletConfig config)
Global.init("user","pw");
The class Global looks like this:
class Global {
static {
// register jdbc driver
// store file informations
static public init(string, string) {
// init the connection pool with user and pw
static public getConnection() {
// returns connection from pool
All our other servlets then just use the methode Global.getConnection()
and other methods from the class Global.
All servlets works perfect and can access the db-pool.
When a jsp-file is called which also uses the methode
Global.getConnection(), a new Instance of the class Global will be made.
In order to init all values again, I would have to call the
Global.init(user, pw) methode again.
So my question is: Why does the jsp file causes a new instance of the
class Global?
Does the WL5-JSP-servlet use an other classloader then the other
servlets??
I am seeing the problem is sp3. I can't use sp4 becuase form based
authentication, FBA, was broken. I can only hope that FBA will be
re-fixed in sp5.
Kumar Allamraju wrote:
>
> If you are seeing this problem in SP4, yes this is a regression in SP4 &
> SP5. We are already aware of this
> problem. SP5 will be out in a week or so. But this fix won't be available
> in SP5. Follow-up with
> support.
>
> --
> Kumar
>
> "Bryon G. Rigg" wrote:
>
> > I have an application which has a servlet that controls page navigation
> > via an xml file. The servlet class is located beneath the
> > WEB-INF/classes as is the xml file. When I have weblogic pointing to
> > the app directory, my servlet finds the xml file, using the
> > Class.getResourceAsStream() method, without a hitch. But when I
> > package everything up into a war file, and point weblogic at the war
> > file instead, the servlet can not locate the xml file.
> >
> > What gives? Is there some kind of brain-dead classloader being used
> > for war files versus a normal classloader used for directories? Any
> > workarounds? And when will sp5 be released? I have been hearing a
> > week or two for weeks.
[bryon.vcf]
-
Starting up BC4J components at 9IAS startup
Hi,
How to make the BC4J files (jsp files, java and xml files used for creating views and entities) deployed on 9ias to start up when 9ias is started.
That is to make access to these jsp pages faster
when called for the first time.
( In the servlet case, it is simple, one just add the servlet name to the file jserv.properties by calling the servlet.startup method).
Thank you
nullthanks.
but the problem is that I want my application to go on its own in the auto start mode. now I only have 2 options.
firstly I will have to use the windows api for my task.
but that is not possible because I am using java. second option is that I will have to make some arrangement wherein my application goes into auto startup mode.
please suggest some solution -
How do I use toplink with Spring 2.5 and oc4j 10.1.2?
Our existing java server environment is limited to Oc4j 10.1.2 due to being tied to Oracle Forms.
We've added a java 6 jdk to the machine and linked it to a specific container to examine some newer java features since this version of the application server only comes with java 1.4.2.
Does anyone have some configuration steps for getting toplink essentials and spring to work with oc4j 10.1.2? Even with oc4j 10.1.3 in jdev 10.1.3.4 I'm having problems trying to figure out what needs placed in the persistence.xml file verses what needs placed in the spring-beans.xml file.
I'm trying to either use the J2SE option of keeping the connection information in the persistence.xml file (which doesn't work) - it tries to connect to //localhost:1521/orcl. If I try to define a datasource within Spring's xml file, I'm not sure how to tie that into the persistence.xml file. Could I use the oc4j 10.1.2 container provided datasource?
It seems like I'm at a loss as to how to get this working. If you'd like me to post some files, I can do that later on today when I get back to work.
The configuration that I'm trying to do is based on a modified workspace from an ibm developerworks article with websphere, mixing in the ideas from a JPA with Spring 2.0 article from Mike Keith and Rod Johnson. (That article goes pretty far in the configuration information but never provided an example to download...)
Any help appreciated.
Eric (hbg, pa)I'm still at a loss with this. Rather than worry about the older version, for now, I just want to see JPA in action. So, I've decided on just running the Spring 2.5.6 petclinic example out of the samples folder. When I try to do this, after only tweaking the web.xml to use the applicationContext-jpa.xml file, the application does not initialize properly. Here's the stack trace I get:
Target URL -- http://192.168.0.2:8988/petclinic/index.jsp
09/05/11 23:26:05 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized
WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\connector.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/connector.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\jta.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\persistence.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/persistence.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\toplink-essentials.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/toplink/jlib/toplink-essentials.jar (from <code-source> in /C:/jdev10134/jdev/system/oracle.j2ee.10.1.3.42.70/embedded-oc4j/config/server.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
09/05/11 23:26:24 log4j: Parsing for [root] with value=[INFO, stdout].
09/05/11 23:26:24 log4j: Level token is [INFO].
09/05/11 23:26:24 log4j: Category root set to INFO
09/05/11 23:26:24 log4j: Parsing appender named "stdout".
09/05/11 23:26:24 log4j: Parsing layout options for "stdout".
09/05/11 23:26:24 log4j: Setting property [conversionPattern] to [%d %p [%c] - <%m>%n].
09/05/11 23:26:24 log4j: End of parsing for "stdout".
09/05/11 23:26:24 log4j: Parsed "stdout" options.
09/05/11 23:26:24 log4j: Parsing for [org.springframework.samples.petclinic.aspects] with value=[DEBUG].
09/05/11 23:26:24 log4j: Level token is [DEBUG].
09/05/11 23:26:24 log4j: Category org.springframework.samples.petclinic.aspects set to DEBUG
09/05/11 23:26:24 log4j: Handling log4j.additivity.org.springframework.samples.petclinic.aspects=[null]
09/05/11 23:26:24 log4j: Finished configuring.
09/05/11 23:26:24 log4j: Reading configuration from URL file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/log4j.properties
09/05/11 23:26:24 log4j: Parsing for [root] with value=[INFO, stdout].
09/05/11 23:26:24 log4j: Level token is [INFO].
09/05/11 23:26:24 log4j: Category root set to INFO
09/05/11 23:26:24 log4j: Parsing appender named "stdout".
09/05/11 23:26:24 log4j: Parsing layout options for "stdout".
09/05/11 23:26:24 log4j: Setting property [conversionPattern] to [%d %p [%c] - <%m>%n].
09/05/11 23:26:24 log4j: End of parsing for "stdout".
09/05/11 23:26:24 log4j: Parsed "stdout" options.
09/05/11 23:26:24 log4j: Parsing for [org.springframework.samples.petclinic.aspects] with value=[DEBUG].
09/05/11 23:26:24 log4j: Level token is [DEBUG].
09/05/11 23:26:24 log4j: Category org.springframework.samples.petclinic.aspects set to DEBUG
09/05/11 23:26:24 log4j: Handling log4j.additivity.org.springframework.samples.petclinic.aspects=[null]
09/05/11 23:26:24 log4j: Finished configuring.
2009-05-11 23:26:24,593 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization started>
2009-05-11 23:26:24,687 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@eeb406: display name [Root WebApplicationContext]; startup date [Mon May 11 23:26:24 EDT 2009]; root of context hierarchy>
2009-05-11 23:26:24,828 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext-jpa.xml]>
2009-05-11 23:26:25,281 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@eeb406]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b>
2009-05-11 23:26:25,734 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - <Loading properties file from class path resource [jdbc.properties]>
2009-05-11 23:26:25,796 INFO [org.springframework.context.weaving.DefaultContextLoadTimeWeaver] - <Determined server-specific load-time weaver: org.springframework.instrument.classloading.oc4j.OC4JLoadTimeWeaver>
2009-05-11 23:26:28,296 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter#c25ae3' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
2009-05-11 23:26:28,359 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'dataSource' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
2009-05-11 23:26:28,437 INFO [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] - <Building JPA container EntityManagerFactory for persistence unit 'PetClinic'>
2009-05-11 23:26:28,468 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
2009-05-11 23:26:28,562 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b: defining beans [org.springframework.context.weaving.AspectJWeavingEnabler#0,org.springframework.context.config.internalBeanConfigurerAspect,loadTimeWeaver,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,entityManagerFactory,transactionManager,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.transaction.config.internalTransactionAspect,org.springframework.samples.petclinic.aspects.UsageLogAspect#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,clinic]; root of factory hierarchy>
2009-05-11 23:26:29,671 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization completed in 5078 ms>
2009-05-11 23:26:29,734 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization started>
2009-05-11 23:26:29,734 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@c00e55: display name [WebApplicationContext for namespace 'petclinic-servlet']; startup date [Mon May 11 23:26:29 EDT 2009]; parent: org.springframework.web.context.support.XmlWebApplicationContext@eeb406>
2009-05-11 23:26:29,734 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [WEB-INF/petclinic-servlet.xml]>
2009-05-11 23:26:30,171 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@c00e55]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1c5543b>
2009-05-11 23:26:30,375 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1c5543b: defining beans [addOwnerForm,addPetForm,addVisitForm,clinicController,editOwnerForm,editPetForm,findOwnersForm,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b>
2009-05-11 23:26:31,828 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization completed in 2094 ms>
May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic.transaction
WARNING: PersistenceUnitInfo PetClinic has transactionType RESOURCE_LOCAL and therefore jtaDataSource will be ignored
May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
INFO: TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
INFO: Server: unknown
May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic.connection
CONFIG: connecting(DatabaseLogin(
platform=>EssentialsHSQLPlatformWithNativeSequence
user name=> ""
connector=>JNDIConnector datasource name=>null
May 11, 2009 11:27:03 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
SEVERE:
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
Error Code: 17002
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:451)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:616)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:282)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:392)
at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:320)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:220)
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$before$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
at org.springframework.samples.petclinic.jpa.EntityManagerClinic.getVets(EntityManagerClinic.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:138)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy19.getVets(Unknown Source)
at org.springframework.samples.petclinic.web.ClinicController.vetsHandler(ClinicController.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:287)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:114)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1361)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:441)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:336)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:286)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:159)
at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1398)
at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
at oracle.j2ee.connector.ConnectionPoolImpl$NonePoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1211)
at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
at oracle.oc4j.sql.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:45)
at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1596)
at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1541)
at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1486)
at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
... 60 moreAny ideas? I'd really like to see JPA, Spring and oc4j working together?
Thanks,
Eric -
Why 9ias WIRELESS seems to be a PANDORA BOX ??
hi:
In release notes of my 9ias downloaded documents it says that i have 9ias 1.0.2.2.2
I've installed Enterprise Edition but i've choose just to configure after instalation forms and reports services.
What the hell i need to put 9ias Wireless working ?
I've follow the docs that say that i would have to configure jserv.conf, httpd.conf, jserv.properties, zones.properties, etc! I've configured them well. But i dont have the WIRELESS SCHEMA created on the database. My database is Oracle 9i and OS os Win2k Server.
How can I invoke the Wizard or run the scripts for my Wireless Schema?
I also denoted that technet as a new version called 1.0.2.2.2a (look there's a letter in the end... may be it means that was built in the (a)FTERNOON and the 1.0.2.2.2 in the morning...)
I would like to know WHAT DO I REALLY NEED to put 9ias WE working (acka:portal-to-go ... may be should be called portal-to-leave)
I'm desperatelly needding help!
By the way, the thing that i hate most in Oracle is the null documentation! sorry Oracle guys... it's true. jdev, 9ias, etc lacks of docs in some important areas!
Thankx in advance.
NOTES:
My http server is in 9ias home ISUITES
My oracle9_home deafault http server is de-activated (as recommended)MY SERVER INFO'S:
windows 2000 server
oracle 9i c:\oracle\ora99
oracle 9ias c:\oracle\isuites (1.0.2.2.1)
MY CONFIGURATION FILES INFORMATION
httpd.conf
<IfModule mod_alias.c>
Alias /jservdocs/ "C:\ORACLE\iSuites\Apache/Jserv/docs/"
Alias /soapdocs/ "C:\ORACLE\iSuites/soap/"
Alias /icons/ "C:\ORACLE\iSuites\Apache/Apache/icons/"
# ALIAS FOR WIRELESS
Alias /portal/ "C:\oracle\iSuites\panama/server/portal/"
Alias /papz/ "C:\oracle\iSuites\panama/server/papz/"
Alias /ptgdoc/ "C:\oracle\iSuites\panama/doc/javadoc/"
jserv.conf
# Mount point for Servlet zones
ApJServMount /servlets /root
ApJServMount /servlet /root
ApJServMount /dms1 /root
ApJServMount /ptg /root
jserv.properties
wrapper.classpath=C:\ORACLE\iSuites\Apache\jdk\lib\tools.jar
# WIRELESS after tools.jar as sugested in doc A86701
wrapper.classpath=C:\ORACLE\iSuites\panama\server\classes
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\panama.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\panama_core.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\panama_portal.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\panama_papz.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\client.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\server.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\caboshare-opt.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\marlin-opt.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\ocelot-opt.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\share-opt-1_1_7.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\tecate-opt.zip
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\regexp.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\sax2.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\activation.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\mail.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\ldap.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\ldapbp.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\providerutil.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\sdoapi101.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\sdovis.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\MapQuestX.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\MQJavaCore.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\RoutingJServerClient.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\jai_codec.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\jai_core.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\jpeg_codec.jar
wrapper.classpath=C:\ORACLE\iSuites\panama\lib\ordimimg.jar
# end WIRELESS
wrapper.classpath=C:\ORACLE\iSuites\Apache\Jserv\ApacheJServ.jar
wrapper.classpath=C:\ORACLE\iSuites\Apache\Jserv\dms2Server.jar
wrapper.classpath=C:\ORACLE\iSuites\Apache\Jsdk\lib\jsdk.jar
zone.properties
# List of Repositories
repositories=C:\ORACLE\iSuites\Apache\Jserv\servlets,C:\ORACLE\iSuites\panama\server\portal,C:\ORACLE\iSuites\panama\server\papz
# Startup Servlets
servlets.startup=oracle.panama.ParmImpl
# Servlet Aliases
servlet.rm.code=oracle.panama.ParmImpl
If anyone can help... please help. -
Accessing an ejb statful session from webserivce problem need help
hi guys am working on simple example here is creating an entity bean that reference to table on my database and then create my session bean from that entity bean and am when am trying to access this stateful session bean from web service at the beginning it runs and when i click on any of the function i got the same exception am sorry for my lack of knowledge but i just don`t know what wrong here are my code
entity bean :/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
package doc;
import java.io.Serializable;
import java.math.BigInteger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.transaction.UserTransaction;
* @author kriem
@Entity
@Table(name = "DOCTOR")
@NamedQueries({@NamedQuery(name = "Doctor.findByDocFname",
query = "SELECT d FROM Doctor d WHERE d.docFname = :docFname"),
@NamedQuery(name = "Doctor.findByDocId",
query = "SELECT d FROM Doctor d WHERE d.docId = :docId"),
@NamedQuery(name = "Doctor.findByDocLname",
query = "SELECT d FROM Doctor d WHERE d.docLname = :docLname"),
@NamedQuery(name = "Doctor.findByDocPhone",
query = "SELECT d FROM Doctor d WHERE d.docPhone = :docPhone"),
@NamedQuery(name = "Doctor.findByDocAddress",
query = "SELECT d FROM Doctor d WHERE d.docAddress = :docAddress"),
@NamedQuery(name = "Doctor.findByDocMobileNo",
query = "SELECT d FROM Doctor d WHERE d.docMobileNo = :docMobileNo"),
@NamedQuery(name = "Doctor.findByDocSpecialty",
query = "SELECT d FROM Doctor d WHERE d.docSpecialty = :docSpecialty"),
@NamedQuery(name = "Doctor.findByDocTitle",
query = "SELECT d FROM Doctor d WHERE d.docTitle = :docTitle")})
public class Doctor implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "DOC_FNAME", nullable = false)
private String docFname;
@Id
@Column(name = "DOC_ID", nullable = false)
private String docId;
@Column(name = "DOC_LNAME", nullable = false)
private String docLname;
@Column(name = "DOC_PHONE", nullable = false)
private BigInteger docPhone;
@Column(name = "DOC_ADDRESS", nullable = false)
private String docAddress;
@Column(name = "DOC_MOBILE_NO", nullable = false)
private BigInteger docMobileNo;
@Column(name = "DOC_SPECIALTY", nullable = false)
private String docSpecialty;
@Column(name = "DOC_TITLE", nullable = false)
private String docTitle;
public Doctor() {
public Doctor(String docId) {
this.docId = docId;
public Doctor(String docId, String docFname, String docLname, BigInteger docPhone, String docAddress, BigInteger docMobileNo, String docSpecialty, String docTitle) {
this.docId = docId;
this.docFname = docFname;
this.docLname = docLname;
this.docPhone = docPhone;
this.docAddress = docAddress;
this.docMobileNo = docMobileNo;
this.docSpecialty = docSpecialty;
this.docTitle = docTitle;
public String getDocFname() {
return docFname;
public void setDocFname(String docFname) {
this.docFname = docFname;
public String getDocId() {
return docId;
public void setDocId(String docId) {
this.docId = docId;
public String getDocLname() {
return docLname;
public void setDocLname(String docLname) {
this.docLname = docLname;
public BigInteger getDocPhone() {
return docPhone;
public void setDocPhone(BigInteger docPhone) {
this.docPhone = docPhone;
public String getDocAddress() {
return docAddress;
public void setDocAddress(String docAddress) {
this.docAddress = docAddress;
public BigInteger getDocMobileNo() {
return docMobileNo;
public void setDocMobileNo(BigInteger docMobileNo) {
this.docMobileNo = docMobileNo;
public String getDocSpecialty() {
return docSpecialty;
public void setDocSpecialty(String docSpecialty) {
this.docSpecialty = docSpecialty;
public String getDocTitle() {
return docTitle;
public void setDocTitle(String docTitle) {
this.docTitle = docTitle;
@Override
public int hashCode() {
int hash = 0;
hash += (docId != null ? docId.hashCode() : 0);
return hash;
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Doctor)) {
return false;
Doctor other = (Doctor) object;
if ((this.docId == null && other.docId != null) || (this.docId != null && !this.docId.equals(other.docId))) {
return false;
return true;
@Override
public String toString() {
return "doc.Doctor[docId=" + docId + "]";
public void persist(Object object) {
/* Add this to the deployment descriptor of this module (e.g. web.xml, ejb-jar.xml):
* <persistence-context-ref>
* <persistence-context-ref-name>persistence/LogicalName</persistence-context-ref-name>
* <persistence-unit-name>task-ejbPU</persistence-unit-name>
* </persistence-context-ref>
* <resource-ref>
* <res-ref-name>UserTransaction</res-ref-name>
* <res-type>javax.transaction.UserTransaction</res-type>
* <res-auth>Container</res-auth>
* </resource-ref> */
try {
Context ctx = new InitialContext();
UserTransaction utx = (UserTransaction) ctx.lookup("java:comp/env/UserTransaction");
utx.begin();
EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/LogicalName");
em.persist(object);
utx.commit();
} catch (Exception e) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", e);
throw new RuntimeException(e);
}doctor session bean code
* To change this template, choose Tools | Templates
* and open the template in the editor.
package doc;
import java.util.List;
import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
* @author kriem
@Stateful
public class DoctorFacade implements DoctorFacadeRemote {
@PersistenceContext
private EntityManager em;
public void create(Doctor doctor) {
em.persist(doctor);
public void edit(Doctor doctor) {
em.merge(doctor);
public void remove(Doctor doctor) {
em.remove(em.merge(doctor));
public Doctor find(Object id) {
return em.find(doc.Doctor.class, id);
public List<Doctor> findAll() {
return em.createQuery("select object(o) from Doctor as o").getResultList();
public void persist(Object object) {
em.persist(object);
}doctor remote interface :
* To change this template, choose Tools | Templates
* and open the template in the editor.
package doc;
import java.util.List;
import javax.ejb.Remote;
* @author kriem
@Remote
public interface DoctorFacadeRemote {
void create(Doctor doctor);
void edit(Doctor doctor);
void remove(Doctor doctor);
Doctor find(Object id);
List<Doctor> findAll();
public void persist(java.lang.Object object);
doctor web service code :
* To change this template, choose Tools | Templates
* and open the template in the editor.
package task;
import doc.Doctor;
import doc.DoctorFacadeRemote;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateful;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebService;
* @author kriem
@WebService(serviceName = "taskService")
@Stateful()
public class task {
@EJB
private DoctorFacadeRemote ejbRef;
// Add business logic below. (Right-click in editor and choose
// "Web Service > Add Operation"
@WebMethod(operationName = "create")
@Oneway
public void create(Doctor doctor) {
ejbRef.create(doctor);
@WebMethod(operationName = "edit")
@Oneway
public void edit(Doctor doctor) {
ejbRef.edit(doctor);
@WebMethod(operationName = "remove")
@Oneway
public void remove(Doctor doctor) {
ejbRef.remove(doctor);
@WebMethod(operationName = "find")
public Doctor find(Object id) {
return ejbRef.find(id);
@WebMethod(operationName = "findAll")
public List<Doctor> findAll() {
return ejbRef.findAll();
.............................and when i try to run for example findall method i got this
findAll Method invocation
Method parameter(s)
Type Value
Service invocation threw an exception with message : null; Refer to the server log for more details
Exceptions details : java.lang.reflect.InvocationTargetException
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:316) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy129.findAll(Unknown Source) ... 40 more Caused by: javax.xml.ws.WebServiceException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:440) at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:325) at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218) at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129) at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380) ... 2 more Caused by: javax.transaction.RollbackException: Transaction marked for rollback. at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:413) at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371) at com.sun.enterprise.distributedtx.UserTransactionImpl.commit(UserTransactionImpl.java:197) at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:436) ... 47 more knowing that this error appears to me when i try any method
am working on netbean6 and glassfishV2 for my db its oracle
guys i need any kind of help plzz...........
Edited by: marwacs on May 18, 2008 1:02 AM
Edited by: marwacs on May 18, 2008 1:04 AMhi guys am working on simple example here is creating an entity bean that reference to table on my database and then create my session bean from that entity bean and am when am trying to access this stateful session bean from web service at the beginning it runs and when i click on any of the function i got the same exception am sorry for my lack of knowledge but i just don`t know what wrong here are my code
entity bean :/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
package doc;
import java.io.Serializable;
import java.math.BigInteger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.transaction.UserTransaction;
* @author kriem
@Entity
@Table(name = "DOCTOR")
@NamedQueries({@NamedQuery(name = "Doctor.findByDocFname",
query = "SELECT d FROM Doctor d WHERE d.docFname = :docFname"),
@NamedQuery(name = "Doctor.findByDocId",
query = "SELECT d FROM Doctor d WHERE d.docId = :docId"),
@NamedQuery(name = "Doctor.findByDocLname",
query = "SELECT d FROM Doctor d WHERE d.docLname = :docLname"),
@NamedQuery(name = "Doctor.findByDocPhone",
query = "SELECT d FROM Doctor d WHERE d.docPhone = :docPhone"),
@NamedQuery(name = "Doctor.findByDocAddress",
query = "SELECT d FROM Doctor d WHERE d.docAddress = :docAddress"),
@NamedQuery(name = "Doctor.findByDocMobileNo",
query = "SELECT d FROM Doctor d WHERE d.docMobileNo = :docMobileNo"),
@NamedQuery(name = "Doctor.findByDocSpecialty",
query = "SELECT d FROM Doctor d WHERE d.docSpecialty = :docSpecialty"),
@NamedQuery(name = "Doctor.findByDocTitle",
query = "SELECT d FROM Doctor d WHERE d.docTitle = :docTitle")})
public class Doctor implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "DOC_FNAME", nullable = false)
private String docFname;
@Id
@Column(name = "DOC_ID", nullable = false)
private String docId;
@Column(name = "DOC_LNAME", nullable = false)
private String docLname;
@Column(name = "DOC_PHONE", nullable = false)
private BigInteger docPhone;
@Column(name = "DOC_ADDRESS", nullable = false)
private String docAddress;
@Column(name = "DOC_MOBILE_NO", nullable = false)
private BigInteger docMobileNo;
@Column(name = "DOC_SPECIALTY", nullable = false)
private String docSpecialty;
@Column(name = "DOC_TITLE", nullable = false)
private String docTitle;
public Doctor() {
public Doctor(String docId) {
this.docId = docId;
public Doctor(String docId, String docFname, String docLname, BigInteger docPhone, String docAddress, BigInteger docMobileNo, String docSpecialty, String docTitle) {
this.docId = docId;
this.docFname = docFname;
this.docLname = docLname;
this.docPhone = docPhone;
this.docAddress = docAddress;
this.docMobileNo = docMobileNo;
this.docSpecialty = docSpecialty;
this.docTitle = docTitle;
public String getDocFname() {
return docFname;
public void setDocFname(String docFname) {
this.docFname = docFname;
public String getDocId() {
return docId;
public void setDocId(String docId) {
this.docId = docId;
public String getDocLname() {
return docLname;
public void setDocLname(String docLname) {
this.docLname = docLname;
public BigInteger getDocPhone() {
return docPhone;
public void setDocPhone(BigInteger docPhone) {
this.docPhone = docPhone;
public String getDocAddress() {
return docAddress;
public void setDocAddress(String docAddress) {
this.docAddress = docAddress;
public BigInteger getDocMobileNo() {
return docMobileNo;
public void setDocMobileNo(BigInteger docMobileNo) {
this.docMobileNo = docMobileNo;
public String getDocSpecialty() {
return docSpecialty;
public void setDocSpecialty(String docSpecialty) {
this.docSpecialty = docSpecialty;
public String getDocTitle() {
return docTitle;
public void setDocTitle(String docTitle) {
this.docTitle = docTitle;
@Override
public int hashCode() {
int hash = 0;
hash += (docId != null ? docId.hashCode() : 0);
return hash;
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Doctor)) {
return false;
Doctor other = (Doctor) object;
if ((this.docId == null && other.docId != null) || (this.docId != null && !this.docId.equals(other.docId))) {
return false;
return true;
@Override
public String toString() {
return "doc.Doctor[docId=" + docId + "]";
public void persist(Object object) {
/* Add this to the deployment descriptor of this module (e.g. web.xml, ejb-jar.xml):
* <persistence-context-ref>
* <persistence-context-ref-name>persistence/LogicalName</persistence-context-ref-name>
* <persistence-unit-name>task-ejbPU</persistence-unit-name>
* </persistence-context-ref>
* <resource-ref>
* <res-ref-name>UserTransaction</res-ref-name>
* <res-type>javax.transaction.UserTransaction</res-type>
* <res-auth>Container</res-auth>
* </resource-ref> */
try {
Context ctx = new InitialContext();
UserTransaction utx = (UserTransaction) ctx.lookup("java:comp/env/UserTransaction");
utx.begin();
EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/LogicalName");
em.persist(object);
utx.commit();
} catch (Exception e) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", e);
throw new RuntimeException(e);
}doctor session bean code
* To change this template, choose Tools | Templates
* and open the template in the editor.
package doc;
import java.util.List;
import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
* @author kriem
@Stateful
public class DoctorFacade implements DoctorFacadeRemote {
@PersistenceContext
private EntityManager em;
public void create(Doctor doctor) {
em.persist(doctor);
public void edit(Doctor doctor) {
em.merge(doctor);
public void remove(Doctor doctor) {
em.remove(em.merge(doctor));
public Doctor find(Object id) {
return em.find(doc.Doctor.class, id);
public List<Doctor> findAll() {
return em.createQuery("select object(o) from Doctor as o").getResultList();
public void persist(Object object) {
em.persist(object);
}doctor remote interface :
* To change this template, choose Tools | Templates
* and open the template in the editor.
package doc;
import java.util.List;
import javax.ejb.Remote;
* @author kriem
@Remote
public interface DoctorFacadeRemote {
void create(Doctor doctor);
void edit(Doctor doctor);
void remove(Doctor doctor);
Doctor find(Object id);
List<Doctor> findAll();
public void persist(java.lang.Object object);
doctor web service code :
* To change this template, choose Tools | Templates
* and open the template in the editor.
package task;
import doc.Doctor;
import doc.DoctorFacadeRemote;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateful;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebService;
* @author kriem
@WebService(serviceName = "taskService")
@Stateful()
public class task {
@EJB
private DoctorFacadeRemote ejbRef;
// Add business logic below. (Right-click in editor and choose
// "Web Service > Add Operation"
@WebMethod(operationName = "create")
@Oneway
public void create(Doctor doctor) {
ejbRef.create(doctor);
@WebMethod(operationName = "edit")
@Oneway
public void edit(Doctor doctor) {
ejbRef.edit(doctor);
@WebMethod(operationName = "remove")
@Oneway
public void remove(Doctor doctor) {
ejbRef.remove(doctor);
@WebMethod(operationName = "find")
public Doctor find(Object id) {
return ejbRef.find(id);
@WebMethod(operationName = "findAll")
public List<Doctor> findAll() {
return ejbRef.findAll();
.............................and when i try to run for example findall method i got this
findAll Method invocation
Method parameter(s)
Type Value
Service invocation threw an exception with message : null; Refer to the server log for more details
Exceptions details : java.lang.reflect.InvocationTargetException
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:316) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy129.findAll(Unknown Source) ... 40 more Caused by: javax.xml.ws.WebServiceException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:440) at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:325) at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218) at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129) at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380) ... 2 more Caused by: javax.transaction.RollbackException: Transaction marked for rollback. at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:413) at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371) at com.sun.enterprise.distributedtx.UserTransactionImpl.commit(UserTransactionImpl.java:197) at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:436) ... 47 more knowing that this error appears to me when i try any method
am working on netbean6 and glassfishV2 for my db its oracle
guys i need any kind of help plzz...........
Edited by: marwacs on May 18, 2008 1:02 AM
Edited by: marwacs on May 18, 2008 1:04 AM
Maybe you are looking for
-
Lightning calendar is completely blank and I cannot add entries but Google calender is OK
I recently noticed that my calendar was not working so I checked for an update. I am now on TB 31.4.0 and Lightning 3.3.2 My normal calendar name is no longer displayed in the left pane (which was Home + Google Cal) and the one I now see is called "a
-
No Install dvd with new Macbook
Hi I had purchased a new macbook (white) Wasn't I supposed to get a install dvd with it, I checked the box and there was not one in there. Everything I have read is that there is one that comes with it... Thank you Larry.
-
ITunes won't detect eligible upgrades
iTunes refuses to upgrade Wolf Parade's 'Apologies to Queen Mary' in it's entirety. I have been able to upgrade 3 songs from the album and iTunes doesn't even list those songs as upgradable now. What is going on? The attached images show the folder w
-
Wrong Ordered Quantity in Purchase Requisition (EBAN-BSMNG)
Hello Gurus, I've a strange problem with Orderer Quantity (EBAN-BSMNG) in a purchase requisition. There are several purchase orders with reference to my PR with total quantity 2.800 pcs. My PR has quantity 3.000 pcs and also Ordered Quantity is 3.000
-
WIndows 7 SP1 "incompatible" with Boot Camp?
Today I booted Windows in Parallels and was told that SP1 was available for installation. After I installed it and rebooted, Parallels told me: "The Windows version is not supported by Boot Camp. The virtual machine is booting from a Boot Camp partit