Creating worker threads in J2EE application deployed in OAS...

Will OAS allow for the creation of worker threads in a J2EE application? I can create a worker thread in my J2EE application that is deployed in OC4J Standalone, I need to verify if the same capabilities exist in OAS.
Thank you,
Jason

Hi Ritushree,
Yor approach is not correct. You need to do a JNDI lookup for the service.
Refer
http://help.sap.com/saphelp_nw04/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
Thanks
Prashant

Similar Messages

  • Using Web Dynpro WDUrlGenerator from within J2EE Application deployed on NW

    I have two applications deployed on a NetWeaver Application Server 2004s.
    1. A Web Dynpro application.
    2. A J2EE Application
    What I want to do is to be able to build a url to the Web Dynpro application from within the J2EE application. Obviously the problem is using Web Dynpro classes within the J2EE application.
    So I edited the Java Build Path of the J2EE application to include the werbdynproservices.jar file and exception.jar files by extending ECLIPSE_HOME variable in the libraries section. I also checked them in Order and Export. I verified the built .war file and it does contain the two .jar files.
    This was sufficient to get my project build and deployed, however the servlet in my J2EE application shows NoClassDefFoundException when I run it. My guess is there's more I need to do to get the WDUrlGenerator to run in my J2EE class.
    Is this possible or is there a better way? I am trying to avoid the client having to modify a web.xml for each depployment.
    Thanks in Advance.

    This looks like what I want, but I am unable to test it.
    I found the application-j2ee-engine.xml file under the <project-root>/gen_wdp folder. I then attempted to open it with the SAP EARDD editor. It opens with the Source tab selected. If I try to click the General tab I get an error saying:
    "The source page has errors. Other pages cannot be used until these erros are corrected."
    I see nothing wrong with the XML document. It's source is here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application-j2ee-engine>
        <provider-name>local</provider-name> 
        <modules-additional>
        <module>
          <entry-name>EVENTS_WorkflowNotification.wda</entry-name>
          <container-type>webdynpro</container-type>
        </module>
      </modules-additional>
    </application-j2ee-engine>
    When I deploy the application, everything works fine. I was going to edit the XML document by hand, but of course there is no DTD listed so I don't know what's supposed to go in there without the Editor doing it for me.
    Getting closer. Thanks so much.

  • J2ee application deployment error

    Hi All,
             I have created a J2ee application. I have created a EJB module project in which i have created a session bean. Also I have created a Web module project, i am referring the above created EJB in this web module. Both these projects are added to one enterprise application.While deploying this ear file to j2ee engine I am getting following error.
    Aborted: development component 'TestEAR'/'sap.com'/'localhost'/'2007.06.28.10.34.29'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/TestEAR.. Reason: Exception during generation of components of application sap.com/TestEAR in container EJBContainer.; nested exception is:      com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/TestEAR in container EJBContainer.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Please can anybody tell me what is going wrong?
    I am using NW 2004s.
    Cheers
    jayant

    I have the same problem. I retart the SDM.and del the app in VA,It is OK now.

  • J2EE applications deploying

    Hi all.
    I'd like to know what differences there are when I deploy a J2EE application as an application instead of deploying it as stand-alone modules, other than classes being loaded by the same class loader. I am specially interested in differences at a JNDI level, if there are differences at all.
    Thanks in advance.

    My pleasure.
    From the nature of your original question, it sounds to me that you have a good grip on the J2EE, so, if what I am about to point out is something that you already know, then by all means please ignore it...
    The J2EE defines several packaging methodolgies: EJB (.jar), web application ([b/.war[/b]) and enterprise application (.ear). Each packaging paradigm is an archive, specifically, a Java archive. The J2EE specifies the specific layout of each archive as well as the specific XML deployment descriptors which are needed. EJB's can be contained within a web application and a web application can be contained with an enterprise application. Additionally, the J2EE also specifies a client application which can be packaged into an enterprise application - again, the client application is an archive, with the XML descriptors specified by the J2EE. If I remember right, the J2EE also specifies other modules, such as plain Java classes that are to be used by the enterprise application.
    From a logical namespace perspective, clients of these components see one view - they need not concern themselves with any differences in terms of acquiring references to components in the container via the JNDI. However, it should be noted that the J2EE, for EJB's, specifies not only home and remotes, but local home and remotes. Just as the "normal" home interface is bound to the JNDI, so is the local home interface; both of these must be not be bound to the same node in the JNDI namespace.
    Hope this helps.

  • J2ee Application Deployed,error connecting to 9i db

    Hi,
    I am working on a Oracle 10g 9.0.4 AS and a Oracle 9i db, both of which I have just installed on red Hat Linux 2.1 Advanced Server.
    I have deployed a j2ee ear file in an OC4J container. The deployment works fine as I get the login page correctly. But it fails to go further than that and gives an error "contact system administrator".The Http Server logs show the following error messages :
    [Fri Mar 25 13:07:22 2005] [error] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0015: recv() returns 0. There
    has no message available to be received and oc4j has gracefully (orderly) closed the connection.
    [Fri Mar 25 13:07:22 2005] [error] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0054: Failed to call network
    routine to receive an ajp13 message from oc4j.
    [Fri Mar 25 13:07:22 2005] [error] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0033: Failed to receive an
    ajp13 message from oc4j.
    [Fri Mar 25 13:07:22 2005] [warn] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0078: Network connection errors
    happened to host: midtier.mastek.com and port: 3303 while receiving the first response from oc4j. This request is recoverable.
    I have configured a user in the database with the reqd schema and also a datasource pointing to it and whose jndi name I have specified in the application.
    Also, I get an error saying in the OC4J container :
    05/03/25 13:02:28 log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
    05/03/25 13:02:28 log4j:WARN Please initialize the log4j system properly.
    indicating that mebbe the logging hasnt been successfully installed and that's mebbe why I am not getting proper error messages.
    I am thinking that there maybe some error in the connection to the 9i database, but cant figure out what.
    PLEASE,PLEASE HELLLLPPPPP!!!!

    Also got these in logs
    emias.log
    com.evermind.server.http.HttpIOException: Broken pipe ---> Enterprise Manager
    em-application.log
    Broken pipe sometimes followed with : java.io.FileNotFoundException: Could not find ias/.uix
    and                    : java.io.FileNotFoundException: Could not find ias/clusters/.uix
    OHS errors :
    [warn] [client 127.0.0.1] MOD_OC4J_0078: Network connection errors happened to host: midtier.mastek.com and port: 3303 while receiving
    the first response from oc4j. This request is recoverable.
    March 25, 2005 12:47:15 PM IST HTTP_Server Error ohs [error] [client 172.16.117.254] (32)Broken pipe: MOD_OC4J_0087: Got an unexpected error while calling send() to send a message to oc4j
    and the error code is 32.
    March 25, 2005 12:47:15 PM IST HTTP_Server Error ohs [error] [client 172.16.117.254] MOD_OC4J_0053: Failed to call network routine to send out an ajp13 buffer message to oc4j.
    March 25, 2005 12:47:15 PM IST HTTP_Server Error ohs [error] [client 172.16.117.254] MOD_OC4J_0032: Failed to send out an ajp13 message to oc4j.
    March 25, 2005 12:47:21 PM IST HTTP_Server Error ohs [error] [client 127.0.0.1] MOD_OC4J_0015: recv() returns 0. There has no message available to be received and oc4j has gracefully (orderly)
    closed the connection.
    March 25, 2005 12:47:21 PM IST HTTP_Server Error ohs [error] [client 127.0.0.1] MOD_OC4J_0054: Failed to call network routine to receive an ajp13 message from oc4j.
    March 25, 2005 12:47:21 PM IST HTTP_Server Error ohs [error] [client 127.0.0.1] MOD_OC4J_0033: Failed to receive an ajp13 message from oc4j.

  • J2EE application deploy error

    Hi!
    thank you for see my question.
    when I deploy EJB Model to Oracle 10 AS, the server notice exception like this
    "java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns. deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns".
    and I deploied a JSF Application to Oracle 10g AS, but the Faces Servlets cann't be used.
    please help me, thank you so much.

    What specific versions are you using? It sounds like you are deploying a J2EE 1.4 based application (from JDev 10.1.3) to OC4J/OracleAS 10.1.2. That version of the server implements J2EE 1.3 which used DTDs and not XML schema. Thus when you are throwing some schema at it, it's not able to handle it.
    Using OC4J/OracleAS 10.1.3 should solver this problem.
    -steve-

  • Could anyone tell me the command to deploy the J2EE application EAR in OAS

    Thanks for your help.
    You can point me to a document also.
    I just would like to manually deploy an EAR in Oracle Application Server. I am in Suse Linux. If you will be able to tell in windows environment also, that is fine, we can figure out from there.
    Thanks

    There are multiple ways to deploy and ear to Oracle Application Server:
    1> Use Application Server Control (AS) to deploy an application
    2> You can use JDeveloper. This may be the simplest for you. Load your application into JDev and configure the Application Server connection. Then you can deploy quickly after making edits
    3> Use an ANT task to deploy your application. There are a number of examples in the howto section of OC4J:
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html

  • J2EE Application Deployment

    I have install the Oracle 9iAS and OC4J in Linux OS, how should I deploy my application in this two components. My application consists of JSP, Servlet, Java Bean, and Enterprise Java Bean.

    Hi Pang,
    You have already looked through the documentation and sample code
    that's available on OTN, haven't you? Just follow the links from
    this URL:
    http://technet.oracle.com/tech/java/oc4j/content.html
    Other links that may also be beneficial include (not in any particular
    order):
    http://www.orionserver.com
    http://www.atlassian.com
    http://www.orionsupport.com
    http://www.elephantwalker.com
    So let's say you've already looked through the documentation, and
    the code samples, and you're having trouble deploying your app.
    How did you try to deploy it? Where did the deployment fail? What
    (if any) error messages are you getting?
    Good Luck,
    Avi.

  • J2EE App Deployment on OAS (JDeveloper 10.1.2 used)

    I have a JSP deployed that needs to use JavaScript and include tags to HTML but I can only get this to work if they are in the project/public_html folder of the deployed project.
    I want to reuse the JavaScript and HTML in multiple projects within the same container without having to include them in the deployed .ear. Is this possible? How? I have read everyting I can find. The common Java classes work without being deployed as part of the project deployment. At least that works. This is my first attempt at J2EE altogether. Any help would be greatly appreciated. Thanks.

    Does anyone know how to make .gif, .html, JavaScript available for multiple Java projects without including the files in each project deployment? All are in the same OC4J container. As I gain knowledge I will help others. For now, I'm a newbie. Help?

  • Apache cannot create new worker thread

    My httpd error log reports one of these errors each second:
    (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
    I have been on Google and have tried setting the ThreadsPerChild as low as 4; ulimit -s also reports a reasonable value of 8192. /etc/security/limits.conf has no rule which should affect httpd. The only thing that seems to fix the problem temporarily is a reboot. In addition this only happens after I restart the httpd daemon.
    The thing is that httpd starts up and runs. I would still like to resolve this issue though. Does anyone have any ideas? The whole /etc directory is available at http://www.kiwilight.com/etc/.

    Resolved by restarting System Center Management service.

  • Newbie questions - application deployment not working

    Hi
    I'm running SCCM 2012 r2 (no CU's yet but I'm just downloading #4). Everything appears normal for a new setup and there are no errors reporting in any of the status lists. Discovery, boundaries, AD schema has been extended and the System Manager AD container
    (and permissions) set up. 
    All domain PCs and users are listed in Assets. I have created a device collection to roll out test applications based on membership of an AD security group which has picked up the correct membership for that group (a single computer).
    I have created an msi to test application deployment (all it does is drop a test file into the windows folder) and tested that manually installing it with msiexec /i /q options on a test PC.  I have created the application, deployment type and deployment
    for the test msi and confirmed that the application has been deployed to the distribution point.
    And then... nothing happens.  I've checked the Monitoring\Deployments view and nothing is reported for the application (i.e. after selecting the application I have a grey pie chart with zero for all entries).  I've checked the report "Client
    push installation status details" and it reports an error (Last error = 5), 4 retries and  status of "retry" but no details of what's going on (and I can't find any log files which might tell me).
    Any assistance would be massively appreciated - despair is setting in!
    Thanks in advance
    Martin

    Definitely check to make sure the client is installed successfully on your test device.  No client, no app deployment :-).  Look for the ccmsetup.log in c:\windows\ccmsetup\logs
    Also, if you are using client push to install the client, make sure you ahve a client push account configured and that it has local administrator rights on the devices.  Ensure the Windows Firewall allows WMI and File/Print Sharing also.
    Jeff

  • Critical ADF application error after deploy to OAS

    <p>
    Hi,
    </p>
    <p>
    I have a problem with ADF application (10.1.3). It works in JDev but after deploy to OAS 10.1.3 when I try to go to page contains a lot of input texts and 2 tables , I get server error  - see it on this image .  It is very strange because this application worked earlier - where OAS uses JDK 1.5.0_08. Now JDK was changed for 1.6.0_01 version. J2EE container has allocate 512 RAM memory Is JDK version may be reason of this error ?
    </p>
    <p>
    Kuba
    </p>

    Hi Kuba,
    Do you mean that you changed OAS to use JDK 1.6? I'm pretty sure this wouldn't be supported. If you mean that you used JDK 1.6 to compile the project and then deploy to OAS, I'm pretty sure this wouldn't be supported, either. If you just changed JDeveloper to use JDK 1.6 to run JDev (although for sure this isn't supported), and the project still is targetted to JDK 1.5, this should work. I've had a few sporadic problems in this configuration, though, so I cannot recommend it.
    John

  • Users for the j2ee application

    hi friends,
    i want to create the users for J2EE applications.
    can i create the users only for j2ee engine ?
    how can i create these users?
    if i want to implement the sap
    is it necessary to buy the licence for j2ee users?
    thanks&regards,
    srinivas.

    Hi
    To create the users in J2EE applications is not an issue, but the licensing is always applicable as it is applicable for ABAP applications.
    There are two ways depends on configurations:
    1. If the UME store is ABAP, then you can create the users at ABAP side using SU01 and at java side using http://<hostname>:5<Systemnumber>00/useradmin
    2. If the UME store is JAVA, then you can only create using http://<hostname>:5<Systemnumber>00/useradmin
    The licensing for JAVA applications depends as ABAP is having, if you use it as production you have to pay the charges. Please contact your local SAP representative for further details

  • Multiple J2EE applications on iAS904

    Hi,
    We will be having lots of J2EE applications deploy on iAS904. Is the best practice for this to have 1 OC4J per J2EE application? Or all J2EE applications in one OC4J container?
    Thanks,
    Charles

    Hi Charles --
    It's difficult to provide a single best practice. You'll need to look at the pros/cons of each and decide what makes most sense for your environment:
    To get the ball rolling, here are some considerations:
    1 OC4J instance per app:
    + finer grained manageability -- you can make changes to the one app which may require a start/stop of the app or the instance, which won't have any effect on other running apps/OC4J instances
    + The container level log files will just contain information pertaining to that one specific application
    + The OC4J instances can be tuned specifically for the application -- ie JVM settings
    + Clustering can be targetted for the single app -- if you have multiple applications per OC4J instance, then they all will participate in clustering if it is enabled (and they are clusterable). One app per OC4J instance produces a finer grained cluster model.
    - Each OC4J instance is a JVM process. If each app has a JVM process then you may be wasting resouces on the system as the apps aren't sharing a JVM
    - More management operations may be required since you may need to configure/maintain more instance information
    I'm sure some other folks will chime in here with some more insight on their practical experiences.
    There's an Oracle Application Server Best Practices document on OTN which I seem to remember does have some coverage of management/deployment issues which may some more information for you to consider.
    cheers
    -steve-

  • Project Deployment in OAS 4.0.8.1

    Hi folks, i4ve tried to deploy a project containing three applets to OAS and it gave me this message :
    Downloading client stubs for "IpirangaAppletsOAS1" to "C:\Program Files\Oracle\JDeveloper 3.1\myprojects\IpirangaAppletsOAS1Cl.jar"...
    OASDeploy: java.net.SocketException: socket was closed
    OASDeploy: Error occured in downloading client stubs
    OASDeploy: Application Deployment Failed
    *** OAS EJB Application deployment completed ***
    *** Deployment completed ***
    What4s up ?

    I am looking for the same answer. If you find it, please send it to me at [email protected]
    Thanx
    --Michael                                                                                                                                                                                                                                   

Maybe you are looking for