Remote deployment from iAS to iAS

Hello,
I'm new to iAS and need some info/suggestions about deployment in this scenario:
Host A (source) : 1.0.2.2.1 iAS + 9.0.2 OC4J standalone (from zip).
Host B (destination) : 9.0.3.0.0 (build 020927.1699) iAS with OC4J managed by iAS, OHS and WebCache (not Portal,etc.).
We want to deploy the ear files from Host A (development iAS) to Host B (production iAS).It seems we have this choices:
1.with Web-EM (http://hostname:1810) from a client-browser, but it searches the ear locally.
2.with admin.jar : we obtain this error because in the Host B there is no RMI port listening:
$ java -jar /ORACLE/OAS1/j2ee/home/admin.jar ormi://asub.ub.edu/ admin manager
-deploy -file app.ear -deploymentName app
Error: javax.naming.NamingException: ...
Connection refused
3. within the directories in Host B and manually editing XML's: this is the way in Development (Host A) but it's not what we want in Production (implies OS users to Host B).
4.With command-line DCMCTL , it works but only locally from Host B, not from Host A.
5.With JDeveloper, from the developer PC. This is a problem when the ear is large and the PC is not in our network.
I think the best option is (2), with admin.jar , but it fails if the destination Host is not a standalone OC4J (in this case exists a RMI port listening) and we want the pack iAS+OC4J(because also includes OHS,Webcache...)
Would you please indicate how do we deploy to Host B from ear files located at Host A with admin.jar ??
And if it's not possible, could you please indicate references/possible solutions??
Thanks in advance,
Robert.

Hmmm.
We don't use JDeveloper. We will have many external contractors delivering j2ee applications which they developed at their own environment (tomcat,jboss etc) to our win2k delivery terminal server running IAS903 core. They are required to use ANT to build their ear files, deploy their applications, test, make changes and redeploy.... We can't have someone just to sit there to redeploy the app for them! We do migrate their finished apps to our test and production environment.
Currently our delivery environment is oc4j10221 standalone which can hot redeploy an app when a new ear file is detacted and server.xml/global-web-app.xml timestamp are "touched" so the contractors can easily manage their iterations of application delivery.
What is the best way to let the contractors to run their own show in IAS903 core without me getting phone calls to redeploy their apps every 10 minutes?
We need to run IAS903 core in delivery because we keep the exactly same s/w & h/w across environments so we don't have surprises later on.
delivery->test->production (all win2k & ias903 core)
Thx.
Ken

Similar Messages

  • Remote deploys from Windows to Linux fail with deployment plans on WLS 10.0

    Hi there,
    We're using WLS 10.0.1 running in a RHEL environment (actually CentOS release 4.7 for development), and attempting to perform remote deploys from Windows work stations using the weblogic.Deployer ant task.
    It works fine when not using deployment plans, or when performing a remote deploy from a unix based work station such as a Mac. However, introducing a deployment plan causes a failure only when run from Windows.
    The log trace follows:
    weblogic.Deployer -debug -remote -verbose -upload -noexit -name obpservices -source C:\work\obf\ver4.0\services\target\obpservices.war -targets obEnterpriseServer -adminurl t3://wlsdev:7001 -user weblogic -password ******** -redeploy -plan C:\work\obf\ver4.0\services/src/runtime/deployment-plans/steves-deployment-plan.xml
    weblogic.Deployer invoked with options: -debug -remote -verbose -upload -noexit -name obpservices -source C:\work\obf\ver4.0\services\target\obpservices.war -targets obEnterpriseServer -adminurl t3://wlsdev:7001 -user weblogic -redeploy -plan C:\work\obf\ver4.0\services/src/runtime/deployment-plans/steves-deployment-plan.xml
    [WebLogicDeploymentManagerImpl.<init>():103] : Constructing DeploymentManager for J2EE version V1_4 deployments
    [WebLogicDeploymentManagerImpl.getNewConnection():146] : Connecting to admin server at wlsdev:7001, as user weblogic
    [ServerConnectionImpl.getEnvironment():288] : setting environment
    [ServerConnectionImpl.getEnvironment():291] : getting context using t3://wlsdev:7001
    [ServerConnectionImpl.getMBeanServer():239] : Connecting to MBeanServer at service:jmx:t3://wlsdev:7001/jndi/weblogic.management.mbeanservers.domainruntime
    [ServerConnectionImpl.getMBeanServer():239] : Connecting to MBeanServer at service:jmx:t3://wlsdev:7001/jndi/weblogic.management.mbeanservers.runtime
    [DomainManager.resetDomain():36] : Getting new domain
    [DomainManager.resetDomain():39] : Using pending domain: false
    [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@359df4
    [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@359df4
    [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@375edb
    [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@375edb
    [ServerConnectionImpl.initialize():171] : Connected to WLS domain: obportal_domain
    [ServerConnectionImpl.setRemote():482] : Running in remote mode
    [ServerConnectionImpl.init():161] : Initializing ServerConnection : [email protected]9a
    [BasicOperation.dumpTmids():691] : Incoming tmids:
    [BasicOperation.dumpTmids():693] : {Target=obEnterpriseServer, WebLogicTargetType=server, Name=obpservices}, targeted=true
    [RedeployOperation.setupPaths():86] : in place redeploy: false from moduleArchive: C:\work\obf\ver4.0\services\target\obpservices.war
    [RedeployOperation.setupPaths():95] : redeploy src path: C:\work\obf\ver4.0\services\target\obpservices.war
    [BasicOperation.deriveAppName():140] : appname established as: obpservices
    <20/10/2009 10:47:57 AM EST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, obpservices [archive: C:\work\obf\ver4.0\services\target\obpservices.war], to obEnterpriseServer .>
    [ServerConnectionImpl.upload():658] : Uploaded app to /opt/bea/user_projects/domains/obportal_domain/servers/AdminServer/upload/obpservices
    [BasicOperation.dumpTmids():691] : Incoming tmids:
    [BasicOperation.dumpTmids():693] : {Target=obEnterpriseServer, WebLogicTargetType=server, Name=obpservices}, targeted=true
    [BasicOperation.loadGeneralOptions():608] : Delete Files:false
    Timeout :3600000
    Targets:
    obEnterpriseServer
    ModuleTargets={}
    SubModuleTargets={}
    Files:
    null
    Deployment Plan: \opt\bea\user_projects\domains\obportal_domain\servers\AdminServer\upload\obpservices\plan\steves-deplo
    yment-plan.xml
    App root: \opt\bea\user_projects\domains\obportal_domain\servers\AdminServer\upload\obpservices
    App config: \opt\bea\user_projects\domains\obportal_domain\servers\AdminServer\upload\obpservices\plan
    Deployment Options: {isRetireGracefully=true,isGracefulProductionToAdmin=false,isGracefulIgnoreSessions=false,rmiGracePeriod=-1,retireTimeoutSecs=-1,undeployAllVersions=false,archiveVersion=null,planVersion=null,isLibrary=false,libSpecVersion=null,libImplVersion=null,stageMode=null,clusterTimeout=3600000,altDD=null,altWlsDD=null,name=obpservices,securityModel=null,securityValidationEnabled=false,versionIdentifier=null,isTestMode=false,forceUndeployTimeout=0,defaultSubmoduleTargets=true,timeout=0}
    [BasicOperation.execute():425] : Initiating redeploy operation for app, obpservices, on targets:
    [BasicOperation.execute():427] : obEnterpriseServer
    [RedeployOperation.initializeTask():55] : Starting task with path: \opt\bea\user_projects\domains\obportal_domain\servers\AdminServer\upload\obpservices\app\obpservices.war
    java.io.FileNotFoundException: \opt\bea\user_projects\domains\obportal_domain\servers\AdminServer\upload\obpservices\plan\steves-deployment-plan.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at weblogic.deploy.internal.adminserver.operations.AbstractOperation.parsePlan(AbstractOperation.java:1027)
    at weblogic.deploy.internal.adminserver.operations.AbstractOperation.execute(AbstractOperation.java:133)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl$2.run(DeployerRuntimeImpl.java:816)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl.performDeployerActions(DeployerRuntimeImpl.java:810)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl.redeploy(DeployerRuntimeImpl.java:568)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:443)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:248)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:153)
    at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:63)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:153)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10.run(AuthenticatedSubjectInterceptor.java:377)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:375)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:310)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
    at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    [ServerConnectionImpl.close():334] : Closing DM connection
    [ServerConnectionImpl.close():354] : Unregistered all listeners
    [ServerConnectionImpl.closeJMX():374] : Closed JMX connection
    [ServerConnectionImpl.closeJMX():386] : Closed Runtime JMX connection
    [ServerConnectionImpl.closeJMX():398] : Closed Edit JMX connection
    Note the file path that cannot be found: "\opt\bea\user_projects\domains\obportal_domain\servers\AdminServer\upload\obpservices\plan\steves-deployment-plan.xml ".
    Of course this file does actually exist when the correct path separators are used.
    Is this a bug? Is there anything we can do about it? The chances of us upgrading WLS are very remote unfortunately.
    Thanks in advance,
    Steve C

    This is something you should definitely file an Oracle support ticket for. It's entirely possible there's a patch for this.

  • Remote Deployment from JDeveloper using "Parent Application"

    Hi,
    I am newbie in remote deployment (from JDeveloper). I would like to deploy my application in the OAS 10g, but I want to set the "Parent Application" in a different value than default.
    Is it possible?
    Where could I find documentation of remote deployment alternatives (I cannot use the "dcmctl" command directly for security reasons)...
    Best regards and thank you in advance for your help.

    Check out this thread.
    Deploy Exception with new Jdeveloper 11.1.1.1.0

  • Remote Deploy from NetBeans to weblogic

    Hi...
    I want to deploy an application from IDE netBeans 7.0 to a remote server weblogic but when I set up my server wizard ask me about the ubication of server domain so I can't set up the configuration.
    Thanks
    Edmar

    You can build the project, which will create an archive (war, ear) under the project's build directory (though there are some differencies between Ant-based projects and Maven-based projects).
    Then you can deploy this archive using WebLogic's admin console.

  • Remote deployment using JSC

    Can anyone help me understand why I can't remotely deploy my JSC projects from on computer to another? I have tried using Sun JAS 8.1, 8.2, and Glassfish but not one shows up for remote deployment from JSC after I've added them.

    Marco,
    Thanks for the pointers on Glassfish, I had turned my attention to it since I couldn't get the bundled Solaris 10 appserv to work - Thanks for saving me the wasted effort!
    I removed Glassfish, and reinstalled 8.2, I also downloaded a fresh JSC2update1 to replace my updated JSC2 original, and tada the thing appears!
    Hopefully, I can finally get some serious mileage out of JSC!

  • Remote Deployment permissions

    Hi all,
    I want to do a remote deployment from my pc to a cluster on different machines using the admin_client.jar file.
    The example in the OC4J Deployment Guide is this :
    java -jar admin_client.jar
    deployer:oc4j:opmn://test-cycle.oracle.com/testunit
    oc4jadmin_ welcome1+
    -deploy
    -file d:\temp\rupg\testru.ear
    -deploymentName testru –bindAllWebApps
    As you can see the example uses the oc4jadmin account to do a remote deployment.
    That also works for me. However, when I use another test account that is not a member of the oc4j-administrators+ role (see system-jazn-data.xml) I get the following error:
    +FINER: RMIConnection.writeDisconnectMessage Preparing to send disconnect message: Login failed Not authorized*+
    FINE: RMIClient.lookup Failed during lookupjavax.naming.AuthenticationException: Not authorized
    at oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:100)
    +...+
    I already tried making the test account a member of the oc4j-app-administrators+ role. This gives the test account only com.evermind.server.rmi.RMIPermission Login.
    However, a -validateURI or -deploy using the admin_client.jar still failes.
    So my question is : Is there a list available somewhere of all the (jazn) permissions needed to do a remote deployment ? I couldn't find such a list in the deployment guide (10.1.3.4.0) ...
    Regards,
    Ronald Wouters

    I found a solution to this problem.
    The problem was that I was trying to do a remote deploy NOT to the default "home" oc4j instance but to another oc4j instance that I created in the same application server instance. I had given my test user only "RMIPermission login". However, this test user was defined only in the system-jazn-data.xml of the "home" oc4j instance.
    I simply copied this xml over to the other oc4j instance, thereby setting up the same users, roles and permissions in the new oc4j instance as in the home instance.
    After restarting the appserver, remote deployment using my test account worked just fine.
    I'm pretty sure this is not the "official" way to do this because in a production environment you would probably not even have write permissions to the directory containing these xml files.
    Can anyone tell me if the javasso stuff that I read about in the config and admin manual could be the "official" way to solve this kind of problem ? Or am I way off base here ?
    Any insight would be much appreciated.
    Regards.

  • Error While Deploying MYDemo application in ias 10.1.2

    I deployed the MYDemo in iAS 10.1.2
    while calling URL
    (executing the app)
    http://xxx.abc.org:7777/HRDemo/pages/EmployeesTable.jspx I get the following error ? Any Clue?
    java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver     at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)     at java.lang.Class.getDeclaredMethod(Class.java:1262)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl._setupJboDomainStuff(AdfFacesFilterHelperImpl.java:187)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl.init(AdfFacesFilterHelperImpl.java:64)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.init(AdfFacesFilterImpl.java:96)     at oracle.adf.view.faces.webapp.AdfFacesFilter.init(AdfFacesFilter.java:56)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.getFilterConfig(HttpApplication.java:7708)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:487)     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.AJPRequestHandler.run(AJPRequestHandler.java:224)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)     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 I ask, is it a JHeadstart 10.1.3 application that you deployed to your 10.1.2 server ? I've had no end of grief to doing this with conflicts in JDK, libraries etc. If this is your case would you mind sharing your experience ?!
    Cheers,
    Brent

  • Cannot find deployed Remote Bean from external client

    I have a very simple Stateless Session bean running in the SAS PE 9, which from what I can see has been successfully deployed. The application is listed as enabled in the Admin Console. Likewise, when I look at the JNDI tree, I can see the following entries at the top:
    com.intecbilling.svConnectorHarness.TestRunnerRemote
    This is the name of the Remote Interface, that I have defined for the ejb TestRunnerBean. It does very little:
    package com.intecbilling.svConnectorHarness;
    import javax.ejb.Stateless;
    @Stateless
    public class TestRunnerBean implements TestRunnerRemote, TestRunnerLocal {
        public void runTest() {
            System.out.println("Running test!");
    }and the Remote Interface is
    package com.intecbilling.svConnectorHarness;
    import java.rmi.RemoteException;
    import javax.ejb.Remote;
    @Remote
    public interface TestRunnerRemote {
        void runTest() throws RemoteException;
    }Now, I'm trying to call this runTest() method from an external client. The client code looks like
        public void connectUsingJNDI(String paramName) throws NamingException {
            Properties env = new Properties();
            env.put("java.naming.factory.initial", initialFactory);
            env.put("java.naming.provider.url", providerUrl);
            String myJndi = jndiName;
            if (paramName != null) {
                myJndi = paramName;
            Context ctx = new InitialContext(env);
            System.out.println("looking for " + myJndi);
            Object returnedObject = ctx.lookup(myJndi);
            System.out.println("returnedObject=" + returnedObject);
        }I am using:
    - com.sun.jndi.cosnaming.CNCtxFactory as the initial factory
    - iiop://<machineName>:3700 as the url. I'm using 3700 because that is the port against which my appServer's orb-listener-1 is using
    I've tried to look for the JNDI name of
    com.intecbilling.svConnectoryHarness.TestRunnerRemote
    because that is what is displayed in the JNDI View. When I do this, I get the following error:
    /svjca-src> runMe.sh com.intecbilling.svConnectorHarness.TestRunnerRemote
    looking for com.intecbilling.svConnectorHarness.TestRunnerRemote
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
         at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
         at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:484)
         at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:523)
         at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:501)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.intecbilling.svConnectorHarness.TestRunnerClient.connectUsingJNDI(TestRunnerClient.java:42)
         at com.intecbilling.svConnectorHarness.TestRunnerClient.main(TestRunnerClient.java:57)
    Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
         at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
         at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
         at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:470)
         ... 5 more
    Now, no matter what I do, I get this. Running with the AS jars in the classpath or not. Running with the following system variables
    -Dorg.omg.CORBA.ORBClass=com.sun.corba.ee.impl.orb.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.ee.impl.orb.ORBSingleton -Djavax.rmi.CORBA.UtilClass=com.sun.corba.ee.impl.javax.rmi.CORBA.Util
    Also provide me no joy. I've also tried using the JNDI format with the corbaname embedded in it (looks like corbaname:iiop:machinename:3700#com.intecbilling.svConnectorHarness.TestRunnerRemote) and I get the exact same exception.
    From what I'm seeing, I'm finding the remote NamingContext, but it doesn't like the JNDI name. I've tried fully-qualified names (as it is displayed in the JNDI tree) and unqualified names with the exact same results. From all of the posts I've read, I've tried all the various combinations that I can see to no avail. Is there a security issue going on here? I haven't enabled any security at all. I'm running out of ideas, and if I can't get any joy, I'll probably have to use a different app server to play with.
    Thanks for any help,
    Ed

    Hi Ed,
    We have an EJB FAQ entry that describes how to access Remote EJBs from a stand-alone (non Java EE) client. In a nutshell, put appserv-rt.jar in your classpath and instantiate the 0-arg InitialContext constructor. You can find more details here :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

  • Does pass-by-value in an EJB deployment descriptor work in iAS 6.0 sp4?

    I deployed an EJB into iAS 6.0 SP4 with pass-by-value session element set to true but the EJB is still passing by reference. Is this a known problem in SP4? I checked the session descriptor in kregedit for that EJB and I couldn't find any entry that relates to the pass-by-value element.
    Please help.

    Hi Yudong,
    Thanks for the info. Do you know if this is only specific to SP4? The problem seems to be present in SP3 as well.
    Thanks

  • Attempting to deploy an application on iAS 6.0 sp3 on solaris using the iASDT; CLASSPATH and GUID question.

    When I attempted to use iasdeploy deploymodule, it copied the file to <iAS install>/ias/JAR directory. But if I try and jar tvf test.war, the jar throws an exception. It looks like the file gets corrupted. Any suggestions?
    So a began to use the iASDT tool to assemble and deploy a webapp (war) on solaris. Everytime I add a jar it says that there are external dependencies. I think thier may be some type of name collision on the CLASSPATH. I am attempting to include:
    jaxp.jar, xerces.jar, log4j.jar, jaxp.jar, jaas.jar, and some other jars. I think the classes in these files may be on the CLASSPATH already. Is there a way to see the classpath of the server? I have looked in the registry under ApplicationServer/6.0/...but there doesn't seem to be a java entry. I looked inside the kjs script and that really doesn't indicate anything either. I saw the directories /opt/iplanet/ias6/ias/classes/java and /opt/iplanet/ias6/ias/java/jars contain jar files. Are these on the classpath? Is there any documentation of the origins and versions of things that are on the classpath (xerces.jar, xalan.jar, ldapjdk.jar, etc.)
    Additionally, I thought all I really needed was to get a guid to put it into the ias DD xml files, but when I launch ./kguidgen I get the following response:
    guidgen: Could not get arp for <hostname>
    guidgen: Could not get arp for <hostname>
    Several attempts to create GUID failed
    Any ideas on this one I am stumped?

    Hi,
    Please correct me if I'm wrong in understanding your problem. You have a test.war file and you are trying to add a .jar file to it and deploy the application (using command line & GUI tool), and this is where you have a trouble of external dependencies. So you think that this is a problem of GUID, so you are trying to obtain a GUID number manually, but the utility throws "Could not get arp..." error.
    If this is the problem, then let us check first, if the application server is registered using the iASAT. Next, please give a try of deploying the .jar file initally & try to access it, then, undeploy the .jar file and deploy the .war file and access it. Next, remove the .war file and try to build a .ear file using both the .war & .ear files. Please let me know if this helps for me to investigate further on this.
    Regards
    Raj

  • Testing 8021x from switch to IAS server

    Is there any command to use for test the communication beetween cisco 3560 switch and IAS server. I m trying to make work port based authentication.(XP client get vlan after authentication of user/computer) Now i have configured IAS server with basic EAP configuration and also switch have all nessesary 802.1x configs. (i suppose) So is there any command that i could use to test is connection OK from switct to IAS server.(access request)

    Hi
    I tryed with command "test aaa group radius user passwrd new-code level level-radius"
    Is that command how i test Radius access reguest beetween authenticator--authenticator server. I get answer "Flowing through Radius and Raw not implemented yet" To IAS system log nothing appears.
    Any idea what is wrong.
    Thanks
    Juha

  • Exception/error messages from remotely deploying sun application server 8.2

    Hi
    I have a solaris network with some servers running sun application server 8.2. When I deploy applications to these application servers (using ant) from a single server connected to them on the netwrok, sometimes exceptions are thrown. What is done now, is the person doing the deploying from the central server, logs onto each server with an appserver and looks through each application servers log file to see if there were any exceptions thrown while deploying apps on that server. What I would like to do is find some way to have those exceptions sent back to the deploying system so that they can show up on the terminal from which the any script was run.
    appserver <------------------------- central server running ant -----------------------------------> appserver
    / | \
    / | \
    / | \
    / | \
    / | \
    appserver appserver appserver
    Many appservers getting apps deployed to them through the use of ant. Want to catch any exception thrown by any of the appservers and view on terminal on central server running ant.
    Any ideas/thoughts?
    Thanks...
    Mike

    The diagram did not come the way I had hoped. It was suppose to look like the "central server running ant" was pointing to a number of different servers running an appserver.
    Thanks for any suggestions...
    Mike

  • Error deploying from Jdeveloper 10.1.3.4 to OAS 10.1.2

    I've upgraded my Jdeveloper to 10.1.3.4 and imported an old project written in Jdev 10.1.2.0 (build 1811).
    My application uses Struts, JSP, Log4j and EJB's
    I can deploy to my local o4cj in the new Jdev and the applciation runs fine but when I try to deploy to my 10.1.2 app server I get the following error within the DCM log file:
    TM] Remote evaluate failed.
    Current StackTrace:
    java.lang.Throwable
    at oracle.ias.sysmgmt.task.TaskMaster.remote_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.redeploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.redeploy(Unknown Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandThread.executeCommand(Unknown Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandThread.run(Unknown Source)
    remote exception: oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Nested exception
    Resolution:
    Base Exception:
    java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test: Error
    loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    remote exception StackTrace:
    java.rmi.RemoteException: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test: Error
    loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.deploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
    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)
    Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test:
    Error loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:91)
    at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:429)
    at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:348)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.InstantiationException: Error initializing ejb-module; Exception Error in application careers-test: Error loading
    package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
    Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
    Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
    is:
    java.sql.SQLException: invalid arguments in call
    at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2461)
    at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:2445)
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2225)
    at com.evermind.server.Application.postInit(Application.java:557)
    at com.evermind.server.Application.setConfig(Application.java:171)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1996)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:430)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:138)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
    ... 10 more
    It looks like it's not picking up the datasource yet it works fine via the local oc4j. From my understanding the datasource is picked up from the connections in Jdeveloper but i've tried adding a datasource.xml to my "Model" tier within the "META-INF" folder but the error is still being generated.
    I've amended the J2SE version to 1.4.2_02 on both the ViewController and Model project properties as recommended within the Jdev 10.1.3.4 documentation. I've also just read the following but i'm not sure how relevant it is as the error seems to be that it can't find a datasource not that the password is not being read.
    "Data-Sources Password Handling and Application Server 10.1.2
    It is important to note that deploying an application that uses connections defined in data-sources.xml developed using JDeveloper 10.1.3 that is deployed to Application Server 10.1.2 will result in a deployment failure. One example would be an application that uses an EJB to connect to a database. This is due to differences in the way Application Server 10.1.3 and Application Server 10.1.2 interpret password indirection. We are expecting a patch for Application Server 10.1.2 to be made available that will allow deployment of these types of applications to Application Server 10.1.2."
    I imported the project datasource files from my old project that were developed in Jdev 10.2.3 rather then creating the connection via Jdev 10.1.3.4 but this still hasn't cleared the error.
    I've spent a few days on this so far so any help would be most appreciated.
    Thanks.

    "Not really. You can exclude the data-sources.xml from the EAR file and rely on the setup of the Global Datasource, created before deployment.
    --olaf"
    Thanks. Yes I did try this but when I setup the datasource via the datasources tab within the console I still received the error. This may have been due to an error on my part but I can't be sure as i've tried all sorts of different approaches over the last few days. I initially didn't have a datasource.xml so there wasn't one to exclude (via the deploy properties in Jdev) I had relied on Jdeveloper to setup the datasource via my connections. I read somewhere that Jdev does this fduring deploy and indeed it works fine for my embedded oc4j and when deplolying from Jdeveloper 10.1.2 so it would seem odd that the same approach doesn't work for Jdeveloper 10.1.3.
    Surely the release notes regarding the password issue is the reason why I can't deploy from Jdev 10.1.3.4 to app server 10.1.2?
    The release notes say that a patch is due to fix the issue with password indirection, Olaf do you know where I can get this?
    Also how do I setup Jdev not to write the datasources during deployment? If I don't have a datasources.xml then there is nothiing to exclude. Is there a setting somewhere in Jdev 10.1.3.4?
    Edited by: [email protected] on 05-Mar-2009 08:08
    Edited by: [email protected] on 05-Mar-2009 08:12

  • OC4J deployment from jdeveloper RC2

    I have downloaded and installed the Jdeveloper rc2 with accompanying BI Beans, and I have completed a BI Beans tutorial, except for the last step: Deploying a JSP Application.
    The JSP run fine in the embedded OC4J environment, my problem is when deploying it to my IAS server.
    I have downloaded the oc4j_extended.zip from 25. march, installed it on my solaris 2.8 server where my oracle 9.0.1.2 databases are running, and started it with:
    "java -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -jar oc4j.jar &"
    as per instructions in the tutorial.
    Pointing my browser to http://myhost:8888 gives me the default version 9.0.2.0.0A startup page, with a link to some samples etc..
    I am able to run the NumberGuess sample without any errors.
    Furthermore, I have followed the instructions and created a deployment profile in my Jdeveloper BIWorkspace, and tested the connection successfully.
    Now, when I try to deploy the project, Jdeveloper creates a .ear and .war file locally, but they are never transferred to my oc4j server. Neither has the server.xml file etc. been updated to include my application jsp.
    These are the messages from the deployment message window:
    Wrote WAR file to C:\ora_misc\jdev9i_rc2\jdev\mywork\BIWorkspace\Project1\webapp.war
    Wrote EAR file to C:\ora_misc\jdev9i_rc2\jdev\mywork\BIWorkspace\Project1\webapp.ear
    Invoking Oracle9iAS admin tool...
    C:\ora_misc\jdev9i_rc2\jdk\jre\bin\javaw.exe -jar C:\ora_misc\jdev9i_rc2\j2ee\home\admin.jar ormi://sunset/ admin **** -deploy -file C:\ora_misc\jdev9i_rc2\jdev\mywork\BIWorkspace\Project1\webapp.ear -deploymentName webapp
    My PC chugs along for a while, the stops working, with no error messages.
    More worrying is that on the server, in the window that started the oc4j server, the following appear:
    java.lang.NullPointerException
    at java.io.ObjectInputStream.inputArray(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at com.evermind.server.rmi.RMIInputStream.readType(RMIInputStream.java:118)
    at com.evermind.server.rmi.RMIConnection.handleMethodInvocation(Compiled Code)
    at com.evermind.server.rmi.RMIConnection.run(Compiled Code)
    at com.evermind.util.ThreadPoolThread.run(Compiled Code)
    Any advice on how to proceed to:
    a: Fix the automatic deployment...
    b: Deploy manually.
    Jens
    Ps. The steps I am following can be found in the document: http://otn.oracle.com/docs/products/bib/tutorials/building_a_jsp/9_deploy_JSP.html

    Ok, I'm a bit further:
    I changed my PATH and CLASS_PATH env. variables to make sure that /usr/j2se is first,
    and issued the command
    alias java="/usr/j2se/java"
    so that java -version now return:
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)The nullPointer exception on the server node has now disappeared, and the deployment completes, but with errors.
    The file webapp.ear is copied to the applications directory, and the jdeveloper deployment log window contains the following:
    Wrote WAR file to C:\ora_misc\jdev9i_rc2\jdev\mywork\BIWorkspace\Project1\webapp.war
    Wrote EAR file to C:\ora_misc\jdev9i_rc2\jdev\mywork\BIWorkspace\Project1\webapp.ear
    Invoking Oracle9iAS admin tool...
    C:\ora_misc\jdev9i_rc2\jdk\jre\bin\javaw.exe -jar C:\ora_misc\jdev9i_rc2\j2ee\home\admin.jar ormi://sunset/ admin **** -deploy -file C:\ora_misc\jdev9i_rc2\jdev\mywork\BIWorkspace\Project1\webapp.ear -deploymentName webapp
    Error: java.lang.OutOfMemoryError
    Exit status of Oracle9iAS admin tool (-deploy): 1
    #### Deployment incomplete. #### Apr 30, 2002 1:15:20 PM
    A little more background info:
    The OC4J server is invoked on my oracle db-server, a sunfire V880 dual cpu and 4Gig ram.
    Of course, running Oracle, this server has been optimised for shared memory, so could it be that I need to change my /etc/system settings to leave more ram available?
    Or could it be that the OutOfMemoryError is just the symptom of an underlying cause?
    Any hints would be welcomed.
    Thanks,
    Jens

  • Ejb remotly accessed from different ejb without parent tag

    Hi,
    is there any way, how to access EJB A deployed in a.aer from another EJB B deployed in b.ear? a.ear and b.ear are deployed at the same IAS 9.0.4.2 and neither of these EAR's is parent EAR ( don't want to use parent tag)?
    Thank you very much for any advice.
    Eugen

    Hi,
    is there any way, how to access EJB A deployed in a.aer from another EJB B deployed in b.ear? a.ear and b.ear are deployed at the same IAS 9.0.4.2 and neither of these EAR's is parent EAR ( don't want to use parent tag)?
    Thank you very much for any advice.
    Eugen

Maybe you are looking for

  • Major 30G Photo Skipping/Stopping/Reset Problems

    *I originally posted this under "5th Generation" which I think was a mistake, so I'm posting it here.* Hi all. I'll try to give the short version of my major iPod problems I've been having. It's been going on for a couple months straight now. The fir

  • To set delay in process chain using a program

    Hi all, We have a requirement in which the loads from nearly 15 sources (DSO) gets loaded into the Cube thro 15 process chains. The source gets loaded from the PI interface. So it might happen that simultaneously 10 loads will be started and reach th

  • JSP / SQL Server / Widows 2000

    Can anyone provide a list of things to check in getting a JSP with a Database Connection to SQL Server 7 database on Windows 2000? I keep getting this error message: javax.servlet.ServletException: Unable to load class com.microsoft.jdbc.sqlserver.SQ

  • Mobile Infrastructure 7.0 JSP on Windows Mobile installation..?

    Hi guys, I have an urgent need for installation (.cab/.exe) for a MI 7.0 JSP SP11(or the latest SP12) for Windows Mobile 5.0 based device.. Do you have any notion from where I can get the installation? A look through SAP Notes did not get me to any m

  • Single app mode with VPP Token Managed Distribution apps?

    For some reason, single app mode setting in Profile Manager will only pick up apps that have been purchased by the device/user Apple ID I.e. individuals personally purchased apps, it will not allow single app mode on pushed apps via VPP Token Managed