Problem Deploying Oracle PDK Portlet to Oracle Application Server 9.0.4.0

I have a big issue trying to deploy a pdk portlet I have created in JDeveloper (10.1.2). The application is very simple, it consists of 2 JSP's (call them Select.jsp and Display.jsp) and 1 Java Class (Call it DoEverything.java).
The architecture of the system is VERY simple. The Select.jsp is a simple drop down list that is embedded in an html form, with the options in the drop down populated by a method call from DoEverything.java. Once the user selects an option and hits submit, he is sent to the Display.jsp, which is a simple html table that is populated by another method call from DoEverything.java. (Basically the whole system is a simple "view" of a given table in a DB based on the option selected in Select.jsp).
The system works perfect in JDeveloper, where I created it using the Oracle PDK Java Portlet wizard. However I'm running into a problem when I try and take it over to the Application Server. The main documentation I have been following is the: Oracle® Application Server Portal Developer's Guide and in particular the section 6.6.2.4.1 Creating a Connection to Oracle Application Server Containers for J2EE where it explains how to connect to the App. Server. The line "The steps that follow describe the procedure for deploying to a standalone instance of Oracle Application Server Containers for J2EE. For information about deploying to a full Oracle Application Server instance, please refer to the Oracle JDeveloper online Help system." is the one that is bothering me the most as I am trying to deploy to a full instance of the Oracle Application Server, but I cannot find anywhere that walks me through this in the online JDeveloper help.
Anyway, currently we ftp the appropriate JSP's, Java Class, provider.xml and provider properties files to their respective directories on the Application Server, register the provider and reboot the Http Server. (This has worked before except for the fact that when the user selected an option from the Select.jsp and the request was then sent over to the Display.jsp based on the form action the Display.jsp wasn't recognized. We figured the provider.xml file needed to be edited in this case in order to know where Display.jsp was being kept). In any event nothing seems to be working at the moment and my main concern is that it maybe we should be deploying as EAR/WAR (both of which I'm not super familiar and my second main concern is that it seems most people use JavaBeans and Struts and all sorts of different API's whereas here I just have a fairly simple Java Class back end that connects to the database and creates an object based on the attributes contained in the database (1 object for 1 unique row in the DB) and I want to be sure that the way I have developed this should still work with the Oracle AS. I'm hoping its just a matter of getting the directory structure straightened out and editing the provider.xml file to include all the JSP's.
Sorry for the long post, but if you could address my two main concerns and possible give me or point me towards a good thorough walk through of deploying a simple system (oracle pdk java portlet) like I have developed to the App. Server it would be greatly appreciated !
Thanks a lot.

Basically I started to develop this system inside Oracle AS and then when it came time to passing a request to a new page, it crapped out on me on the App. Server. So instead of trying to fix the problem there and then I continued to develop outside Portal and inside Jdeveloper. After a week or two once all my stuff worked perfectly I try and take it back into Portal but only the first JSP of all my Portlets would show up, because as soon as I would submit a form and the action directed me to a new page and Portal would be lost/confused. Obviously I shouldn't have done it that way but none the less...
So now I'm reading through the documentation you pointed me towards and it seems I have to qualify my parameters and then "attach" them to the url which the form will pass to the actioned page. I'm importing numerous classes (...urlUtils, etc) in order to qualify the parameters and then build this url without affecting any parameters currently present that my portlet does not own.
What I'm rambling towards here is all this separation of logic and presentation and the whole nine, implies different people can develop different parts of a 'system' mostly independant of one another...so in my situation I shouldn't in huge trouble yet, since underlying everything is a working system. My issue is with oracle and the App Server. If I take my code which works great outside of the App. Server and I fully qualify parameters and make sure my form actions are constructed using the UrlUtils in order to fully qualify them as well, and then I make sure page parameters are mapped to the proper portlet parameter values....should my system work on the App Server (assuming everything is done properly)....or am I still missing something.

Similar Messages

  • OracleAS - NULL ProviderSession after 15 minutes (Using Oracle PDK Portlet)

    We have recently deployed an oracle pdk portlet java application (developed in JDeveloper 10.1.2.1) to an OC4J on a server running OracleAS 10g (9.0.4).
    We are currently facing issues where our ProviderSession becomes null after 15 minutes.
    In our jsp's we implement the following:
    PortletRenderRequest pReq = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    ProviderUser pUser = pReq.getUser();
    ProviderSession pSession = pUser.getSession(false); In our provider.xml file within our JDeveloper project/portlet we have set the following tag: <session>true</session>. In the provider itself, under the User/Session Information section, we have selected the User option, set the Login Frequency to Once Per Session and checked the box labeled 'Require portal user specific session information'.
    In our web.xml file within our JDeveloper project/portlet we have set the following tag: <session-config><session-timeout>35</session-timeout></session-config>
    As long as we stay within our portlet we don't seem to lose our ProviderSession, but after 15 minutes, if we try to access the portal page (to switch the language on the page for instance) the ProviderSession is null. This operation always works when we are under this 15 minute limit.
    We have tried to change opmn.xml (increasing OC4J start timeout from 900 seconds to 1200 seconds),
    modplsql conf (PlsqlIdleSessionCleanupInterval, changed from 15 to 30 minutes) and we have also tried disabling the Global Inactivity Timeout variables, but no luck as of yet.
    Any help would be much appreciated !
    Thanks

    HI
    i am also facing same problem with session but in simple portlet with ajax implementation.
    i am setting session in portlet jsp with following code using oracle application server portal 10g.
    (here portlet jsp means which is included from portlet.)
    session.setAttribute("map",map);(here session is implicit object )
    i want to call ajax jsp from portlet jsp with below code.(i.e setting session in portlet jsp and accessing in ajax jsp)
    var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
    var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';
    var myAjax = new Ajax.Updater(
    {success: 'emailbody'},
    url,
    method: 'get',
    parameters: pars,
    onFailure: reportError,
    evalScripts: true
    i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.
    Map map=(Map)session.getAttribute("map"); (here session is implicit object )
    here map object is getting null from session.
    Please help on this if u know about this session.
    Regards
    Raju

  • Migration from JSR 168 to Oracle PDK Portlet

    Hi,
    I have created a Portlet in JSR standard. I want to port it as Oracle PDK portlet.
    In such case how to map the ProcessAction Method in MyPortlet which extends GenericPortlet to Oracle PDK Portlet format.
    Since Am using Oracle Portal 10g 10.1.2 which has no support to WSRP, am not able to use Java Portlet.

    Bala,
    Thanx bala. I made that web app to Portlet.
    Now am developing an application based on documentum.
    Am getting following error
    java.lang.NoClassDefFoundError: com/documentum/fc/connector/DfConnectionFactory at com.documentum.fc.client.DfClient.<init>(DfClient.java:32) at com.documentum.fc.client.DfClient.getLocalClientEx(DfClient.java:71) at com.documentum.fc.client.DfClient.getLocalClient(DfClient.java:57) at jsp.login._jspService(login.jsp:118) [Jsp/login.jsp] at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
    Can u help me in this.
    regards,
    Jay.
    Message was edited by:
    Jayashree

  • How to configure oracle thin drivers for SUN APPLICATION SERVER

    hi all,
    I am working with EJB with oracle as back-end. I wants to know how to configure oracle thin drivers for the SUN APPLICATION SERVER. Please explain me breifly.
    Advanced thanks to all the replies.
    with regards,
    /kumaraswamy.n

    Kumaraswamy,
    Did you try searching the Internet? Here are the results of my Internet search:
    http://tinyurl.com/zo4gk
    And one of the first hits in the list was this:
    Deploying to a Sun Java System Application Server
    Good Luck,
    Avi.

  • Register the Oracle 9iFS Portlet with Oracle Portal

    I did register the Oracle 9iFS Portlet with Oracle Portal.
    But when I am adding the portlet to a portal page I get the error:
    "500 Internal Server Error"
    When I am trying to access the page by url:
    http://<myserver>:7777/ifs/portlet
    I get the error:
    "You are not authorized to view this page"

    not a problem with BEA , just means your database has been configured to close your session after a period of inactivity(which is normal).
    Check you connection pool testing settings and tune accordingly.

  • Diff between Oracle 9i database and 9ias application server.

    Can any one brief in detail the difference between Oracle 9i database and 9ias application server.

    Hi,
    Your question is the answer. Oracle9i Database manages all your eBusiness data and Oracle9iAS runs all your eBusiness
    applications. In a 3 tier architecture, Oracle9i Database fits in the Database tier where as Oracle9iAS fits in the middle
    tier. Oracle9iAS provides an infrastructure to run different types of applications(J2EE thru OC4J, Forms applns, Portal
    based applns, Wireless applns etc..)
    Cheers !
    -- Rajesh
    Can any one brief in detail the difference between Oracle 9i database and 9ias application server.

  • What difference between Oracle 9i AS and orion application server?

    Hi:
    Today I visited some website and read an information that Oracle 9i AS and orion application server are two differece application server.But When I start Oracle 9i AS ,I must use command of "java -jar orion.jar".Are they the same application server? If not ,can you tell me what difference?
    Thanks
    Best regards,
    hyson

    Hi Liu,
    I'm sure other people will coreect any errors I am about to make
    (if I make any :-), but some time ago, Oracle mad a licensing
    agreement with a company called IronFlare, regarding IronFlare's
    application server product called OrionServer. After that, Oracle
    came out with a new product -- Oracle Containers for Java (OC4J)
    -- which is based on OrionServer. In the first version (that had
    the version number 1.0.2.2), the application server basically came
    bundled in the "orion.jar" file, so in order to start up the application
    server, you used a command like:
    java -jar orion.jar
    However, the next version of OC4J (with version number 9.0.2.0.0
    [go figure ;-]), contained the "oc4j.jar" file (which replaced
    the "orion.jar" file).
    So I would say that the first version of OC4J was almost identical
    to OrionServer. But I think subsequent versions are becoming more
    and more different. Remember that at the same time, OrionServer
    is also still being developed. I think the first version of OC4J
    was based on version 1.5.2 of OrionServer. The next version of
    OrionServer (that should be released soon) is version 1.6.0.
    I have no idea how similar the latest version of OrionServer is
    to the latest version of OC4J. But if Oracle's history is any
    guide, then I would say that, eventually, OC4J and OrionServer
    will have very little similarity between them. Just look at the
    paths that Oracle's JDeveloper has taken in comparison with Borland's
    JBuilder. Originally, JDeveloper was based on JBuilder. Today,
    they are two completely different products.
    Hope this has helped you.
    Good Luck,
    Avi.

  • Deploy XI java Proxy inside JBoss application server

    Hello,
    Can I deploy XI java Proxy inside JBoss application server
    Appreciate you response.
    Thanks

    Hi,
    <b>Yes</b>
    You can deploy your Java Proxy inside JBoss Server (in any Application server). But this will be possible only for Client Java Proxy and not for Server Java Proxy.
    I have succesfully completed those scenarios.
    After generating Client Java proxy, create EJB application with generated Java classes for proxies and deploy it in JBoss.
    Then you can access that EJB to pass inputs either in standalone application or some JSP.
    Regards,
    Uma

  • How to deploy the project into my weblogic Application Server?

    How do I deploy the project into my weblogic Application Server? Should it be fine if I copy the project folder to the AS root?
    Also, How should i invoke the Context sensitive help from Javascript assuming project  deployed to Weblogic AS.
    I am using Robohelp 10.
    Thanks in advance.

    Hi,
    You generate the help and then you copy the generated output to the server.
    For context sensitivity, which output are you using? Try the following
    pages for more info:
    http://www.grainge.org/pages/authoring/calling_webhelp/calling_webhelp.htm
    http://www.wvanweelden.eu/article-category/context-sensitivity
    Greet,
    Willam

  • Problem by providing ADF portlet in Oracle Portal

    Hi,
    I have created a simple ADF application with one JSF with a simple outputtext label, using Jdeveloper 11.1.1.3.
    I created a portlet out of it by Create Portlet Entry and deployed it on weblogic (WL_WSRP).
    Then i created a WSRP Provider on Oracle Portal 11g (11.1.1.6) with success, so I put the portlet on a page, when Portal show the page its appear a error message, like this:
    Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
    If I create a portlet with JSP page instead of a JSF page its works fine, another situation: when I access the JSF page directly in browser tha page works fine too.
    To create the domain for WLS_WSRP I used this document: Doc Id 1058565.1
    These are the error messages in the Weblogic logs:
    ContentFetcher Unexpected Exception Request Failed:oracle.webdb.wsrp.client.run.WSRPDispatcherException: An error occurred whilst invoking an operation on the Provider name=content-fetcher17 label=wsrpPortlet url=http://ovm063portaltbl.compasso.com.br:8090/portal/proxy/portal/TBLPORTAL_PORTAL/wsrp time=1633ms timeout=65000ms process=Dispatching
    An internal error has occurred in method getMarkup. java.lang.NoClassDefFoundError: javax/portlet/PortletRequest at oracle.adf.share.portlet.PortletADFContext.getPortletRequest(PortletADFContext.java:108)
    at oracle.adf.share.portlet.PortletADFContext.getUserPrincipal(PortletADFContext.java:141)
    at oracle.adf.share.portlet.PortletADFContext.setUserPrincipal(PortletADFContext.java:124)
    at oracle.adf.share.portlet.PortletADFContext.setSecurityContext(PortletADFContext.java:119)
    at oracle.adf.share.ADFContext.getSecurityContext(ADFContext.java:830)
    at oracle.adf.share.portlet.PortletADFContext.initialize(PortletADFContext.java:245)
    at oracle.adf.share.portlet.PortletADFContext.initThreadContext(PortletADFContext.java:232)
    at oracle.adf.model.portlet.PortletBindingRequestHandler.initADFContext(PortletBindingRequestHandler.java:49)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:105)
    at oracle.portlet.bridge.adf.lifecycle.ADFBindingBridgeLifecycleListenerImpl.onBeginRequest(ADFBindingBridgeLifecycleListenerImpl.java:94)
    at oracle.portlet.bridge.adf.context.ADFPortletExternalContextImpl.<init>(ADFPortletExternalContextImpl.java:225) at oracle.portlet.bridge.adf.context.ADFPortletFacesContextImpl.<init>(ADFPortletFacesContextImpl.java:40) at oracle.portlet.bridge.adf.context.ADFPortletFacesContextFactoryImpl.getFacesContext(ADFPortletFacesContextFactoryImpl.java:41) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64) at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.getFacesContext(BridgeImpl.java:989) at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:535) at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498) at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449) at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:241) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:243) at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:209) at javax.portlet.GenericPortlet.render(GenericPortlet.java:163) at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287) at oracle.portlet.server.containerimpl.ServerImpl.doRuntimeCall(ServerImpl.java:1316) at oracle.portlet.server.containerimpl.ServerImpl.getMarkup(ServerImpl.java:143) at oracle.portlet.server.containerimpl.ServerPerfLogger.getMarkup(ServerPerfLogger.java:559) at oracle.portlet.wsrp.v2.WSRPv2VersionWrapperServer.getMarkup(WSRPv2VersionWrapperServer.java:522) at oracle.portlet.wsrp.v2.WSRPv2ToServer.getMarkup(WSRPv2ToServer.java:11783) at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeSoapToJaxb.getMarkup(WSRP_v2_Markup_PortTypeSoapToJaxb.java:81) at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeSoapPerfLogger.getMarkup(WSRP_v2_Markup_PortTypeSoapPerfLogger.java:58) at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.invoke_getMarkup(WSRP_v2_Markup_Binding_SOAP_Tie.java:814) at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.processingHook(WSRP_v2_Markup_Binding_SOAP_Tie.java:1457) at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:299) at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:442) at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1112) at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:333) at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:233) at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:185) at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.portlet.server.service.ContextFilter.doFilter(ContextFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Hi,
    What errors did you get during indexing?
    -Ron

  • Install Oracle ADF Runtime on WebSphere Application Server 7.x

    Hi everyone,
    I am trying to install ADF on a WAS server, but i don't find much information about it... I intall WAS 7 and upgrade to 7.0.0.19 with no problem, but i don't now how to install the ADF libraries in the server, i want to install the ADF libraries and deploy de "Tag Guide Demo" on the WAS...
    Can anyone help me ?
    Ty
    Alberto Tapia

    Hi,
    I am trying to install Oracle ADF runtime for Websphere. I downloaded the installer from this link http://download.oracle.com/otn/nt/middleware/11g/ofm_appdev_generic_11.1.1.2.0_disk1_1of1.zip
    When I extract and run the installer, I do not see the option for "Application Server Screen" where I am supposed to be able to select websphere option.
    Am I using the right installer? Is there any other way to enable the websphere option?
    Thanks,
    Neha

  • Oracle 10g - Creating a new Application Server using standalone OC4J 10g

    I have some issues in creating a new app. server using standalone oc4j 10g 10.1.3 instance. After I created the app. server instance, I tested the connection and it says connection refused. I used the userid as oc4jadmin and the password as welcome. I am getting a message connection refused. For connection, I used the default hostname "localhost" and I didn't mention anything in the URL path.

    Thanks Steve..
    Here is what I am trying to do.. I want to create a new app server instance (i.e.) stand alone oc4j server, where I can deploy my web service and run a test.
    Oracle JDeveloper 10g:
    Under Connection Navigator, Application Server --
    1) Right click to 'Create New Application Server Connection'
    2) Connection type as 'Standalone OC4J 10 g 10.1.3',
    3) Username ==> oc4jadmin, Password ==>welcome, checked the Deploy password.
    4) Hostname: localhost RMI Port: 23791
    URL path: <<blank>>
    5) Test Connection ==> getting a error message...
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    Any input you can provide would be of great help.

  • Oracle datasource lookup in JBOSS application server

    Hi friends
    i have the below problem while configuring the datasource in JBOSS for oracle pls any body can help me out..........
    i just want to create a data source for oracle in JBOSS 3.2.5 application server and i want to access that datasource from my session bean while accessing it cant finding the JNDI name of the datasource my oracle-ds.xml code is like as below
    <local-tx-datasources>
    <jndi-name>java:OracleDS</jndi-name>
    <use-java-context>false</use-java-context>
    <connection-url>jdbc:oracle:thin:@localhost:1521:EPS</connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>system</user-name>
    manager
    </local-tx-datasources> my session bean method is like as below
    public void businessMethod1(){
    try{
    javax.naming.Context ctx = new javax.naming.InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("OracleDS");
    java.sql.Connection con = ds.getConnection();
    java.sql.PreparedStatement ps = con.prepareStatement("select * from employee");
    java.sql.ResultSet rs = ps.executeQuery();
    while(rs.next()){
    System.out.println("Employee ID "+rs.getInt("empid")+"Employee Name "+rs.getString("ename")+"Employee Designation "+rs.getString("designation"));
    }catch(Exception e){
    e.printStackTrace();
    } but the error i am getting wasl like as below
    14:14:14,039 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
    14:14:14,164 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
    14:14:14,164 INFO [JkMain] Jk running ID=0 time=0/47 config=null
    14:15:00,883 INFO [STDOUT] javax.naming.NameNotFoundException: OracleDS not bound
    14:15:00,883 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
    14:15:00,883 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
    14:15:00,883 INFO [STDOUT] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
    14:15:00,883 INFO [STDOUT] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
    14:15:00,883 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
    14:15:00,883 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
    14:15:00,883 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    14:15:00,883 INFO [STDOUT] at com.ness.training.ejb.FirstSessionBean.businessMethod1(FirstSessionBean.java:13)
    14:15:00,883 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    14:15:00,883 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    14:15:00,883 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    14:15:00,883 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.j
    ava:683)
    14:15:00,883 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterce
    ptor.java:185)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterc
    eptor.java:72)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:1
    22)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
    14:15:00,883 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:723)
    14:15:00,883 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    14:15:00,883 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    14:15:00,883 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    14:15:00,883 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
    14:15:00,883 INFO [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
    14:15:00,883 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
    14:15:00,883 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
    14:15:00,883 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    14:15:00,883 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
    14:15:00,883 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
    14:15:00,883 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
    14:15:00,883 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    14:15:00,883 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    14:15:00,883 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    14:15:00,883 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
    14:15:00,883 INFO [STDOUT] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    14:15:00,883 INFO [STDOUT] at sun.rmi.transport.Transport$1.run(Transport.java:148)
    14:15:00,883 INFO [STDOUT] at java.security.AccessController.doPrivileged(Native Method)
    14:15:00,883 INFO [STDOUT] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    14:15:00,883 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    14:15:00,883 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    14:15:00,883 INFO [STDOUT] at java.lang.Thread.run(Thread.java:536)

    make the changes like this.
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:/OracleDS");
    Regards
    vanan

  • How to Deploying a PDK Portlet programmatically?

    I have a portlet that I built using PDK. Now I want to deploy it programmatically. I don't want to use the Jdeveloper wizard or the GUI for Application Server. Is there any way we can deploy the portlet programmatically? any help is really appreciated.

    dcmctl command is normally used to deploy a ear/war file dynamically. As far as registration of providers API's are available for PLSQL i.e. database provider registation(not attempted same for JPDK portlets).

  • How To create Connection Pooling in Oracle 10.1.2.0 Application Server

    Hi,
    How to create Conncetion Pooling in Oracle 10g Application Server. I am using 10.1.2.0 version.
    Thanx
    Dhans

    Hi,
    How about these tutorials?
    http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
    http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html

Maybe you are looking for

  • Files do not show up on HDD

    I tried to get an answer through the iTunes community, and was advised to try here instead as it didn't have anything directly to do with iTunes Not all iTunes Files not showing up on External HDD So in a nutshell, all of my 35'000 iTunes files (actu

  • Ipad apps disappeared and I cannot get them back

    Two days ago I came home and most of the apps on my ipad had disappeared.  I tried to Restore my ipad and download the apps from my computer that I have had they backed up on and it keeps saying the computer is not authorized and no matter how many t

  • Problem (ugly display) with Samsung syncmaster 2243

    Hello I just plug my Samsung Syncmaster 2243BW on the mac mini (DVI). The resolution set is the good one : 1680x1050 @ 60hz, but the display isn' t clear, accurate, especially with the fonts. any ideas thanks in advance

  • Iphoto 6.06 crash problem

    I am truly bewildered. I have read all of the relevant posts and still no joy. Here's the deal - since installing System 10.4.11, I cannot use iPhoto 6.06. The application opens but when I try to scroll in my library or any album the program crashes.

  • New to mac and i cant set up mail account with yahoo plus...help please!

    hello,its my first post and im having all sorts of problems settting up my mail account even though ive upgraded to yahoo plus as recommended....i just dont understand the port numbers and pop,can anyone help please?