Debug EJB Application

how am i going to debug my EJB Application
do i need to write a java program with
public static void main () {}
If it is , it will be very hard to test each and every part....
what is the best way to debug....to trace the flow ?
see the log files ??

Christian,
There are should be no difference between WD & EJB debugging.
Set breakpoints in EJB sources, make sure your EJB project is open, invoke Debug with your configuration (Remote debug) and when EJB is invoked then debugger should stop at defined points.
I don't know what goes wrong here, probably execution never reaches points you defined. Then try to set method breakpoints at business methods and EJB lifecycle methods (like ejbCreate) and then execute your code step by step in debugger.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net

Similar Messages

  • Debugging EJB : how to reach breakpoint in EJB

    I am trying to debug an application. I am unable to reach the breakpoint in my EnitityBean. Where do I find my jar or any other thing that I add to the path so that my thread reaches breakpoint in EJB.

    Please find the answer in this HOWTO:
    http://technet.oracle.com:89/ubb/Forum2/HTML/006404.html
    HOWTO's are archived on the JDeveloper Documentation page:
    http://technet.oracle.com/docs/products/jdev/listing.htm (Click on Documentation Tab)
    Thanks,
    -Roel.

  • Unable to debug any application after upgrading to Reef Shark and Update 6

    Hi,
    Since I upgraded to Reef Shark and consequently also installed the update 6 I can't access the deployment server.
    None of the applications show up in the broswer, nor does the admin-console for the server.
    I get the following exceptions in the browser window when I want to debug my application:
    javax.servlet.ServletException: com.sun.security.auth.PolicyFile
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:218)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    root cause
    java.lang.IncompatibleClassChangeError: com.sun.security.auth.PolicyFile
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
         java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Class.java:219)
         javax.security.auth.Policy$3.run(Policy.java:215)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Policy.getPolicyNoCheck(Policy.java:209)
         javax.security.auth.Policy.getPolicy(Policy.java:179)
         javax.security.auth.SubjectDomainCombiner$2.run(SubjectDomainCombiner.java:178)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:174)
         java.security.AccessControlContext.goCombiner(AccessControlContext.java:386)
         java.security.AccessControlContext.optimize(AccessControlContext.java:310)
         java.security.AccessController.checkPermission(AccessController.java:400)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
         java.lang.SecurityManager.checkRead(SecurityManager.java:863)
         java.io.File.lastModified(File.java:771)
         org.apache.naming.resources.FileDirContext$FileResourceAttributes.getLastModifiedDate(FileDirContext.java:1123)
         org.apache.naming.resources.ResourceAttributes.get(ResourceAttributes.java:706)
         org.apache.naming.resources.DirContextURLConnection.getLastModified(DirContextURLConnection.java:211)
         org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:474)
         org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:450)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:262)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)And when start the admin-console, the browser window stays empty, but this is the exception-trace from the server-log:
    [#|2005-02-12T00:21:44.890+0100|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|ApplicationDispatcher[/asadmin] Servlet.service() for servlet default threw exception
    java.lang.IncompatibleClassChangeError: com.sun.security.auth.PolicyFile
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:219)
            at javax.security.auth.Policy$3.run(Policy.java:215)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Policy.getPolicyNoCheck(Policy.java:209)
            at javax.security.auth.Policy.getPolicy(Policy.java:179)
            at javax.security.auth.SubjectDomainCombiner$2.run(SubjectDomainCombiner.java:178)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:174)
            at java.security.AccessControlContext.goCombiner(AccessControlContext.java:386)
            at java.security.AccessControlContext.optimize(AccessControlContext.java:310)
            at java.security.AccessController.checkPermission(AccessController.java:400)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
            at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
            at java.io.File.lastModified(File.java:771)
            at org.apache.naming.resources.FileDirContext$FileResourceAttributes.getCreationDate(FileDirContext.java:1097)
            at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.set(DefaultServlet.java:2399)
            at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.<init>(DefaultServlet.java:2331)
            at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:884)
            at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:470)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:748)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
            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.security.SecurityUtil$1.run(SecurityUtil.java:246)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
            at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:208)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
            at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
            at java.lang.Thread.run(Thread.java:534)
    |#]
    [#|2005-02-12T00:21:44.890+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.catalina.authenticator.FormAuthenticator|_ThreadID=14;|Unexpected error forwarding to login page
    javax.servlet.ServletException: com.sun.security.auth.PolicyFile
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:286)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
            at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:208)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
            at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
            at java.lang.Thread.run(Thread.java:534)
    |#]I have no clue as to what is causing this problem. Any help is highly appreciated.
    Iwan

    Hi Iwan,
    From JDK 1.4 the com.sun.security.auth.PolicyFile class has been deprecated and replaced by sun.security.provider.PolicyFile. Could this be the reason?
    I found this info at the following URL. Maybe this will help you in some way: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/security/jaas/spec/com/sun/security/auth/PolicyFile.html
    Cheers :-)
    Creator Team

  • Problem while running ejb application in Oracle Application Server

    I have created sample ejb application in jdeveloper with ejb 3.1 version,
    i also created jsp page which will invoke ejb client and display result,
    its running perfectly in embeded oc4j server, but while deploying application in
    Oracle application server its is giving below error message
    Javax naming exception: unable to find remote interface., i am confusing please give me sollution .

    Hi Mr.Frank,
    i have created remote interface by importing javax.ejb.Remote,
    my interface name is additionEjb
    and i defined a sample method and in my client i called like below
    additionEjb AdditionEjb = (additionEjb)context.lookup("additionEjb");
    In embeded oc4j server its running perfectly but after deploying to OAS below error throwing
    The exception is : javax.naming.NameNotFoundException: additionEjb not found
    Help me regrding this.

  • Error While Debugging the Application

    Hello,
    I am developing applications using WebDynpro  for JAVA.
    I am using NWDI 7.0.
    I am getting an error while debugging the application. When I click on debug mode in debug perspective, I am getting error message as :
    "Failed to connect to remote VM. Connection refused"
    Could any one of you help in resolving this error?
    Thanks and regards,
    Pradnya

    Hi,
    I think NWDI has nothing to do with debugging the application.
    Probably you will get some answers in WebDynpro java forum
    -Ashutosh

  • Calling a webservice from weblogic EJB Application

    Hello,
    I have a webservice running on IIS server. I created a simple java client program to call the webservice and it works fine. However, when I wrapped the same java client program as a EJB Application, I am unable to call the webservice.
    I get the following error:
    ####<Apr 3, 2007 1:59:30 AM CDT> <Info> <WebService> <CASEJBServer> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-220094> <An IOException was thrown trying to access the WSDL at the given URL.>
    And
    "java.io.FileNotFoundException: Response: '401: Unauthorized' for url: XXXXXX"
    Could you please give some simple steps as what are the JAR Files required to be included in the Weblogic Server's classpath to call the webservice.
    Thanks.

    To start off you need to make sure that your client api is in the classpath, either in your ejb or your ear or the server classpath.
    The other concern I would have is that it seems you are just not authorized to access the URL.
    - Does the WSDL require credentials? So in other words when you go to the URL are you allowed to access the WSDL without athenticating.
    - How does your Impl get created?
    MyServiceImpl service = new MyServiceImpl()
    If you are using the empty constructor then what is the wsdl endpoint in your jar file since that is the wsdl it will use. If the endpoint is localhost/xxx/xxx then you will have issues since that means your not deployed on localhost. What url is at the endpoint? Do you have access to the url from your server?
    If you are using "new MyServiceImpl(url);" then again is the wsdl locked down because in this case you will need to do somthing like http://username:[email protected]/xxx?wsdl
    Hope this helps.
    -Jesus

  • Need suggestion for a database connection issue in an EJB Application

    Hi Friends,
    I am facing some serious problem in my EJB application. Some times, my application is waiting for unknown reason while it connects to database as executing a stored procedure to get and assign a unique number to a transaction.
    This stored procedure is used to get a unique number from database and update the database with the new unique number which is incremented by previous number.
    During this waiting time, if any other transaction hits my application, then my application assigning same unique number to these 2 transactions.
    But It is not happening always. It is happening very less number of times. What should I take care of the code to not happen this? Can I implement any synchronization kind of thing here?
    If I implement synchronization kind of thing, If the first transaction gets the lock and waits for some time, then I think it will effect for subsequent transactions. Could You please suggest me on this issue?
    Thanks in Advance to All.

    Here is my datasources.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>     
         <bean id="myDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
              <property name="jndiName" value="jdbc/myDS"/>
              <property name="resourceRef" value="false"/>
         </bean>
    </beans>

  • Steps to deploy an ejb application and running an ejb client in weblogic server6.1

    steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
    if the client is an simple java application and if the client is a servlet

    Hi.
    Check out the beanManaged example that ships with WLS and read the accompanying docs. This
    is a simple EJB with a servlet that invokes it.
    Michael
    shekhar sachdev wrote:
    steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
    if the client is an simple java application and if the client is a servlet--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Common Language Runtime Debugging Services Application has generated an exception that could not be handled

    Our custom got an error when startup our .NET windows form application.
    XXXXX.exe - Common Language Runtime Debugging Services
    Application has generated an exception that could not be handled
    Process id=0x654(1620), Thread id = 0x5b0 (1456)
    Click OK to terminate the application
    Click CANCEL to debug the application
    If they click on "CANCEL" then following error message appears:
    Registered JIT debugger is not available. An attempt to launch a JIT
    debugger with the following command resulted in an error code of 0x2(2)
    Please check the computer settings
    cordbg.exe !a0x654
    Click on Retry to have the process wait while attaching a debugger
    manually.
    Click on Cancel to abort the JIT debug request
    We can not duplicate this problem in our development environment and test environment. So, we ask them to uninstall application, .NET Framework 1.1 and resinstall .NET Framework 1.1 and application. They still got same error. We further ask them to install .NET Framework SDK 1.1. They got some detail error message.
    [thread 0x840] Thread created.
    Unable to determine existence of prolog, if any
    [thread 0x188] Thread created.
    [thread 0xba8] Thread created.
    [thread 0x840] Unhandled exception generated: <0x00c0344c> <System.IO.FileNotFoundException>
     _fileName=<null>
     _fusionLog=<null>
     _className=<null>
     _exceptionMethod=<null>
     _exceptionMethodString=<null>
     _message=<0x00c04cc8> "The specified module could not be found."
     _innserException=<null>
     _helpURL=<null>
     _stackTrace=<0x00c04d2c> array with dims=[156]
     _stackTraceString=<null>
     _remoteStackTraceString=<null>
     _remoteStackIndex=0x00000000
     _HResult=0x8007007e
     _source=<null>
     _xptrs=0x00000000
     _xcode=0xe0434fd
    Thread 0x840 R 0x00000000: <unknown>
    <cordbg>
    Looks like the problem is casued by missing component. But we don't know which component missing and how to find it. Is there anybody can give us some clue what we need to check next and what tool we can use to detect missing component.
    Thanks!!!!

    I tried Dependency Walker in our development environment, looks like it's useless for .NE T Window Form application, the result I got is like bellow,
    XXXXX.EXE
        MSCOREE.DLL
            KERNEL32.DLL
            USER32.DLL
            ADVAPI32.DLL
            SHLWAPI.DLL
            URLMON.DLL
            VERSION.DLL
    I know we used some other DLL like Mirosoft Office Object Library, but MSCOREE.DLL (.NET Runtime Engine) covered them. Any other idea? Thanks!!!!

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • How to create an EJB Application in Eclipse 3.2

    hi all,
    any one suggest me, what are the external jars need to be include in eclipse to cretae the ejb applications.
    Thanx in advance.
    Bala

    The javaee.jar from the Java EE SDK should be sufficient. Just add this jar to the installed JRE (Window - Preferences - Java - Installed JREs - Edit). You need at least the javax.ejb package.
    There is a dedicated subforum for EJB stuff by the way http://forum.java.sun.com/forum.jspa?forumID=13

  • What is the directory structure of EJB applications?

    I am new to EJB program. I know that after the development is done, we package the EJB components into .jar file, and package the Web components (HTML/JSP/Servlets/JavaBeans) into .war file, and then together we package .jar file and .war file into a single .ear file. Then we just deploy the .ear file into WebLogic's application directory.
    But, before the deployment, I mean during the development, what kind of directory structure is good for us to develop our EJB, HTML, JSP, Servlets, and JavaBean components?
    Previously, when I was doing JSP/Servlets applications, my directoy structure is:
    webapps\
    --------myapplication\
    -----------------------*.html
    -----------------------images\
    ------------------------------*.jpeg, *.gif
    -----------------------jsp\
    ------------------------------*.jsp
    -----------------------WEB-INF\
    ------------------------------web.xml
    ------------------------------classes\
    -------------------------------------Java Servlets located here
    -------------------------------------beans\
    -------------------------------------------JavaBeans are located here
    Now, I am doing EJB applications, what should be the directory structure?
    Thank you very much for your help!
    Jingzhi

    I have been involved in a few enterprise applications but have not been happy with the packaging structures used and am starting a new one now and am looking for other examples.
    this is what I've used before.
    web/
    classes/
    client/
    server/
    but if a class was used in the client and server it was put under the server/ package. I feel that more separation is needed.

  • Debug EJB in JDev from JSP page

    Hi,
    I have read Oracle Note 120139.1 which has helped me debug EJB through JDeveloper. One problem is that it only works with a standard java client, not with a JSP page.
    I have tried setting "debug file as" Oracle8i EJB/CORBA and making the debug class oracle.jdeveloper.debugger.ServletMain with the jsp page as the first parameter (similar to how JDeveloper actually kicks off debugging a JSP), however this fails with the following output:
    Connecting to database service: sess_iiop://localhost:2481:IAS/etc/debugagent
    Attaching Aurora VM agent to JDeveloper: 172.27.1.104, 3539
    Aurora VM agent attached successfully.
    Cannot run: oracle.jdeveloper.debugger.ServletMain.main()
    null
    java.lang.reflect.InvocationTargetException: java.lang.ArrayIndexOutOfBoundsException: 1
    java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
    void oracle.jdeveloper.debugger.CorbaDebugAgent.main(java.lang.String[])
    If I add 4 "dummy" parameters, this error goes away, everything appears to work, except the page does not load in the browser which pops up and the breakpoint is never hit. I suppose this is to be expected as I don't actually know what those 4 extra parameters do as I don't have an API specification for the oracle.jdeveloper.debugger.ServletMain class.
    Is it possible to do this (even in an unofficial "workaround fashion?). I would love to know what the additional parameters for the oracle.jdeveloper.debugger.ServletMain class are so I can try running it that way...
    Cheers
    Nic

    By Clear parameter if you mean to remove a request parameter from HttpServletRequest, then you can't. And also, I think this is not an actual solution to what you are trying to solve.
    Moreover, you should better post questions related to JSP/Servlet in web tier here .

  • Need a help to create ejb application in netbeans with weblogic 9.2

    Hi guys,
    I am new to EJB..can anyone guide me to create a EJB application in netbeans 5.5 with weblogic server 9.2 ..
    thank u in advance..

    Hi guys,
    If there is no one to help me with this so simple project then I will have to quit trying. I am getting to much pressure to get this done and I just don't know how to proceed anymore. I have found a document on OTN that explain the basics of binding but it's to vast and too complicated under pressure. If someone could help me to bind this LOV I would appreciate this so much and then I could relax a little and read all the good documents that I have found on OTN.
    This is my last chance.
    Thank you!

  • Calling an EJB application in webdynpro

    Dear SDN's,
    I am trying to call an EJB application  from a webdynpro application and is succeded in storing values to database via Java Bean Model.
    I want to retrieve all records from table via EJB and all the records should be displayed in Webdynpro Table UI element.
    How can we do it?
    The problem here is, how to return a set of records to webdynpro from EJB via a javabean.
    I am not clear in using Collection Framework! i.e, which collection class i have to use to store the retrieved records.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    Hi Sireesha,
    Instead of adding resultset, create a EMP cinstance and add it.
    Ex : Consider you have created a EMP class
    class EMP
      String empname;
       int id;
      public void setEmpname(String name);
      public String getEmpname();
    Now
    ResultSet rs=statement.executeQuery(select * from emp);
    Vector v=new Vector();
    while(rs.next)
    Emp e=new EMP()l
    e.setEmpName(rs.getString(0));
    e.setID(rs.getInt(1)));
    v.add(emp);
    Iterator i=v.iterator();
    while(i.hasNext())
    Emp e1=(EMP)i.next()l
    System.out.println(e1.getempName());
    System.out.println(e1.getID);
    Regards, ANilkumar

Maybe you are looking for

  • KE30 is not picking the data from summarization level

    Hi Techies, We are facing one issue in KE30 tcode. We are able to run the same report in our QLTY, its showing "Data is getting fetched the data from summarization level 33" and we can see the output within 5 mins, But if we use same parameters in PR

  • Help!! what's wrong with my new ipod classic??

    Hi there, I have a brand new 80G ipod classic to replace my older 8G nano. I've been using itunes as usual but when I plugged my new ipod into the PC to transfer my existing itunes library and purchased tracks to my new ipod I got the message "attemp

  • HOW TO CREATE PROCESS CHAIN FOR PSA ARCHIVING

    SDN EXPERTS, i like to create process chain for archiving. but i dont see any event for archiving when i go to create a process chain for PSA archiving. please let me know. thanks

  • How to determine Oracle_Home default from multiple home installation?

    Does anyone know how to determine the current Oracle Home default in the registry when multiple Oracle Home exists? Both 8i and multiple 9i Version X's exist on a client machine. We need to determine the current default oracle home to determine path

  • Kyocera Brigadier as mass storage connecting to Debian Linux

    Hi all. I have a new Kyocera Brigadier but I can't get it to transfer files using Debian. The phone is running Android 4.4.2 and I'm using Debian Wheezy 64bit current. I set the android to Media Sync Mode but I can't find it as a device. If I don't s