I want to deploy EAR, WAR.... Help Me..
Hi. experts...
My PC is connected to DTR in J2EE server.
I created WAR(Web Module) & EAR on NWDS in my PC.
I trid to deploy the WAR & EAR from my PC.
But exception is occured.
My Question are.
1. What is Problem? my WAR & EAR or Deployment Tool
2. IF my WAR & EAR have problem, what is possible cause of the problem??
IF Deployement Tool is problem, what is possible cause of the problem??
Thanks in advance..
Regards.
the followings are Infomation about problem..
J2EE Info.
Cluster-Version: 7.00 PatchLevel
Build-On:Thursday, August 17, 2006 11:50 GMT
Perforce-Server:
Project-Dir:JKernel/645_VAL_REL
JKernel Change-List:105559
Build machine:SAPInternal
Build java version:1.3.1_18-b01 Sun Microsystems Inc.
SP-Number: 09
Source-Dir: D:\make\engine\645_VAL_REL\builds\JKernel\645_VAL_REL\archive\dbg
NWDS Info.
SAP NWDS
version 7.0.06
build ID 200601142119
Exception info.
Settings
SDM host : saprnd
SDM port : 50018
URL to deploy : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp25980uHRear.ear
Result
=> deployment aborted : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp25980uHRear.ear
Aborted: development component 'uHRear'/'sap.com'/'localhost'/'2007.01.12.10.53.54'/'0':
Caught exception during application deployment from SAP J2EE Engine's deploy API:
com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file uHRweb.warcom.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason: java.io.IOException: Stream closed
at com.sap.engine.services.deploy.ear.jar.SimpleEARUpdater.writeUpdatedJar(SimpleEARUpdater.java:338)
at com.sap.engine.services.deploy.ear.jar.SimpleEARUpdater.writeUpdatedJar(SimpleEARUpdater.java:231)
at com.sap.engine.services.deploy.ear.jar.SimpleEARUpdater.updateEar(SimpleEARUpdater.java:192)
at com.sap.engine.deploy.manager.DeployManagerImpl.makeTempEar(DeployManagerImpl.java:3737)
at com.sap.engine.deploy.manager.DeployManagerImpl.makeNewEar1(DeployManagerImpl.java:3715)
at com.sap.engine.deploy.manager.DeployManagerImpl.deployUpdateAction(DeployManagerImpl.java:529)
at com.sap.engine.deploy.manager.DeployManagerImpl.deploy(DeployManagerImpl.java:513)
at com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performDeployment(EngineApplOnlineDeployerImpl.java:186)
at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)
at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)
at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)
at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)
at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:48)
at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)
at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)
at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)
at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)
at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)
at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.doPhysicalDeployment(DeployerImpl.java:120)
at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:89)
at com.sap.sdm.apiimpl.local.DeployProcessorImpl.deploy(DeployProcessorImpl.java:74)
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.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.requestRemoteCall(RemoteProxyServerImpl.java:127)
at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.process(RemoteProxyServerImpl.java:38)
at com.sap.sdm.apiimpl.remote.server.ApiClientRoleCmdProcessor.process(ApiClientRoleCmdProcessor.java:84)
at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)
at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)
at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:286)
at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)
at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)
at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.io.IOException: Stream closed
at java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
at java.io.BufferedInputStream.available(BufferedInputStream.java:336)
at com.sap.engine.services.deploy.ear.jar.SimpleEARUpdater.writeUpdatedJar(SimpleEARUpdater.java:331)
... 34 more
. Reason:
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
Deployment exception : The deployment of at least one item aborted
Hi Min,
Restart the server once and try deploying . no luck means remove the EAR file using Visual administrator and deploy it.
Let me know the status.
Regards, Suresh KB
Similar Messages
-
Error during deploying *.ear to sap using ant
I want to deploy ear to sap with ant script,but it can not work.The error information as follows,can anybody give me some advice if you had the similar error,thanks.
C:\usr\sap\LJ1\J00\j2ee\deployment\ant>ant -f example_build.xml deploy -v
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: example_build.xml
Detected Java version: 1.6 in: D:\Java\jdk1.6.0_18\jre
Detected OS: Windows 2003
parsing buildfile C:\usr\sap\LJ1\J00\j2ee\deployment\ant\example_build.xml with
URI = file:/C:/usr/sap/LJ1/J00/j2ee/deployment/ant/example_build.xml
Project base dir set to: C:\usr\sap\LJ1\J00\j2ee\deployment\ant
parsing buildfile jar:file:/D:/Perforce/tools/ant1.7.0/lib/ant.jar!/org/apache/t
ools/ant/antlib.xml with URI = jar:file:/D:/Perforce/tools/ant1.7.0/lib/ant.jar!
/org/apache/tools/ant/antlib.xml
[property] Loading C:\usr\sap\LJ1\J00\j2ee\deployment\ant\cfg\ant.properties
Build sequence for target(s) `deploy' is [deploy]
Complete build sequence is [deploy, import_ear, undeploy, params, ]
deploy:
[sapdeploy] Starting deployment with the following properties:
[sapdeploy] Version Handling Rule: all
[sapdeploy] Error Handling Strategies: [error action: 'prerequisites', error str
ategy: 'stop', error action: 'deploy', error strategy: 'stop']
[sapdeploy] The targeted SAP J2EE Engines are: [server host: 'localhost', server
port '50004', user name 'Administrator'.]
[sapdeploy] Deploy timeout: null
[sapdeploy] Starting to validate the data...
[sapdeploy] Validation ended
[sapdeploy] root dir c:\temp
[sapdeploy] Selected archives for deployment:
[sapdeploy] 1: 'c:\temp\dataservices-samples.war'
[sapdeploy] 2: 'c:\temp\test.ear'
[sapdeploy] Starting validation for the engine 'server host: 'localhost', server
port '50004', user name 'Administrator'.'
[sapdeploy] Engine data validated successfully
[sapdeploy] Starting deployment for the engine 'server host: 'localhost', server
port '50004', user name 'Administrator'.'
[sapdeploy] An error occured during the deployment.
[sapdeploy] The result of the deployment is: Error
[sapdeploy] Deployment ended
BUILD SUCCESSFUL
Total time: 0 secondsThe problem has been resolved,I make a stupid mistake.The reason caused the error is that the user of server was locked.I hope these will be helpful for people troubled by the same mistake.
-
Are JDev autogenerated paths needed to create ear, war and jar files ?
Hi
We want to create ear, war and jar files from Ant build script generated from JDeveloper 11.1.1.7.
We also like to use ojdeploy with it.
In the process of creating build.xml files from projects, we see these paths.
We also have standalone Weblogic installed with ADF runtime 11.1.1.7
Questions:
1- Do we need these path ids to generate ear, jar, war files properly and then deploy the ear to our standalone Weblogic so that our webapp can run ok ?
2- Why are they generated, if they are not needed
From research, it appears that we don't need these paths except to keep ant targets of init, compile, exec etc with ojdeploy.
3- Is that true ?
We are afraid that because no paths are listed in the build.xml, then when we deploy the ear app, it cant use the ADF runtime on the standalone WLS.
Thanks in advance for answering.
Sincerely
eg of paths generated below:
<path id="library.SOA.Designtime"/>
<path id="library.SOA.Runtime"/>
<path id="library.BPEL.Runtime"/>
<path id="library.Mediator.Runtime"/>
<path id="library.MDS.Runtime">
<pathelement location="{oracle.middleware}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
</path>
<path id="library.BC4J.Service.Runtime">
<pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar"/>
<pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar"/>
<pathelement location="{oracle.middleware}/oracle_common/modules/commonj.sdo_2.1.0.jar"/>
<pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
<pathelement location="{oracle.middleware}/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar"/>
<pathelement location="{oracle.middleware}/oracle_common/modules/oracle.web-common_11.1.1.jar"/>
</path>
<path id="library.TopLink">
<pathelement location="{oracle.middleware}/modules/com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar"/>
<pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
<pathelement location="{oracle.middleware}/modules/com.bea.core.antlr.runtime_2.7.7.jar"/>
<pathelement location="{oracle.middleware}/modules/javax.persistence_1.0.0.0_2-0-0.jar"/>
</path>
<path id="library.Oracle.Rules"/>
<path id="classpath">
<path refid="library.SOA.Designtime"/>
<path refid="library.SOA.Runtime"/>
<path refid="library.BPEL.Runtime"/>
<path refid="library.Mediator.Runtime"/>
<path refid="library.MDS.Runtime"/>
<path refid="library.BC4J.Service.Runtime"/>
<path refid="library.TopLink"/>
<path refid="library.Oracle.Rules"/>
</path>There are two different things here. Using ant to build the class files and then building an ear from the class files and other resources.
The building part needs the libraries if you use javac as compiler. Building an ear file only needs the path to the jar files which are packed into the ear.
In this sense you need the pages you see in the build.xml.
Then Jdev offers another way: ojdeploy. This tool is a Jdev without a gui.
You can use this tool and build the classes for each project of a workspace and to build build war and ear file. This is just like you click the rebuild button for each project and then the deploy the projects and application. If you use this approach you don't need the generated path ids as the whole build process is done inside Jdev as it's done on your developer pc.
Timo -
Fail to deploy opensso.war on glassfish
Hi
I download glassfish-v3,opensso.war,opensso.jar ..
install glassfish and start the server
copy opensso.jar to glassfish\lib ( is it necessary?)
I want to deploy opensso.war on glassfish,I use the command line:
asadmin deploy --path c:\opensso\opensso.war
It show the message:
SUCCESS : Application opensso deployed successfully
and under the directory glassfish\domains\domain1\applications has the opensso directory.
but when I brow : http://localhost:8080/opensso or /amserver ,It prompt 404 error.
the glassfish server logs show:
[#|2007-08-14T00:40:33.453+0800|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-3;|Using default-web.xml C:\usr\glassfish\config\..\domains\domain1\config\default-web.xml|#]
[#|2007-08-14T00:40:33.625+0800|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-3;|Created HTTP listener http-listener-1|#]
[#|2007-08-14T00:40:33.625+0800|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-3;|Created HTTP listener http-listener-2|#]
[#|2007-08-14T00:40:33.640+0800|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-3;|Created virtual server server|#]
[#|2007-08-14T00:40:33.656+0800|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-3;|Created virtual server __asadmin|#]
[#|2007-08-14T00:40:39.343+0800|INFO|GlassFish10.0|org.apache.catalina.loader.WebappLoader|_ThreadID=11;_ThreadName=Thread-3;|Unknown loader [email protected] class com.sun.enterprise.glassfish.bootstrap.MaskingClassLoader|#]
[#|2007-08-14T00:40:39.750+0800|INFO|GlassFish10.0|org.apache.catalina.realm.JAASRealm|_ThreadID=11;_ThreadName=Thread-3;|Setting JAAS app name com.sun.appserv|#]
[#|2007-08-14T00:40:40.437+0800|INFO|GlassFish10.0|org.apache.catalina.session.ManagerBase|_ThreadID=11;_ThreadName=Thread-3;|PWC2763: Manager has already been started|#]
[#|2007-08-14T00:40:40.796+0800|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-3;|Deployed web module StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[opensso] to virtual server server|#]
[#|2007-08-14T00:40:40.828+0800|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-3;|Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter@17b4703 for web endpoint /opensso at port 8080|#]
[#|2007-08-14T00:40:40.843+0800|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-3;|Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter@73305c for web endpoint /opensso at port 8181|#]
[#|2007-08-14T00:40:40.875+0800|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-3;|opensso web application loaded in 7485 ms|#]
[#|2007-08-14T00:40:58.765+0800|INFO|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-3;|No adapter registered for : /amserver|#]
who can point error in my deploying steps.o I'm sorry ,I move the glassfish to other directory
so the problem is resolved
by the way ,how can I delete my posted message? -
How to deploy EAR on CE server using Java Support Package Manager
Hello,
I am using CE server where I want to deploy EAR file by using JSPM. I run this program in Drive:\usr\sap\CE1\J00\j2ee\JSPM\go.bat
I have also put the EAR file into the inbox folder Drive:\usr\sap\CE1\SYS\EPS\in but still It does not show me any file to proceed further for deployment.
Does any one has idea?
Regards,
NKHi,
The Java Support Package Manager is not able to deploy a single .ear file.
If the *.EAR file is placed inside an SCA (Software Component Archive) then JSPM is able to deploy it.
You have to create a .SCA from an .EAR file
SAP note 1223957 contains an attachment (nwpacktool.zip) which can be used to create a .SCA file from the .EAR file.
Gerd -
Hi,
We have generated a Browser Based help with RoboHelp 9.
We want to deploy/configure the help in a server and give the URL of the same to the users to access. How this can be done. Kindly suggest.
With thanks and regards,
KrishnaKrishna,
You or your developers will need to deploy the help on a the server that the users will access it from. Basically that means copying all the the files from the SSL folder where you generated the Browser Based Air Help to the server (or as Jeff suggested publish the help when it is generated).
You then simply give the users the link to the URL including the start up file (index.htm or whatever you have called it).
It is good practice to povide a link from the software application to the help (using a Help button/link). This is something you'll need to work out with the developer as she/he will link to the same URL using a call from the program.
I'd recommend thoroughly testing the links and content using all the browsers you need to support before giving out the link to the users.
Kind Regards
Craig -
I have serious problems deploying an EAR, containing 25 ejb-jars and 3 wars.
The history of the project is that it was first developed on WLS 4.5 & 5.1. We
have later moved to Orion were the actual development takes place. Now we can
run the application on Orion and WLS 5.1. We now want to deploy the application
on WLS 6.1 sp 2. We have setup the whole application to be deployed as one EAR,
this works fine with Orion. The whole building is made in Ant.
I'm new on WLS 6.1 but have worked a lot on WLS 5.1 and 4.5 (I think it was).
I might have missed something but the documentation on EAR is very short.
When I first deploy the EAR, it seemed to work fine according to the console,
however when I tried to access servlets or JSPs, they simply weren't there (Error
404--Not Found). When I deployed the EAR from the console I got a number of zipexceptions.
After asking around, I was recommended to remove the compression in the jar,war
& earfiles. When I did that I got a number of errors in static initializers in
EJBs, which indicated that the EJBs actually were deployed. I fixed those and
the application was deployed without errors (when I start WLS and the EAR is deployed
by being in the config.xml file). Still when I deploy it from the console it still
throws ZipExceptions.
Anyway now I can access one of the war files but the other is not there. The deployed
war file is a lot smaller than the one not being deployed.
I think that all settings in application.xml, web.xml etc is correct. I'm also
confident that modules are correct, it does work in Orion, which has similar classloading.
From other developers, I have heard that I need to use WLS 6.1 sp 2, no compression
and that I have to break up large EARs in smaller (my EAR is 6,5 MB) files.
What really annoys me that I do not seem to get any errors, logs or anything.
The console indicates that everything is deployed even if apparently is not.
And I can deploy PerStore and everything works. If I deploy the wars, and ejbs
from the console (one at a time), it works.
I would appreciate any help on this subject any workarounds etc. I think that
I have to skip my first intent and deploy an exploded EAR instead of having (almost)
the same deployement as in Orion, which kind of pisses me of. I am also disappointed
that BEA has apperantly skipped java-modules all together. It is after all in
the specification.
I have talked to a number of people and they say that the whole EAR deployment
in WLS is very shaky. Is this true?
Thanks in advance,
Erik RomsonEAR deployment works fine from my own experience. Use JAR and turn off
compression for the WARs and JARs and the EAR itself, although I've never
seen a ZIP exception and I use JAR and ZIP and Winzip and whatever else I
can grab to muck with the files. 6.5MB is not tiny, but it isn't very large
either -- WL can handle much bigger EARs. Normally we don't suggest having
so many JARs and WARs in the EAR, but that is more preference ... are you
using manifest class path? ... are you referring to any of the files in the
WARs from any of the classes in the JARs?
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Erik Romson" <[email protected]> wrote in message
news:[email protected]...
>
I have serious problems deploying an EAR, containing 25 ejb-jars and 3wars.
The history of the project is that it was first developed on WLS 4.5 &5.1. We
have later moved to Orion were the actual development takes place. Now wecan
run the application on Orion and WLS 5.1. We now want to deploy theapplication
on WLS 6.1 sp 2. We have setup the whole application to be deployed as oneEAR,
this works fine with Orion. The whole building is made in Ant.
I'm new on WLS 6.1 but have worked a lot on WLS 5.1 and 4.5 (I think itwas).
I might have missed something but the documentation on EAR is very short.
When I first deploy the EAR, it seemed to work fine according to theconsole,
however when I tried to access servlets or JSPs, they simply weren't there(Error
404--Not Found). When I deployed the EAR from the console I got a numberof zipexceptions.
After asking around, I was recommended to remove the compression in thejar,war
& earfiles. When I did that I got a number of errors in staticinitializers in
EJBs, which indicated that the EJBs actually were deployed. I fixed thoseand
the application was deployed without errors (when I start WLS and the EARis deployed
by being in the config.xml file). Still when I deploy it from the consoleit still
throws ZipExceptions.
Anyway now I can access one of the war files but the other is not there.The deployed
war file is a lot smaller than the one not being deployed.
I think that all settings in application.xml, web.xml etc is correct. I'malso
confident that modules are correct, it does work in Orion, which hassimilar classloading.
>
From other developers, I have heard that I need to use WLS 6.1 sp 2, nocompression
and that I have to break up large EARs in smaller (my EAR is 6,5 MB)files.
>
What really annoys me that I do not seem to get any errors, logs oranything.
The console indicates that everything is deployed even if apparently isnot.
>
And I can deploy PerStore and everything works. If I deploy the wars, andejbs
from the console (one at a time), it works.
I would appreciate any help on this subject any workarounds etc. I thinkthat
I have to skip my first intent and deploy an exploded EAR instead ofhaving (almost)
the same deployement as in Orion, which kind of pisses me of. I am alsodisappointed
that BEA has apperantly skipped java-modules all together. It is after allin
the specification.
I have talked to a number of people and they say that the whole EARdeployment
in WLS is very shaky. Is this true?
Thanks in advance,
Erik Romson -
How to deploy ear file with jar file and war file with different names
Hi,
As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
<EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
<WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my application.
Please provide the content I should place in the config.xml so that everything works fine correctly.
Any help is appreciated.Hi,
As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
<EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
<WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my application.
Please provide the content I should place in the config.xml so that everything works fine correctly.
Any help is appreciated. -
Error when deploying ear with war module.
Can somebody help me with a problem? This problem is realy strange.
I have three projects: ordinary project (jar project), war project and ear project.
The war project uses classes form jar project and it is a part of ear project.
There is an abstract class in jar:
public abstract class MyDataTable {
public abstract String method1();
public abstract String method2();
//And some others abstract methods
Class MyResultSetTable extends MyDataTable class:
public class MyResultSetTable extends MyDataTable {
private ResultSet rs;
public MyResultSetTable(ResultSet resSet) {
rs = resSet;
//Implementation of abstract methods
In jar there is another class MyDataPacket, which performs transformation between MyDataTable and XML document (Delphi data packet):
public class MyDataPacket {
public static String tableToXML(MyDataTable table) {/Implementation}
public static MyDataTable xmlToTable(String xmlSource) {/Implementation}
In war there is a simple Web service which interact with clients by means of the data packets:
@WebService
public class MyWebService {
@WebMethod
public String myMethod(){
//Creating connection and opening ResultSet rs
MyDataTable t = new MyResultSetTable(rs);
return MyDataPacket.tableToXML(t);
This war application belongs to Enterprise Application (ear project). I use Sun Java System
Application Server Platform Edition 9.0_01 (build b02-p01). When I deploy ear into server an
error occurs:
Exception occured in J2EEC Phase
java.lang.NoClassDefFoundError: jarSource/MyDataTable
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.privateGetPublicMethods(Class.java:2519)
at java.lang.Class.getMethods(Class.java:1406)
When I change abstract class MyDataTable on MyResultSetTable in static method
tableToXML, the error disappears. I think that the problem is that I use abstract
class in this method. Please, can somebody explanes me this situation.
PS: Sorry for my bad English. I jast start to study this language.
PSS: You can copy-past these classes for simple testing this misunderstanding:
jar:
public abstract class MyDataTable {
public abstract String method1() throws Exception;
public abstract String method2() throws Exception;
public class MyResultSetTable extends MyDataTable{
public String method1() throws Exception {return "method1";}
public String method2() throws Exception {return "method2";}
public class MyDataPacket {
public static String tableToXML(MyDataTable t) {return "tableToXML";}
war:
import jarSource.MyDataPacket;
import jarSource.MyDataTable;
import jarSource.MyResultSetTable;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService()
public class MyView {
@WebMethod
public String myMethod1(){
MyDataTable t = new MyResultSetTable();
return MyDataPacket.tableToXML(t);
ear: Adding war to ear.I beleive this is a classpath problem, namely the classespath does not exist for the .jar file when the .war is trying to access the files. I would think if the .jar file is in WEB-INF/classes in your .war your error would go away. If you are placing the .jar in the root of the .ear then you must set the classpath.
-
EAR/WAR File Deployment Query on WEBLOGIC SERVER
Hi,
We are running weblogic server version 10.3.4.0 where EAR/ WAR files deployed on single server and that has been configured in the current WebLogic Server domain. These applications are up and running fine. We need to deploy a new WAR file on the same domain. My questions are:
@ Whether I can deploy new WAR file without STARTing and STOPing weblogic server instance?
@ When deploying new WAR file, whether it will affect existing deployed files or will it affect any other running services for a fraction of second?
Note: This new WAR file is independent application and will not affect any other services in the future.
Please assist.
Thanks,
DheerajThank you for your help but the result is still the same.
I deployed the library on weblogic server suggested by you.
File Deployed as library = oracle.adf.desktopintegration.model.ear
From the folder = C:\Oracle\Middleware\oracle_common\modules\oracle.adf.desktopintegration.model_11.1.1
It is active.
After this I loaded jdeveloper and deploy the same sample application and found that the result is same.
Pls let me know where I am going wrong.
Regards,
Masood
[11:53:09 AM] ---- Deployment started. ----
[11:53:09 AM] Target platform is (Weblogic 10.3).
[11:53:09 AM] Retrieving existing application information
[11:53:09 AM] Running dependency analysis...
[11:53:09 AM] Building...
[11:53:09 AM] Deploying 2 profiles...
[11:53:09 AM] Wrote Web Application Module to C:\JDeveloper\mywork\10MinDemo\ViewController\deploy\10MinDemo_ViewController_webapp.war
[11:53:10 AM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\10MinDemo\deploy\10MinDemo_Project1_10MinDemo.ear
[11:53:10 AM] Deploying Application...
[11:53:10 AM] [Deployer:149191]Operation 'deploy' on application '10MinDemo_Project1_10MinDemo' is initializing on 'ADFServer'
[11:53:11 AM] [Deployer:149193]Operation 'deploy' on application '10MinDemo_Project1_10MinDemo' has failed on 'ADFServer'
[11:53:11 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application 10MinDemo_Project1_10MinDemo on ADFServer.: .
[11:53:11 AM] Weblogic Server Exception: weblogic.management.DeploymentException:
[11:53:11 AM] Caused by: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
[11:53:11 AM] See server logs or server console for more details.
[11:53:11 AM] weblogic.management.DeploymentException:
[11:53:11 AM] Deployment cancelled.
[11:53:11 AM] ---- Deployment incomplete ----.
[11:53:11 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer) -
War deployment doesnt work - help
Hi All
We're trying to deploy our war file with weblogic.Deployer but it keeps failing.
We need help to understand the problem to fix it.
weblogic.Deployer invoked with options: -adminURL t3://weblogic.host.com:7001 -user weblogic -name App -source /path/to/App.war -targets App_Managed_Server -deploy
<Jan 12, 2013 11:37:11 PM PST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, App [archive: /path/to/App.war], to App_Managed_Server .>
Task 108 initiated: [Deployer:149026]deploy application App on App_Managed_Server.
Task 108 failed: [Deployer:149026]deploy application App on App_Managed_Server.
Target state: deploy failed on Server App_Managed_Server
weblogic.management.DeploymentException: [J2EE:160177]The application at "/scratch/software/Oracle/Middleware/user_projects/domains/wl_server/servers/App_Managed_Server/stage/App/app" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.
On another war file,
weblogic.Deployer invoked with options: -adminURL t3://weblogic.host.com:7001 -user weblogic -name ws -source /path/to/ws.war -targets App_Managed_Server -redeploy
<Jan 13, 2013 12:33:21 AM PST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, ws [archive: /path/to/ws.war], to App_Managed_Server .>
Task 124 initiated: [Deployer:149026]deploy application ws on App_Managed_Server.
Task 124 failed: [Deployer:149026]deploy application ws on App_Managed_Server.
Target state: redeploy failed on Server App_Managed_Server
weblogic.application.ModuleException: Context path '/ws' is already in use by the module: ws.war application: ws
We tried undeploying it and deploy and we get the same error
What did we do wrong?
Edited by: 898644 on Jan 13, 2013 12:37 AMThey are two different problems.
The first may be due to an incorrectly packaged ear file or by some garbage temporary files or bad WebLoigc status.
The second may be due to some garbage temporary files or bad WebLoigc status.
At first step try cleaning up by
- stopping all the WebLogic server instances (admin and managed)
- removing <domain>/servers/<server_name>/tmp , <domain>/servers/<server_name>/cache , <domain>/servers/<server_name>/stage
- start all the WebLogic server instances (admin and managed)
And try again.
Bye
Mariano -
Deploy only WAR File to Weblogic and not EAR File
Hi,
I want know if exist a way to only deploy de WAR file to Weblogic?Hi,
Below is the command to deploy ear file.
java weblogic.Deployer -adminurl t3://<adminserver>:port -username admin -password password -deploy -stage -source <ear file name for example vas.war> -name <name of the application, this value is showed in console, For ex 'vas'> -targets <Managed server separated by comma>
Thanks.
Vijay Bheemineni. -
Hi i have created EAR in jdeveloper and i want to deploy it in oracle app server..please help me.. i tried to search everyewhere its either mentioned about clustered environment or using ant..i dont want to use either cant i deploy it without using them..if so please guide me or any URL which gives me guidence
If you go to :
EnterpriseManager > your_oc4j_where_to_deploy > tab Applications
Overhere you can deploy the ear file -
Deploying ColdFusion 8 project via EAR/WAR file
I was wondering what considerations to take when deploying a ColdFusion 8 project as an EAR/WAR file. Is it possible to create the file on one computer (eg: development) and run it on another (eg: server)?
ecalibur_lk wrote on 1/14/2010 11:47 PM:
With ColdFusion packaged into the EAR, do you need ColdFusion installed on the environment you are deploying it on for it to work?
No. You need to have a J2EE server like JBoss or JRun.
If so, does it make a difference on what version of ColdFusion it is packaged with (eg: Developer vs. Enterprise edition)?
If you want to We package our EAR files without a license key and
leave it up to our clients to make sure they have the proper licenses
for their environment. If they put a key in the properties file, we use
the Admin API to register the instance. If they don't put a key in the
properties file, the instance is a developer edition.
Do you know of somewhere that describes how to build an EAR file via ANT and how to deploy it?
http://www.adobe.com/devnet/coldfusion/articles/ear.html -
Problems while deploying a war file as a part of ear file
Hello!!!
Is there a weblogic or Sun reference document to find out the correct way to specify library paths or class paths when one is trying to deploy a WAR file as a part of an EAR file?
I have been having lot of trouble and very sporadic too in getting stuff to work correctly.
-EagleOK! I found something the very hard way. For my J2EE application packaged as an ear file containing one ejb module in an ejb-jar file and one web module in my .war file; further, noting that my web module is a struts application; it appears that the dependent jar libraries should be placed in the EAR file and a MANIFEST classpath entry should be added to the ejb-jar file's manifest - even for the WAR to work correctly. the presence or absence of dependent jar files in the "lib" directory of the WAR file makes no difference for the working of the WAR file.
Is this behavior that I am seeing on my weblogic 8.1 server a documented and expected behavior? I am not too sure. did anyone else have such an experience?
Eagle
> Hello!!!
>
> Is there a weblogic or Sun reference document to find
> out the correct way to specify library paths or class
> paths when one is trying to deploy a WAR file as a
> part of an EAR file?
>
> I have been having lot of trouble and very sporadic
> too in getting stuff to work correctly.
>
> -Eagle
Maybe you are looking for
-
MacBook Pro to Canon MP-600 Bluetooth troubleshooting
I recently (and successfully) connected my MacBook Pro to my Canon Pixma MP600 using a Motorola Bluetooth dongle. However, once I'd switched off the printer and then later switched it back on the connection between the two was lost. The bluetooth and
-
I am trying to delete an email. However, recently, when I highlight the email, the highlighted area turns a very dark blue and all I can do is undelete it. The "delete" sign at the top is not visible. What causes this to happen?
-
I have spend innumerable hours downloading new versions of Firefox. They never apply/appear in my system. It was suggested that I completely uninstall the current v. 3.6.2 from my system, and then install the latest FF as if I'd never had it. Is this
-
Customized Ringtones do not play on iphone
I was able to create customized ringtones and get them on the iphone, but they will not play when I get a call or go to the ringtones to hear them. Has this happened to anyone else?
-
Sun Communications Services Resource
Can anyone tell me what version of the Comm Suite does Sun Communications Services 1.1 in Sun Java System Identity Manager 7.1 support?