Encrypt ear/war files
hi
my team is using oracle 10g Application srever[9.0.4] and jdeveloper..
ear/war files are prepared for deployment.
can i encrypt them while deploying them at custmers site for testing..
regards
avinash
As far as I know this is not possible.
Similar Messages
-
JDeveloper 10g, ADF, ANT:How to define ant task for EAR & WAR file creation
I am trying to automate the deployment process of our ADF Faces & BC application. I have reviewed this doc:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm
and followed the procedure for integrating ant onto the server. I can build the project and also successfully deploy the ear file. Howerver, I did not find any instruction on how to generate the EAR file. Can anyone point me to the right place for this task definition?
Here is my current build.xml file.
<?xml version="1.0" encoding="windows-1252" ?>
<!--Ant buildfile generated by Oracle JDeveloper-->
<!--Generated Jul 16, 2007 12:20:13 PM-->
<project name="CRDBApps" default="build-all" basedir="." xmlns:oracle="antlib:oracle">
<property file="build.properties"/>
<property file="ant-oracle.properties"/>
<target name="clean-all" depends="">
<ant antfile="build.xml" dir="CRDBView" target="clean"/>
<ant antfile="build.xml" dir="CRDBLib" target="clean"/>
<ant antfile="build.xml" dir="CRDBModel" target="clean"/>
</target>
<target name="build-all" depends="clean-all">
<ant antfile="build.xml" dir="CRDBView" target="compile"/>
<ant antfile="build.xml" dir="CRDBLib" target="compile"/>
<ant antfile="build.xml" dir="CRDBModel" target="compile"/>
</target>
<target name="deployear" depends="">
<echo message="-----> Deploying the application module deployment (ear) file"/>
<oracle:deploy deployerUri="deployer:oc4j:opmn://myserver/home"
userid="oc4jadmin"
password="password"
file="CRDBView/deploy/CRDBApps.ear"
deploymentName="CRDBApps"
bindAllWebApps="default-web-site"/>
</target>
</project>
thanks!
WesThanks all for the tips. After reading up a bit today on ear/war files and ant. I ended up just creating a task to mimic the ear/war file structure. My script isnt pretty but I'll work on refining that later. Here is what I have if anyone ever is interested:
<target name="war" depends="">
<echo message="Executing target war..."/>
<mkdir dir="war"/>
<copydir src="CRDBView\public_html" dest="war\"/>
<copydir src="CRDBView\classes" dest="war\WEB-INF\classes"/>
<copydir src="CRDBModel\classes" dest="war\WEB-INF\classes"/>
<copydir src="CRDBLib\classes" dest="war\WEB-INF\classes"/>
<echo message="Creating war file..."/>
<jar basedir ="war" destfile="CRDBApps.war"/>
<echo message="Done executing target war..."/>
</target>
<target name="ear" depends="war">
<echo message="Executing target ear..."/>
<mkdir dir="ear\META-INF"/>
<copydir src="CRDBView\deploy\META-INF" dest="ear\META-INF"/>
<copy file="CRDBApps.war" todir="ear\"/>
<jar basedir ="ear" destfile="CRDBApps.ear"/>
<echo message="Done executing target ear..."/>
</target>
<target name="cleanAndDeployCRDBApps" depends="build-all,deployear">
<echo message="Executing target cleanAndDeployCRDBApps..."/>
<delete dir="war"/>
<delete dir="ear"/>
<echo message="Done executing target cleanAndDeployCRDBApps..."/>
</target>
<target name="deployear" depends="ear">
<echo message="Executing target deployear"/>
<oracle:deploy deployerUri="deployer:oc4j:opmn://myserver:6003/home"
userid="oc4jadmin"
password="password"
file="CRDBApps.ear"
deploymentName="CRDBApps"
bindAllWebApps="default-web-site"/>
<delete file="CRDBApps.ear"/>
<delete file="CRDBApps.war"/>
<echo message="Done executing target deployear"/>
</target>
... -
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) -
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 -
List the contents of jar, ear, war files
Hi All,
It has been several years since I have worked in java and now I am trying to get caught back up :-).
My question is: Is there a standard utility that can dump/list the contents of the packaging files: jar, ear, war?
Thanks in advance!You can use winzip. OR you can use the jar command provided in JDK.
jar -tvf <<your archive (jar, war, ear)>> -
Description of EAR and WAR files
Does anybody know or has a link with the description of the files/directory's that are standard in EAR/WAR files.
Example: what is the functionality of the web.xml.
Thnx.http://java.sun.com/webservices/docs/ea2/tutorial/doc/WebApp3.html
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC3.html#64295
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html
http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/000101.html
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html#63061 -
New to EAR/WAR - where do files go?
posting to servlet newsgroup.
"Frank Rachel" <[email protected]> wrote in message
news:[email protected]..
> We've been successfully running under WebSphere 3.5 and Weblogic 5.1 for a
> while. However, in this mode we are not using EAR/WAR files. Our login.jsp
> page gets information from a properties file (in our case,
> general.properties). Under the older versions, there was a "working
> directory" concept, so thats where the property file needed to be. Where
> does this go when I package everything up as a WAR?
>
> I have the WAR made, and it deploys. But when I go to the login.jsp (it
> compiles) I get a filenotfound exception on my general.properties. Exactly
> where is it looking for the file?
>
> Since our code it littered in a directory structure that doesn't match the
> WAR structure, I manually create the war, so if I know where this goes
> relative to the root of the WAR i can easily add it.
>
> Thanks.
>
>
-
How do I convert an war file to ear file, deploying weblogic apps
Problem Description: I have a war file from a legacy application that needs to be migrated to weblogic. To migrate this application to weblogic, we need a ear file. Reading weblogic doc. it says we needs to use ant utility on an exploded web content application folder/ directory to create the ear file. I need to covert the existing war file to ear file , if it is doable or create one from the scratch. I need to know how to do that in weblogic. Please let me know if you have any hints .
ThanksHI,
Please try the following to convert your WAR file into an EAR exploded archieve:
*1).* Create a Directory in your file system.
Example:
/home/apps/MyFirstEAR
*2).* Place the WAR file inside the above Directory. (Suppose your WAR file name is test.war)
Example:
/home/apps/MyFirstEAR/test.war
*3).* Now create a "META-INF" directory inside "/home/apps/MyFirstEAR" directory
*4).* Now create an "application.xml" file like following inside "/home/apps/MyFirstEAR/META-INF" directory:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
<description>Test EAR Example</description>
<display-name>TestEAR Example</display-name>
<module>
<web>
<web-uri>test.war</web-uri>
<context-root>test</context-root>
</web>
</module>
</application>
*5).* Your EAR is ready now you can deploy the "MyFirstEAR" directory in the WebLogic Server.
NOTE: if you want to place the "test.war" file also as an exploaded format content inside the EAR then you need to extract the test.war file and then in place of the test.war you can have "test" directory at the same place.
You need to change the "application.xml" file like below in that case:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
<description>Test EAR Example</description>
<display-name>TestEAR Example</display-name>
<module>
<web>
<font color=red> <web-uri>test</web-uri> </font><br>
<context-root>test</context-root>
</web>
</module>
</application>
For more information on an EAR application structure you can refer to : http://middlewaremagic.com/weblogic/?p=1952
Thanks
Jay SenSharma
http://middlewaremagic.com/weblogic (Middleware Magic Is Here) -
Not able to create EAR file for WAR file extracted project
Hi Experts,
I am trying to import a WAR file, make changes to the project and create an EAR file for the same. I am not able to remove import
errors despite of adding required jar files to it.
Also, I am not able to create an EAR file for the same.
I have copied the steps here with screen shots. Below are the steps :
Import WAR file in NWDS 7.3 – Enterprise Portal perspective
Select WAR file to create WAR and EAR project for it.
Project created with import errors. e.g – com.sapportals.portal.prt*
Found jar file from Class – target jar file table.
e.g – for Class com.sapportals.portal.prt.resource.IResource needed jar file is tc~epbc~prt~api.jar
Copied required jar files in WEB-INF -> lib folder.
Configure Build path and Add External jars.
Portalapp file screen shot
I think errors should go now, but they still exist.
Next I right click on WAR project and tried updating related EAR project.
Next, Export EAR file from EAR project.
I have tried both EAR types.
But EAR file is not created.
Please help me in removing the errors.
Thanks in advance :-)
Anubha PandeyHi Anubha,
I feel that you're missing JAR dependencies and hence not able to resolve the above import errors.
Please go through the below thread for the AFP Masthead customization and follow the same:
How to download and change AFP Masthead on SAP Portal 7.3
Hope, this will help!!!
BR,
Anurag -
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 -
Porting *.war files and *.ear files to Weblogic 10.3
If we can figure this issue out, I'll see if I can't publish/post a
maven-based solution in the Maven and Oracle forums so that others
will not have to go through our pain.
We are having all the usual problems regarding where Weblogic expects
to find things and what exclusions need to be made in weblogic.xml for
war files and weblogic-application.xml for ear files. Any insights
would be deeply appreciated.
Here is what our exploded war structure currently looks like.
|____index.jsp
|____WEB-INF
| |____lib
| | |____...a long list of jar files
| |____tags
| | |____...a short list of tag files
| |____applicationContext.xml
| |____web.xml
| |____content
| | |____...a bunch of jsps
| |____tlds
| | |____...some tlds
| |____classes
| | |____mailProperties.properties
| | |____struts.xml
| | |____logback.xml
| | |____com ... the root of our class heiarchy
|____images
| |____...a list of images
|____META-INF
| |____maven
| | |____com
| | | |____project-name
| | | | |____pom.xml
| | | | |____pom.properties
| |____MANIFEST.MF
|____script
| |____...some java script files
|____style
| |____...some css files
Exceptions when trying to deploy are as follows:
INFO: ... initialized Struts-Spring integration successfully
java.lang.Exception: Could not load
servers/AdminServer/tmp//appmergegen_1254502686535_OurApp/war/WEB-INF/classes/com...
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:745)
at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:148)
The exception above repeats for every .class file found below
WEB-INF/classes/com, i.e. the the ones in this module rather than the
ones in included modules.
Checking the file system shows that there is no such directory as
"appmergegen_1254502686535_conap". I'm uncertain if there is actually
supposed to be anything there, but it would seem like it.
I've a theory that if we can solve the above issue, we can solve the
rest ourselves.
It would also be handy to know what packages may cause conflicts.Alright, my research points to the idea that this might have something to do with staging. Since this is a dev setup we don't have any managed servers or anything. All we have is AdminServer and that is it. We have only one domain and it is "base_domain". Does anyone know if this is wrong?
-
How to call a java application in a jar which is in a war file of a ear ?
So sorry to cross post, but no response in other topics.....
Please help!
I have a Ear file which contains a war file.
xx.ear/META-INF
xx.ear/YY.war
and the YY.war has the following structure:
YY.war/META-INF
YY.war/WEB-INF
YY.war/WEB-INF/classes
YY.war/WEB-INF/classes/com/
YY.war/WEB-INF/classes/com/mycompany/
YY.war/WEB-INF/classes/com/mycompany/MyClass.class
MyClass.class is a java application which has a main method.
how can I call this MyClass applicaiton from the xx.ear??
java -???? com.mycompany.MyClass ??
Please help because I have a Unix cron job need to access this class externally outside AppServer. Thx!!an ear file is a standard jar with a different extension. You may
be able to get away with just adding a manifest file to it that
specifies the main class (make it an executable jar with a different
extension).
I don't know if this will handle the nested war file though. It may.
matfud -
Error 160078 when deploying WAR file after EAR file
I am tetsing an application which does automatic deployment to WebLogic 8.1 running on Windows XP using ejbgen tool through Ant.
The following deployment sequence produces an error. I deploy an EAR file with EJB JAR and WAR file inside. It deploys correctly. I then undeploy the EAR file. This also works. Next I deploy a WAR file using the same deployment name as for the EAR file (the 'name' parameter of weblogic.Deployer command). This deployment fails. If I restart WebLogic server, the same deployment of the WAR file succeeds.
Any idea what goes wrong?
Thank you.
Michael
Here is the command used for deployment (as reported by Ant):
[java] 'weblogic.Deployer'
[java] '-debug'
[java] '-verbose'
[java] '-noexit'
[java] '-remote'
[java] '-upload'
[java] '-name'
[java] 'discoverytestproject'
[java] '-source'
[java] 'C:/Projects/Jetson/Toolbox/Tests/Projects/DiscoveryTestProject/build/staging/discoverytestproject-ws.war'
[java] '-targets'
[java] 'myserver'
[java] '-adminurl'
[java] 't3://10.10.0.123:7001'
[java] '-user'
[java] 'system'
[java] '-password'
[java] 'password'
[java] '-deploy'
This is the error message:
<Oct 13, 2006 3:04:21 PM EDT> <Warning> <J2EE> <BEA-160018> <ComponentMBean: Nam
e = discoverytestproject-ws, Type = WebAppComponentConfig - Targeted on this ser
ver but, no corresponding module found in application descriptor. The component
mbean is being Ignored.>
<Oct 13, 2006 3:04:21 PM EDT> <Error> <J2EE> <BEA-160078> <None of the modules o
f application 'discoverytestproject' in 'META-INF/application.xml' are configure
d in the 'Application' entry in 'config.xml' to be targetted to 'myserver'.>
<Oct 13, 2006 3:04:21 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were d
etected while initiating Deploy task for application discoverytestproject.>
<Oct 13, 2006 3:04:21 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complet
e the deployment task with ID 6 for the application discoverytestproject.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
tainer(SlaveDeployer.java:2556)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2491)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>I am tetsing an application which does automatic deployment to WebLogic 8.1 running on Windows XP using ejbgen tool through Ant.
The following deployment sequence produces an error. I deploy an EAR file with EJB JAR and WAR file inside. It deploys correctly. I then undeploy the EAR file. This also works. Next I deploy a WAR file using the same deployment name as for the EAR file (the 'name' parameter of weblogic.Deployer command). This deployment fails. If I restart WebLogic server, the same deployment of the WAR file succeeds.
Any idea what goes wrong?
Thank you.
Michael
Here is the command used for deployment (as reported by Ant):
[java] 'weblogic.Deployer'
[java] '-debug'
[java] '-verbose'
[java] '-noexit'
[java] '-remote'
[java] '-upload'
[java] '-name'
[java] 'discoverytestproject'
[java] '-source'
[java] 'C:/Projects/Jetson/Toolbox/Tests/Projects/DiscoveryTestProject/build/staging/discoverytestproject-ws.war'
[java] '-targets'
[java] 'myserver'
[java] '-adminurl'
[java] 't3://10.10.0.123:7001'
[java] '-user'
[java] 'system'
[java] '-password'
[java] 'password'
[java] '-deploy'
This is the error message:
<Oct 13, 2006 3:04:21 PM EDT> <Warning> <J2EE> <BEA-160018> <ComponentMBean: Nam
e = discoverytestproject-ws, Type = WebAppComponentConfig - Targeted on this ser
ver but, no corresponding module found in application descriptor. The component
mbean is being Ignored.>
<Oct 13, 2006 3:04:21 PM EDT> <Error> <J2EE> <BEA-160078> <None of the modules o
f application 'discoverytestproject' in 'META-INF/application.xml' are configure
d in the 'Application' entry in 'config.xml' to be targetted to 'myserver'.>
<Oct 13, 2006 3:04:21 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were d
etected while initiating Deploy task for application discoverytestproject.>
<Oct 13, 2006 3:04:21 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complet
e the deployment task with ID 6 for the application discoverytestproject.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
tainer(SlaveDeployer.java:2556)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2491)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> -
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 -
Class not found in web-inf/classes folder of war file within ear file
Hi all,
I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
thanks in advance for any suggestions or ideas.Hi,
This is a known limitation/issue with WL. There is also no way around this.
Regards,
LG
Maybe you are looking for
-
Help: Windows cannot restore a system image to a computer with different firmware
I want to recover a complete image of a Windows 7 operating system I have backed up to my other server. But I am getting the error "Windows cannot restore a system image to a computer with different firmware. The System Image was created by a compute
-
Hi, I have a rather straightforward mapping (but it has over 20 source tables into the Joiner and out to one target table). I am getting the following 6 warnings when I deploy: ORA-06550: PACKAGE BODY, line 126, column 36:PL/SQL: ORA-00936: missing e
-
Hi all, I have an issue on QA server. I send an interface from PI to R3 via RFC, then the RFC execute some idoc proccess and at the end it sends a message back to PI via proxy. The issue is that i see the RFC executed succesfully on R3 (Idocs process
-
Everyone has some version of spyware, malware, anti spam protection....mine is Norton 360. Every time new version of Firefox comes out, we're told it doesn't support Norton and we're never notified when this will be rectified. Why is this?
-
Dynamic logo doesn't appear for multiple outbound payments in IBY
Product: BI Publisher 10.1.2.3 Oracle Payments (IBY) 12.1.3 Logo for each organization on check printing appears correctly for single outbound payment but for multiple outbound payments, it doesn't appear. Any help would be greatly appearciated. Than