Weblogic Application Deployment Error – “Changing the source location…”


Stack Trace:

[01:41:48 PM] Weblogic Server Exception: weblogic.management.ManagementException: [Deployer:149007]New source location, '\JDeveloper\system11.1.1.4.37.59.23\o.j2ee\app\.ear', cannot be deployed to configured application, ''. The application source is at 'JDeveloper\system11.1.1.4.37.59.23\o.j2ee\drs\'. Changing the source location is not allowed for a previously attempted deployment. Try deploying without specifying the source.
[01:41:48 PM]   See server logs or server console for more details.
[01:41:48 PM] weblogic.management.ManagementException: [Deployer:149007]New source location, '\JDeveloper\system11.1.1.4.37.59.23\o.j2ee\app\.ear', cannot be deployed to configured application, ''. The application source is at 'JDeveloper\system11.1.1.4.37.59.23\o.j2ee\drs\'. Changing the source location is not allowed for a previously attempted deployment. Try deploying without specifying the source.
[01:41:48 PM] ####  Deployment incomplete.  ####
[01:41:48 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

Reason:

I got this error when I did the following:
– first deployed the application to the embedded weblogic server by right-clicking on a JSF/JSP file
– then deployed the same WAR (and later the EAR) to the server by right-clicking on the Project

So instead of starting the embedded server using Run -> StartServerInstance in JDev, I had tried to start it by launching a JSF/JSP page and then tried to deploy the app onto it (why? I was testing a portlet deployment) …which apparently is bad because you are trying to deploy the same WAR/EAR to the two location using two different ways.

Workaround:

– Shutdown the embedded server
– Start it back up using Run -> StartServerInstance
– Deploy the WAR by right clicking on the project

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s