cancel
Showing results for 
Search instead for 
Did you mean: 

503 Service Unavailable : Application cannot be started.

Former Member
0 Kudos

I'm trying to deploy an application. The application, a JSP web module, consumes a web service. I have tried doing this on local dev, it works perfectly but when I transfer it to our dev track an error occurs. When I try to access it, it gives this error

Application cannot be started.

Details: com.sap.engine.services.deploy.container.ExceptionInfo: Application webserviceear cannot be started. Reason: it has hard reference to resource webserviceproxy with type application, which is not active on the server.

I have tried to deploy the dc for webserviceproxy then deployed the ear again but I still get the same error. I know that my web service is running because I can see and test it on wsnavigator. When I change my reference type to weak, I get compiling error instead. I don't have an access to our Visual Admin so I can't be sure what's the cause of the error.

What could be the solution to my problem? Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I got this problem a few times. The solution was to restart the system (on which deployment is required) and then check again.

Regards,

Shitij

Former Member
0 Kudos

Hi Shitij,

Is there no other solution but to restart the server? You see, I don't have the authority to restart the server. I can only restart my SDM.

Former Member
0 Kudos

Well, really I am not sure if there is anything else that can be done. In my current project also, I am faced with the same problem a few times and I've had to restart the system each time and it has worked.

But frankly, I've no idea why this is so or even if there is any other solution. Only, I've not found anything else yet. I raised a message with SAP about this long time back but they sent it back to us saying the applications in my case were from custom developments and so not supported by SAP.

Regards,

Shitij

Former Member
0 Kudos

Hi Shitij,

Just found out that our server restarts daily. But I'm still having the same problem.

Former Member
0 Kudos

Still having the same problem. Here's the log error for the EAR. Hope someone can help me.

-


Jul 6, 2011 9:20:17 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:

[038]Deployment finished with warning

Settings

SDM host : bdhp4639

SDM port : 50918

URL to deploy : file:/C:/DOCUME1/saldua/LOCALS1/Temp/temp29002xx.comlftsclft~dc_webmoduleear.ear

Result

=> deployed with warning : file:/C:/DOCUME1/saldua/LOCALS1/Temp/temp29002xx.comlftsclft~dc_webmoduleear.ear

Finished with warnings: development component 'lft/sclft/dc_webmoduleear'/'xx.com'/'GGD_LFMGTDEV_D'/'20110706211929'/'0':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application pg.com/lft/sclft/dc_webmoduleear and wait. Reason: Clusterwide exception: server ID 98155850:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application pg.com/lftsclftdc_webmoduleear cannot be started. Reason: it has hard reference to resource dc_webserviceproxy with type application, which is not active on the server. at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:597) at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:399) at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:328) at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:162) at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:136) at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342) at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4741) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4646) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4619) at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)Caused by: com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: pg.com/dc_webserviceproxy', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: pg.com/dc_webserviceproxy at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:550) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4395) at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:589) ... 21 moreCaused by: com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: SAPJ2EE::xx.com/lftsclftdc_webserviceear', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: SAPJ2EE::xx.com/lftsclftdc_webserviceear at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:906) at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:523) ... 23 moreCaused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [ExternalApplicationItem.prepare]: SAPJ2EE::xx.com/lftsclftdc_webserviceear at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:188) at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:232) at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.start(SAPJ2EEApplicationItem.java:192) at com.sapportals.portal.prt.service.sapj2ee.Mediator.getAndStartExternalApplication(Mediator.java:127) at com.sap.portal.prt.sapj2ee.StartPortalApplication.coreRun(StartPortalApplication.java:59) at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:902) ... 24 moreCaused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application dc_webserviceproxy at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:460) at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:180) ... 29 more (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

Deployment exception : Got problems during deployment

Edited by: mlsaldua on Jul 6, 2011 3:38 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can try to start these applications manually via telnet or visual admin (only for NW7.0). From the error sent it seems that there are some applications not started. Verify them:

- - -

Error occurred while starting application pg.com/lft/sclft/dc_webmoduleear

...

Caused by: com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed:

- - -

You can also verify if the dependencies are deployed on the DEV system. Another approach is to undeploy this particular SC and deploy it again.

Regarding the server restarts, what do you mean by that? Can you clarify? What is being registered on the logs files from the work folder?

Regards,

Jonas Cella

Former Member
0 Kudos

I already solve my problem. It just worked all of the sudden. I don't know what happened or how it was solved. Thanks for all the replies.