Remote DCM

I get an error when I run this:
C:\jdev9i\j2ee\home>java -jar admin.jar ormi://server09:1810 ias_admin oracle -d
eploy -file c:\jdev9i\dcm\lib\Oc4jDcmServlet.ear -deploymentName Oc4jDcServlet
Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconn
ected; nested exception is:
java.io.EOFException: Disconnected
C:\jdev9i\j2ee\home>
SOMEONE COULD HELP ME?
THANKS

i tried exactly whats written in the documentations. no problem deploying the dcm-servlet.
but when i test my connection to remote AS i get the following error:
i do exactly whats written in the documentation, but get the following errormessage:
C:\Oracle\9iDS\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\Oracle\9iDS\jdev\lib\oc4j_remote_deploy.jar http://myserver:1810/Oc4jDcmServletAPI/ ias_admin manager listApplications D:/Oracle/9iAS/
Initializing log
Servlet interface for OC4J DCM commands
Command timeout defined at 600 seconds
Executing DCM command...
Executing command listApplications D:/Oracle/9iAS/ UNDEFINED UNDEFINED UNDEFINED
Command = LISTAPPLICATIONS
Opening connection to Oc4jDcmServlet
Setting userName to ias_admin
Sending command to DCM servlet
HTTP response code = 200, HTTP response msg = OK
Command was successfully sent to Oc4jDcmServlet
Receiving session id from servlet to check command status
Session id = 74b4756f8efb4fafa8a9ee6ce8d8609c
Please, wait for command to finish...
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=74b4756f8efb4fafa8a9ee6ce8d8609c
Checking command status
HTTP response code = 500, HTTP response msg = Internal Server Error
#### HTTP response is NOT ok
Waiting for 30 seconds and trying again...
Command has not finished yet
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=74b4756f8efb4fafa8a9ee6ce8d8609c
Checking command status
HTTP response code = 200, HTTP response msg = OK
Command has finished
Receiving command exit value
Receiving command output
**** No output was received from command
Closing connection to Oc4jDcmServlet
#### DCM command did not complete successfully (-2)
#### Invalid Oracle Home directory
-----------i'm sure that the homedirectory exists!!!!
-----------when i try with port 1811 i get this:
C:\Oracle\9iDS\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\Oracle\9iDS\jdev\lib\oc4j_remote_deploy.jar http://myserver:1811/Oc4jDcmServletAPI/ ias_admin manager listApplications d:\Oracle\9iAS
Initializing log
Servlet interface for OC4J DCM commands
Command timeout defined at 600 seconds
Executing DCM command...
Executing command listApplications d:\Oracle\9iAS UNDEFINED UNDEFINED UNDEFINED
Command = LISTAPPLICATIONS
Opening connection to Oc4jDcmServlet
Setting userName to ias_admin
Sending command to DCM servlet
HTTP response code = 200, HTTP response msg = OK
Command was successfully sent to Oc4jDcmServlet
Receiving session id from servlet to check command status
**** Could not get session id from Oc4jDcmServlet
** Thread[main,5,main] ** Wed Mar 26 10:56:45 CET 2003 ** ** EXCEPTION: java.io.StreamCorruptedException: InputStream does not contain a serialized object
java.io.StreamCorruptedException: InputStream does not contain a serialized object
     void java.io.ObjectInputStream.readStreamHeader()
          ObjectInputStream.java:849
     void java.io.ObjectInputStream.<init>(java.io.InputStream)
          ObjectInputStream.java:168
     void oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.receiveSessionId()
     oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandResult oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(java.lang.String)
     oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandResult oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.listApplications(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
void oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(java.lang.String[])
          Oc4jDcmMain.java:71
Please, wait for command to finish...
Checking command status...
Setting userName to ias_admin
Command has finished
Receiving command exit value
#### Could not receive command output from Oc4jDcmServlet
Receiving command output
#### Could not receive command output from Oc4jDcmServlet
**** No output was received from command
Closing connection to Oc4jDcmServlet
#### DCM command did not complete successfully (-1)
#### HTTP return code was -1
======================================
what am i doing wrong????

Similar Messages

  • JDev 9.0.3 Remote DCM to 9iAS - Has ANYONE Made it Work?

    All,
    I have been trying to create a connection to my 9iAS 9.0.2 server from JDev 9.0.3 using Remote DCM. I've successfully installed the DCM servlet, and appear to be successfully connecting to the DCM servlet on the remote server. However, I keep receiving the message "Invalid Oracle Home directory" when testing my connection in JDev.
    I've ensured that I've typed the home directory with the proper mixed case, as required because of its case-sensitivity. That didn't work, so I tried all caps, all lowercase, adding a trailing "\"... every stupid hack I could think of. No luck.
    From other posts I've read here, it appears that perhaps this highly-publicized feature JUST DOESN'T WORK! Before I accept that conclusion...
    Has ANYONE out there ACTUALLY managed to get this to work? If so, please pass along your magic trick...
    Thanks!

    i had same problem. i try to connect from a linux machine to an remote oracle aplication server installed on a windows machine.
    in the "remote server's oracle home directory" path i had to escape the '\':
    the original path is: "C:\oracle\ora10gAS". the connection succeded with "C:\\oracle\\ora10gAS".
    i dont know it is the same with windows to windows connections.
    daniel.

  • Jdeveloper 9031 deploy to remote dcm

    Hi,
    We've been playing with the JDeveloper 9031 to deploy applications to remote dcm (Oracle9iAS 903).
    It seems (from experimentation and documentation) that the ias_admin user & password is needed for that function.
    Many developers are going to connect to that server to deploy their applications. I would like to avoid distributing the administrative userID & password to everyone.
    Is there a way to use the remote DCM deploy feature without using the ias_admin userid/password?
    Thanks,
    Maxime

    Hello all,
    I have since found-out that you cannot accomplish this without the admin password(Confirmed on metalink).
    As a workaround, I have built a program that will deploy for the users. They do not have access to read the script so, the password is hidden from them. Sudo could probaly do the job as well.
    This works on Unix. On Windows, you probably have to compile someting to hide-it.
    Max

  • Remote dcm jar not understood

    Hi
    I have a jsp application which is using a third party jar. I included the jar in the project libraries. But when I deployed on the remote DCM oc4j instance it is not recongnizing the classs files in the jar. I'm getting the following message
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:/app/oracle/product/as903/j2ee/xsql/application-deployments/jeupload/jeupload/persistence/_pages//_CSVIpload__Page8.java
    error: File /app/oracle/product/as903/j2ee/xsql/applications/jeupload/jeupload/WEB-INF/classes/SmartUpload.class does not contain type SmartUpload as expected, but type com.jspsmart.upload.SmartUpload. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
    /app/oracle/product/as903/j2ee/xsql/application-deployments/jeupload/jeupload/persistence/_pages/_CSVIpload__Page8.java:519: Class SmartUpload not found.
                   SmartUpload myUpload = null;
    I imported third party jar file to project and
    while making the ear file I made following selections
    general - use projects j2ee web contenct root
    web-inf-lib - included my third party jar file
    profile dependcies - selected thired party jar file add to the ear file

    Hi
    I have a jsp application which is using a third party jar. I included the jar in the project libraries. But when I deployed on the remote DCM oc4j instance it is not recongnizing the classs files in the jar. I'm getting the following message
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:/app/oracle/product/as903/j2ee/xsql/application-deployments/jeupload/jeupload/persistence/_pages//_CSVIpload__Page8.java
    error: File /app/oracle/product/as903/j2ee/xsql/applications/jeupload/jeupload/WEB-INF/classes/SmartUpload.class does not contain type SmartUpload as expected, but type com.jspsmart.upload.SmartUpload. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
    /app/oracle/product/as903/j2ee/xsql/application-deployments/jeupload/jeupload/persistence/_pages/_CSVIpload__Page8.java:519: Class SmartUpload not found.
                   SmartUpload myUpload = null;
    I imported third party jar file to project and
    while making the ear file I made following selections
    general - use projects j2ee web contenct root
    web-inf-lib - included my third party jar file
    profile dependcies - selected thired party jar file add to the ear file

  • Problems in DCM... Help!!

    1.I installed Oracle9ias Core(J2EE and Web Cache) and when I navigate the Enterprise Manager to OC4J_home ,I found JVM is not available,why ?
    2.In my JDev 9.03 preview ,I created a connection to my Oracle9ias via Local DCM and deployed a EJB project successfully ,and it was added in $Oracle_home/J2ee/home/applications but when I created a client to test the application ,I got this error information "no such domain/application". What should I do ?
    3.I tried to use the Remote DCM to connect the ias ,but I got this error information "Http response is NOT ok..." ,how can I connect the Oracle9ias via remote DCM?

    Sounds like Chinese language is not part of your product code and was added to your phone by the dealer. When you updated the firmware, the languages reverted back to the original. If you need Chinese on your phone you will need to get it reinstalled. Language packs can only be installed by Nokia Care Points.

  • Error in redeploy to 9iAS 9.0.2 from jDev 9.0.3.1

    I've been trying to follow the howto on using jDev to deploy portal applications. ( http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/BUILD.JAVA.PORTLETS.USING.JDEVELOPER.V2.HTML )
    I made it through the first part OK and deployed (through remote DCM) a sample servlet that I can browse to and it functions.
    Now I want to re-deploy the app with an updated servlet, adding more functionality. The deployment fails with little information. The deployment log reads:
    ---- Deployment started. ---- Jun 4, 2003 11:20:25 AM
    Wrote WAR file to C:\jdev9031\jdev\mywork\portal_tests\test_proj\deploy\test_proj.war
    Wrote EAR file to C:\jdev9031\jdev\mywork\portal_tests\test_proj\deploy\test_proj.ear
    Invoking DCM servlet client...
    C:\jdev9031\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev9031\jdev\lib\oc4j_remote_deploy.jar http://*****.*****.*****.mtu.edu:1810/Oc4jDcmServletAPI/ ias_admin **** redeploy /extra/oracle/9ias_app C:\jdev9031\jdev\mywork\portal_tests\test_proj\deploy\test_proj.ear HelloServlet
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy /extra/oracle/9ias_app C:\jdev9031\jdev\mywork\portal_tests\test_proj\deploy\test_proj.ear HelloServlet UNDEFINED
    Command = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 2476224db2c74191a5edf6b1013da37c
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=2476224db2c74191a5edf6b1013da37c
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-1)
    #### HTTP return code was -1
    Exit status of DCM servlet client: -1
    Elapsed time for deployment: 14 seconds
    #### Deployment incomplete. #### Jun 4, 2003 11:20:39 AM
    If I can see the .ear file through the Enterprise Manager. If I try to make any changes to the application or attempt to undeploy it I get the following error messege:
    "An error occured while undeploying the application. This Oracle9iAS instance is not in sync with the repository, cannot do further configuration and deployment changes."
    I can still deploy new applications but it seems that once they are out on the 9iAS server I cannot delete or modify them!!!
    In summary I need to figure out the problem redeploying/deleting applications before I take the next step and make the application a portlet.

    If it's failing trying to undeploy with Enterprise Manager, you should repost this in the iAS forum to see if someone more familiar with the internals can help with this.
    Rob

  • How to setup new OC4J instance to host jdev business component (EJB)

    From Jdeveloper 9.0.3 I want to deploy a business component to an new oc4j instance running under 9ias version 9.0.3.
    In jdeveloper I have built and tested an application server connection (type=Oracle Application Sever Remote DCM) to my new oc4j instance on 9ias. My understanding is that the jdeveloper deployment profile wizard will help me construct a profile to build what is known as an "EJB session bean".
    Using EmWebSite, I have created and started the new oc4j instance, and i constructed a datasource to be used for the database connection.
    Is there anything else that I will need to do to the new 9ias oc4j instance prior to building the deployment profile in jdeveloper, and then running the deployment? For instance, does this new oc4j instance somehow have the necessary hooks in it to support this bc4j component? Do I need to install any missing jar files? Do I need to define rmi ports ? Do I need to configure BC4J support?
    BTW ... I have tried to pursue this topic from the Jdeveloper side but the support personnel are not familar with 9ias 903, nor are they familar with 9ias Remote DCM deployment.

    Yes, you should be able to deploy an BC4J application without making any other changes to an IAS instance. For standalone OC4J please look at http://otn.oracle.com/products/jdev/htdocs/config_oc4j_for_bc4j.html
    regards
    Debu

  • Deployment problem on Oracle AS10.1.2

    Hello,
    I have a problem with an application which can be deployed on Oracle application server 10.1.2 running on Windows 2003 corectly, but durring the deployment on Linux (RedHat AS 3.0 Update 6), same application server version, it generates an error:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError: Java heap space
    This is happening durring the ejb compliation/loading stage of the deployment.
    Does anybody had this kind of problem? Do you know a solution to it.
    Thank you,
    Flavius

    I have the similar problem. when i use "Remote DCM" to establish oracle9i AS connection, it gives me the error:
    C:\DevSuiteHome\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\DevSuiteHome\jdev\lib\oc4j_remote_deploy.jar http://192.168.2.166:1810/Oc4jDcmServletAPI/ ias_admin **** listApplications /opt/oraAS
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command listApplications /opt/oraAS UNDEFINED UNDEFINED UNDEFINED
    Command = LISTAPPLICATIONS
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 7f00000171257cfda7294764ab49decb2611e0d3268
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=7f00000171257cfda7294764ab49decb2611e0d3268
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-2)
    #### Invalid Oracle Home directory

  • Can't create Application Server Connection in JDeveloper

    I am trying to make a connection to my Application Server (a Remote DCM connection) but when I test it, I get the following message
    D:\win32app\JDeveloper9.0.3\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar D:\win32app\JDeveloper9.0.3\jdev\lib\oc4j_remote_deploy.jar http://PENELOPE:1810/Oc4jDcmServletAPI/ ias_admin ora9as listApplications E:\oracle\oraas92
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command listApplications E:\oracle\oraas92 UNDEFINED UNDEFINED UNDEFINED
    Command = LISTAPPLICATIONS
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 404, HTTP response msg = Not Found
    #### HTTP response is NOT ok
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (404)
    #### Invalid servlet path
    What could be the problem?
    Thanx

    Okay, I tried it. But it fails now I get following Error Messages in JDev:
    What am I doing wrong?
    C:\JDev903\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\JDev903\jdev\lib\oc4j_remote_deploy.jar http://lin1.hama.de:1811/Oc4jDcmServletAPI/ ias_admin XXX listApplications /home/oracle/ias902/
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command listApplications /home/oracle/ias902/ UNDEFINED UNDEFINED UNDEFINED
    Command = LISTAPPLICATIONS
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    **** Could not get session id from Oc4jDcmServlet
    ** Thread[main,5,main] ** Mon Nov 25 09:35:45 CET 2002 ** ** EXCEPTION: java.io.StreamCorruptedException: InputStream does not contain a serialized object
    java.io.StreamCorruptedException: InputStream does not contain a serialized object
         void java.io.ObjectInputStream.readStreamHeader()
              ObjectInputStream.java:849
         void java.io.ObjectInputStream.<init>(java.io.InputStream)
              ObjectInputStream.java:168
         void oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.receiveSessionId()
         oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandResult oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(java.lang.String)
         oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandResult oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.listApplications(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
         void oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(java.lang.String[])
              Oc4jDcmMain.java:71
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Command has finished
    Receiving command exit value
    #### Could not receive command output from Oc4jDcmServlet
    Receiving command output
    #### Could not receive command output from Oc4jDcmServlet
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-1)
    #### HTTP return code was -1

  • JDeveloper project libraries and Maven dependencies

    hi
    Using the Apache Trinidad Maven JDev Plugin, I am wondering how JDeveloper project libraries and Maven dependencies are supposed to be related (or "matched", or "kept in sync", or "work together", or ...).
    With the Maven settings.xml configured like this ...
    <settings>
      <!-- ... -->
      <localRepository>C:\my-maven-repository</localRepository>
      <!-- ... -->
    </settings>... I tried this ...
    C:\projects>mvn -v
    Maven version: 2.0.9
    Java version: 1.6.0_05
    OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
    C:\projects>mvn archetype:create -DgroupId=com.oracle.forums.mvnfirstproj -DartifactId=mvn-first-proj
    [INFO] OldArchetype created in dir: C:\projects\mvn-first-proj
    C:\projects>cd mvn-first-proj
    C:\projects\mvn-first-proj>mvn org.apache.myfaces.trinidadbuild:maven-jdev-plugin:jdev
    [INFO] Scanning for projects...
    [INFO] artifact org.apache.myfaces.trinidadbuild:maven-jdev-plugin: checking for updates from central
    Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/trinidadbuild/maven-jdev-plugin/1.2.7/maven-jdev-plugin-1.2.7.pom
    2K downloaded
    [INFO] [jdev:jdev]
    [INFO] Generating JDeveloper 10.1.3.0.4 Project mvn-first-proj
    [INFO] Generating JDeveloper 10.1.3.0.4 Project mvn-first-proj-test
    ...After this, the file C:\projects\mvn-first-proj\mvn-first-proj-test.jpr contains
          <!-- ... -->
          <list n="libraryDefinitions">
            <hash>
              <list n="classPath">
                <url path="../../my-maven-repository/junit/junit/3.8.1/junit-3.8.1.jar" jar-entry=""/>
              </list>
              <value v="true" n="deployedByDefault"/>
              <value v="junit:junit:jar:3.8.1" n="description"/>
              <value v="junit:junit:jar:3.8.1" n="id"/>
            </hash>
          </list>
          <!-- ... -->Notice the path for the JAR file in my specific Maven repository, to be relative to my specific project location.
    questions:
    (1) This seems to severely limit the options to share such a JDeveloper project file between developers in a team (e.g. using Subversion), because they would need their Maven repository and their JDeveloper project to be in the same (relative) location. Is this intended? Are there any options to work around these limitations?
    (2) If a project evolves, and additional libraries need to be configured in a JDeveloper project, what would be the preferred approach to keep these in sync with Maven dependency configurations?
    many thanks
    Jan Vervecken

    Hi Jan,
    Yes, some of the current approach is not ideal.
    +"Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time."+ - By having the pom.xml define for the project, I get the ability to run site goals, junit tests and other maven reports - get a feel for the project state. Even with a very basic pom.xml file containing the groupId, ArtifactId, version, SVN repository definition and the release plugin you gain the ability to use "mvn release:clean release:prepare" to help with tagging the source in SVN. These represent progress as up to this point the team has not had access to this.
    +"Making the build process easy".+ - The approach does make the build part easier for JDeveloper 10.1.2. As a maven build, it is now possible to check the project into SVN and have it built by Bamboo, without having to include an installation of JDeveloper 10.1.2 (for library access) on the CI server.
    +"If I understand correctly, in your approach, you are trying to keep both pom.xml and JDeveloper project files up-to-date manually?"+ - The only reason for keeping the JPR in sync with the pom.xml file is to allow the developers to still make use of features such as selecting run from the right click menu. At present, I am still slowly getting up to speed on how JDeveloper works and interacts with OC4J. Ultimately, you would want a maven plugin that will deploy the packaged WAR or EAR to the OC4J stand-alone or remote instance. This plugin would probably wrap the commands that the IDE uses, e.g.
    If you right click on the deployment profile for a project (JDeveloper 10.1.2) and select the Platform > Standalone OC4J options, you find:
    Deploying Ear+
    ${java} ${jvm.max.heap.size} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -deploy -file ${ear.file}
    -deploymentName ${j2ee.app.name}
    Binding Web Apps+
    ${java} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -bindWebApp ${j2ee.app.name} ${j2ee.web.app.name}
    ${oc4j.web.site} ${j2ee.context.root}
    And for Platform > OracleAS Remote DCM:
    ${java} -Djava.protocol.handler.pkgs=HTTPClient
    -jar ${Oc4jDcmClient.jar}
    ${dcm.servlet.url} ${username} ${password}
    redeploy ${remote.oracle.home}
    ${ear.file} ${j2ee.app.name} ${oc4j.instance.name}
    With a maven plugin- wrapping the deployment (possible even to the embedded OC4J) you could then look at get away without maintaining the libraries in the JPR. The JPR the becomes the configuration file for the IDE interaction only without affecting the build. For debugging, you can deploy to a standalone instance and start it using:
    java -server -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
    Then connect to the port specified. The primary project I was working on was developed in Netbeans and deployed to SJSAS. I have since switch this project to working with JDeveloper 11.1.1 as the IDE and doing remote debugging from the IDE connecting to the SJSAS debug port.
    Note, that the maven plugin development for the managing of these aspects should be easier with JDeveloper 11.1.1 and the integrated WLS.
    Have you used this approach in a project that uses ADF Business Components? - Yes, I have used it on one of the smaller ADF projects that had already been produced by the team. This project has all the maven features and ability to deploy to the remotes AS via ant scripts. The approach worked in both the dev and test environments. However, for final deployment, I still used the deployment profile to be consistent with the rest of the team.
    Regards,
    Graeme.

  • Create application server connection to Oracle 9ias

    I'm following the instructions found in the JDeveloper help files for Creating a Connection to Oracle9ias Via Remote DCM and everything makes sense except the part about deploying oc4j-dcm-servlet.ear to a running Enterprise Manager OC4J instance. I can find no information on how to do this and further more can not even find the oc4j-dcm-servlet.ear file anywhere. Does this type of connection from JDeveloper work? What am I missing?

    Hi,
    1: ormi://<server domain name here>/
    if the default ormi port isn't used, then you need to specify it here as well. The ormi port is contained in OC4J_Home\j2ee\home\config\rmi.xml
    The default value is
    <rmi-server port="23791" >
    2: Keep the default
    Frank

  • Deployment profile for a business component deployed to 9ias?

    I am trying to build a deployment profile so I can deploy my business component to an oc4j instance on my remote 9iAS machine.
    In jdeveloper version 9.0.3, the "Business Component Deployment Wizard for EJB session bean" prompts for a both a "Deploy to Connection" and a "Server Connection".
    I am specifying a connection to a "9i Application Server - Remote DCM" for the <deploy to connection> prompt. Per the documentation and the wizard .. you must then specify a server connection.
    I don't understand the server connection piece ... The <new button> for the "server connction" only lets me build a connection a standalone OC4J. I am trying to deploy to a 9ias oc4j instance on a remote machine. I am suppose to somehow specify a connection to the remote 9ias oc4j instance as if it were a standalone instance? How do I build and specify this connection?

    Thanks Frank.
    My jdevloper help system describes how to deploy to 9ias, and I have not yet spotted anything in the fine print that nullifies this.
    The release notes that came with Jdeveloper version 9.0.3.10.35 show a compatibility matrix for deployments to 9ias version 9.0.3 ... my scenario is listed as supported. They note that deployment to 9ias 9.0.2 of bc4j is not suported, and J2EE/WebServices deployment has DCM issues.
    FYI ... I have a TAR openned on this subject, and Metalink support personnel seems to be pretty close to declaring this a bug (internal bug#2597292 and internal bug#2495251). Specifically these bugs relate to JBO component versions 9.0.3.9.51 and 9.0.3.10.12 in reagrds to DCM connections to 9ias. If this is the case then it looks like 9iAS deployment is not supported.

  • Deploying BC4J JSP app to 9iAS (via EJB?)

    Hello. Please help a newbie (new to Java, JDev, JSP, and 9iAS R2).
    I've just built my first BC4J JSP app in JDev, and I've even setup a remote DCM connection to my 9iAS R2 server.
    1. JDev release notes say that BC4J deployment from JDev to 9iAS R2 is not supported. Confusing. What is the best way to deploy this app?
    2. I've created an EJB .ear file in JDev 9.0.3 and deployed it using the EM from OC4J_home. It seemed to deploy okay, but I don't know how to find it via an http path (I know, sounds dumb). Do I need to include a port number? Do I still point to my JSP page, or do I point to a servlet? What would a sample path look like?
    3. Can you recommend a good book, something like "Oracle 9iAS and JSP Apps for Dummies?"
    Thanks in advance.
    -Tony.

    Hello - I've just asked one of the BC4J team to take a look at your questions, so please keep a lookout for a response.
    I am not super familiar with BC4J, but since it's deployed as a J2EE application it should work in the following way:
    When you deploy an EAR file which contains a Web application module, you have to tell the server what URL pattern it should use to know when to send the request to the Web application. The deployment screens in OEM prompt you to enter these URLs when the deployment is done.
    Once the deployment is complete (and assuming that you've not modified the HTTP server port) you should then be able to access the application using
    http://<server-host>:7777/<url>
    where <url> is the pattern you entered for the Web application during the deployment process.
    cheers
    -steve-

  • How to deploy a jsp app as portlet in portal?

    i'm a new bee to this portal & portlet stuff.
    so, pls let me know if my questions doesn't make sense.
    i have a jsp app sitting in jdeveloper 9.0.3
    can i deploy this jsp app as portlet and see it from
    my portal?
    srini

    Hi Benjamin.
    Can u explain more detail about the deployment..
    I also use JDev and want to do like you do (that is deploy to 9iAS using JDev.
    I tried to create new connection via Remote DCM..
    but it gave me error.
    I also read & tried the article that u suggested..
    but still failed..
    So, my questions are:
    1)In step one, where in EM should i install Oc4jDcmServlet.ear? in OC4J_Portal(the same place i deploy jpdk)?
    "Install the DCM Servlet, Oc4jDcmServlet.ear, to a running Oracle Enterprise Manager instance. This servlet is required to run in the same OC4J instance (same JVM) as the Enterprise Manager servlet. The DCM Servlet is located in:
    <jdev_install>/dcm/lib/Oc4jDcmServlet.ear "
    2)I download JDev into my drive C.
    and i did found /dcm/lib/Oc4jDcmServlet.ear
    I not sure what to type..and where should i run the command..
    In the article,it run from c:\winnt\system32\cmd.exe.
    But when i ty to run it, it gave me error
    "Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)"
    should i run the command in the server?Where?
    What command should i type?
    Java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://${EM_OC4J_HOST}:${EM_OC4J_PORT} ${IAS_ADMIN_USER} ${IAS_ADMIN_PASS} -deploy -file Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet "
    Thanks..

  • URGENT -1 from DCM Command  on OBE deploy  === can not deploy/

    Attempting to complete the OBE "Deploying J2EE and ADF Applications
    http://www.oracle.com/technology/obe/obe9051jdev/deployToAppServer/lesson_Deployment.htm
    in order to prove to upper management that it is "easy" to develop on JDEV 9.0.5 build 1618 and deploy to Oc4j 9.0.4
    Compiles clean
    Runs like a champ on the embedded oc4j
    When i try to deploy the J2EE Application to oracle 9.0.4 getting a -1 from Oc4jDcmServlet <#### Deployment incomplete. #### >
    < see attached >
    when i look at the 9.0.4 Instance's XML log i get:
    java.lang.Exception: can not deploy/undeploy to a disabled component: home
    <see attached >
    i have checked the home component. there is no way to enable / disable it just have start and stop and it is in the start state.
    please help.
    JDEV log
    Invoking DCM servlet client...
    C:\Java\j2sdk1.4.2_06\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\Jdeveloper\jdev\lib\oc4j_remote_deploy.jar http://jstoll-xp-lt:1810/Oc4jDcmServletAPI/ ias_admin **** redeploy C:\Ora10G.9.0.4\InfraEngine C:\Jdeveloper\jdev\mywork\deploySamples\deployment_j2ee\View\deploy\application1.ear hr
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy C:\Ora10G.9.0.4\InfraEngine C:\Jdeveloper\jdev\mywork\deploySamples\deployment_j2ee\View\deploy\application1.ear hr UNDEFINED
    Command = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 0a0a0a0a712594fbb82a5544f92a4d1a95f5dc99c4e
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=0a0a0a0a712594fbb82a5544f92a4d1a95f5dc99c4e
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has not finished yet
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=0a0a0a0a712594fbb82a5544f92a4d1a95f5dc99c4e
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has not finished yet
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=0a0a0a0a712594fbb82a5544f92a4d1a95f5dc99c4e
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has not finished yet
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=0a0a0a0a712594fbb82a5544f92a4d1a95f5dc99c4e
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-1)
    #### HTTP return code was -1
    Exit status of DCM servlet client: -1
    Elapsed time for deployment: 48 seconds
    #### Deployment incomplete. #### Oct 31, 2005 3:15:43 PM
    log.xml
    Log Entry: October 31, 2005 3:15:38 PM EST
    Component DCM
    Message Type Error
    Module ID oracle/defaultLogger/ExceptionLogger
    User ID SYSTEM
    Host Name jstoll-xp-lt
    Host Network Address 10.10.10.10
    Process/Thread ID null-Thread[Deamon Worker for TaskMaster of iAS instance at: C:\Ora10G.9.0.4\InfraEngine JVM Id = 763f5d.107482d4e1c.-8000,5,main]
    Message Level 1
    Execution Context ID 10.10.10.10:57042:1130789725003:0
    Message Text
    Remote Execute failed:
    Supplemental Text
    java.lang.Exception: can not deploy/undeploy to a disabled component: home
    at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
    at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)

    DCM command did not complete successfully (-1)
    DCM command did not complete successfully (-1)

Maybe you are looking for

  • Merge statement

    i would like to know if it is possible to identify the row that is causing the problem when you use a merge statement in pl/sql. i know if you create a cursor and then loop through the data you can identify the column but what about if i have only a

  • INS-40925 - One or more nodes have interfaces not configured with a subnet that is common across all cluster nodes.

    Hi All, I am facing the below error while installing Oracle RAC in Silent Mode. SEVERE: There are no common subnets represented by network interfaces across all cluster nodes. SEVERE: [FATAL] [INS-40925] One or more nodes have interfaces not configur

  • Photoshop Bridge always crashes during a copy process.

    While moving a folder with Photoshop Bridge the application crashed and the folder has disappeared on my disk. Why dose Photoshop Bridge always stalls while moving and copying files or folders? What's the background and the solution to prevent this?

  • How to import a class

    Hi all I am developing two PDK projects. I have created a bean in second project. How can I use that bean i my first project. I mean how can import that bean in my first project. Note: I can't create the same bean in my first project. Pleae help.

  • IPhone 3gs reset

    Dears Please note i tried to update my old iphone 3gs and itwas reset back to factory setting but later it was unable to active could some one help me on this regards ragenth