Deployment to JAR classpath in MANIFEST lack. MF
Hi all
Since I moved to jdeveloper of Netbeans, I have a problem creating the executable JAR, as in java-jar-myapp.jar
When you deploy a jar in Netbeans, it creates a MANIFEST. MF which includes the following
Class-Path: lib/eclipselink.jar lib/javax.persistence_2.1.0.v201304241
213.l jar
It also creates a lib directory that contains the jar
Now I use jDeveloper. When I run the POT inside of jDeveloper it works fine and it uses the command line includes the absolute location of each JAR to the classpath.
If I copy and paste the line in a shell that works too, but it's not good because it is not transferable to other systems like absolute class paths are not the same...
So what I want is for jDeveloper to deploy a JAR with an external directory to the if necessary libs and a MANIFESTO. MF that contains the classpath of the JAR used in the project
Thank you very much
Stuart
Suart, the pot does not work on another machine if the target machine is not the libraries already installed in the class path. A pot using the command line does not resemble the classpath of manifests inside the pot. You must unpack the jar and add the folder to the classpath in order to make them accessible.
Please see https://tompeez.wordpress.com/2011/06/01/creating-a-jar-file-in-jdeveloper/ for more information and http://stackoverflow.com/questions/2018257/how-to-combine-library-with-my-jar
Timo
Tags: Java
Similar Questions
-
Deployment to .jar file error
Hello world
I am a developer of forms, and as such I am a completely clueless on how to do some basic things in this new tool, I am trying to learn.
In a first step, I am building some simple applications of the ADF/Swing, everything is fine until I reached the point when I want to deploy my proyect bit. Here's what I did based on what help I could find in this forum. Thanks in advance and sorry for my bad English.
(1) create a deployment profile, I select all dependencies by using the "Dependency análisis" option under file groups. Question: on the long list of dependencies shown in this section, it is necessary to include all the libraries figure? If I understand all the resulting jar file is 120 MB in size, and that is a very simple form. Is this normal / correct. ?
(2) after you have deployed the jar I try to run it with "java-jar xxx.jar", but I get the following exceptions: it seems to be related to the manifest file, and I find it very odd that when I look in the jar file, there are TWO 'manifest '. MF' under the same META-INF folder, it is capitalized and is small enough, the second is tiny and very large. I don't know if this is what causes the problem and I can not find someone else who has the same issue.
The error:
Exception in thread "main" java.lang.SecurityException: no manifiest section for
signature input file javax/media/rtp/event/SessionEvent.class
at sun.security.util.SignatureFileVerifier.verifySection (SignatureFileVe
check. Java:260)
at sun.security.util.SignatureFileVerifier.process (SignatureFileVerifier
. Java:172)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
at java.util.jar.JarVerifier.update(JarVerifier.java:194)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
at java.util.jar.JarFile.getInputStream(JarFile.java:362)
at sun.misc.JarIndex.getJarIndex(JarIndex.java:92)
to sun.misc.URLClassPath$ JarLoader. < init > (URLClassPath.java:543)
to sun.misc.URLClassPath$ 3.run(URLClassPath.java:320)
at java.security.AccessController.doPrivileged (Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:309)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:286)
at sun.misc.URLClassPath.getResource(URLClassPath.java:156)
in java.net.URLClassLoader$ 1.run(URLClassLoader.java:191)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Thank you.Each must have its own file java.exe JDK. Check the path to the JDK for your project (on the page of the library project properties dialog box) and when you run your JAR file, do it with
/ Path/to/Development/JDK/java-jar...
Hope this helps,
Avrom -
How to deploy the jar file in WLS help ant script
Hello
Im trying to deploy a jar file in weblogic 10.3 using ant script and spin in the below error.
"
+ weblogic.management.DeploymentException [wldeploy]: [J2EE:160177] application to ' / u01//RSJBObjects.jar ' was not recognized as a valid request type. If it is an EAR file, please ensure that the META-INF/application.xml exists. EJB - pots must have a META-INF/ejb-jar. XML or corresponding annotations exist. If there is a WAR exploded, the directory name should be fine with "constituent". RSRA requires a META-INF/ra.xml. A deployment of JMS should be an XML file whose name ends in '-jms.xml. A deployment of JDBC must be an XML file whose name ends with "-jdbc.xml". For other types of applications, see the documentation for WebLogic Server. +
"
When I try to deploy the same manually from the console, I get a warning stating that WLS thought this as a library and therefore proceed to deploy it as a library. After this warning, the deployment continues and ends.
Problem is when I try to deploy it using Ant, it breaks at this stage.
Y at - it all means that we can deploy a jar to WLS help ant script. It must be deployed as a library as other apps would use this jar.
Cannot create an ear for this jar file file unique im.
If there is no suggestion on can do you, please share.
Thank you
Vijay.Hi Vijay,
The following example shows how to deploy a Java EE library named myLibrary whose source files are located in the directory for output/myLibrary:
source = "myLibrary/exit" library = "true"
user = 'weblogic' password = 'weblogic '.
verbose = "true" adminurl = "" t3: / / localhost:7001 ""
target = "MyServer" / >
http://docs.Oracle.com/CD/E11035_01/WLS100/programming/wldeploy.html
HTH
Kind regards
Sunil Polineni -
Deployment, redeployment JAR file for WebLogic EM without having to restart the service
Hello
Can someone help me how to redeploy the file .jar on weblogic EM with steps.
Deployment, redeployment JAR file for WebLogic EM without restarting the server
Appriciate if you provide information in steps with screenshot.
Note: Not in the 11g weblogic console.
Thank you
Phanihttp://download.Oracle.com/docs/CD/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA
-
Can I deploy the jar files in weblogic?
Can I deploy a jar file which will be a collection of other jar files in weblogic?
Where can I change?
We may keep the code deployed in the ear and all dependencies library jar files in a single pot and the pot to be installed separately in Weblogic...
What shall we do?
Please do helpHello
try to provide inputs inside your app ".» XML' as follows
referenceA.jar
referenceB.jar
referenceC.jar
Now place all the pots inside the root of the EAR file, as well as within the "
/APP-INF/lib'. nd, and then deploy that EAR as a shared library. Thank you
Jay SenSharma
http://jaysensharma.WordPress.com (WebLogic wonders are here) -
Hello
How can I deploy my "jar" files in the content server and then use from jsp pages?
Thank you. GreetingsYou integrate the JPS individually? One approach is to put the jar and jsp in a war file and deploy as a single unit to content server.
-
JDEV takes too long to deploy the JAR
JDEV - 11.1.2.2.0
I see this problem on my desktop machine, but not on my laptop with the same project and the jdev version.
[10: 52:35]-deployment began. ----
[10: 52:35] the target platform is Java EE Standard.
[10: 52:35] analysis of the dependence running...
[10: 52:35] building...
[10: 52:53] deployment of profile...
* [10: 52:55] moving WEB-INF/adfc - config.xml for META-INF/adfc - config.xml *.
* [11: 08:04] Module of Archive wrote to xxxxxx.jar*
[11: 08:04] for deployment time: 15 minutes, 29 seconds
[11: 08:04]-deployment is complete. ----
It's very bad for me because whenever I need to deploy, I need to wait for a long time.
If one faces the same problem, let me know the solution as soon as possible.
Appreciate the quick response.you happen to have McAfee antivirus running on the desktop? In addition, deploying on a local or network drive?
-
Deploy the Jar project problem
Hi all
I'm using 11.1.2.1.0 Jdeveloper and ADF BC
My use case:
I divided my request in pot 2, one for the model (contain EO, LOV), another using the model of a JAR file
a few changes I made to the Jar project as: add some LOV, delete others
the problem is: after you deploy the project template in the JAR and back for second one, cool,.
I can't see my last edit (for example you want to add some LOV to ViewAccessors for specific VO) but I see modifcation in DataControl
so, how do I update VO see last modification?
ThanxHello
You must add the first pot of project in order to then project viewController as a dependency (right click, second draft viewController--> project--> dependency properties). Also need to clean and build (Build--> Clean all first of the jar project and right-click the first press Deploy project) the first draft of first. -
How to use the declarative component without deployed as JAR
Hi all
I want to create a reusable component (declarative component) for PanelHeader with default features packed in I want to use in my application. Because this component will be used only in my project, I don't see a use to go through the process of creating a jar and deploying it before using it. Is it possible to use this component without creating a JAR.
Thank you
-Srini.User 895137,
your welcome to ignore the best practices in the development of the ADF. The declarative elements are deployed in the libraries of the ADF. If you keep the declarative component in the application then project you will have a chance to deploy independent of the application (which means that your ADF library contain more than just the source of the component (which is where your nightmare begins)). Therefore, best practices
1. create the declarative component in a new project in JDeveloper. Follow
http://download.Oracle.com/docs/CD/E21764_01/Web.1111/b31973/af_reuse.htm#BABJBFDD
2. If you don't ant to deploy components in a tag library, use declarative dynamic components (will not deploy-able in many applications, as you mentioned your future plan is), as shown here
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_declarativeComponent.html
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_componentDef.html
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_xmlContent.htmlFrank
-
Hi fans WLS.
I installed WLS 10.3 and I tried to migrate WLS 8.1 App to WLS 10.3 per workshop.
I was supprised NOT to find the classes: TuxedoConnection, TuxedoConnectionFactory and everything else needed to compile the code in wls - api .jar, weblogic.wtc.gwt , classes
package.
WLS - ARI. JAR, weblogic.wtc.gwt package_ (in WL_HOME\server\lib)
I realized that, to v. 9, the package contained these classes.
Since c. 10, the pachage contains ONLY a single class: genpasswd. And there are a lot of missing classes/interfaces from weblogic.wtc.jatmipackage.
Could someone tell me where are the other required classes? Have they been moved to another package?
The logic of the EJB WTC have been changed?
I use this code:
{color: #0000ff} weblogic.wtc.gwt import. *;
Weblogic.wtc.jatmi import. *;
TuxedoConnection myTux;
TypedString MyData;
MyRtn response = myTux.tpcall ("MyTuxService", myData, 0); {color}
etc.Hi, George.
10 WebLogic, weblogic transitively includes in the BEA_HOME/modules directory. The pot you are looking for is:
modules/com.bea.Core.jatmi_1.0.1.0.jar
See you soon,.
-Adrian -
Deploy the ADF library JAR independent of the Application
Hello
JDeveloper release: 11.1.1.1.0
WebLogic Server Version: 10.3.1.0
I use a number of ADF library JAR files in my application and want to deploy the final application WAR without the need of these jars in there. I want to have the option of deploying an ADF library JAR file if this is the only change to the application. This is very similar to the requirements for this .
However, I can't figure out how to make it work. I can remove the ADF in pots since the WAR file by filtering in the profile of the WAR deployment and then deploy the ADF pots independently on the WebLogic Server. But when I access the application, it seems that it does not find these pots.
Can anyone provide assistance on how to do this?
Thank you
BradWhile I was testing I found the below steps to work for me... But the problem is THAT WLS does not re - deploy a library where there is an active application to use... And none has proposed this approach so I tend to think deploying as an EAR.
1 - to do this, you can deploy the jar files as library via the WLS console or command line and you must update the file application.xml - weblogic in the project that you are deploying war/ear
. taskFlow1 myLib1 myLib2 2 - If you want to use aliases instead of the names of files to libraries, you can add a line to the file 'manifest '. MF.
To add this add a file to your project. Meta-Inf folder might be a good candidate to locate this file.
Edit the newly added file and add these lines.Extension name: myLibrary
Specification-Version: 2.0
Implementation-Version: 9.0.0 -
error mapbuilder.jar file in oracle application server deployment
Hi all
IAM trying to deploy mapbuilder.jar file in oracle 10g enterprise manager oc4j environment. It gives an error that
"An error occurred during the processing of the data submitted. Find the appropriate field and enter the correct information as indicated next to each field.
Location - failed by downloading archive archives. File to archive invalid: type of archive not supported. unknown"
I sent the same way for mapviewer.ear. It has been deployed successfully.
Please, any body tell me what would be the reason. I have here another way to deploy the .jar file in enterprise manager Oracle 10g
thnx in advance...
Kind regards
SrinivasHi Srinivas,
There is no need to deploy MapBuilder on an application server. You can order online with for example:
java-jar mapbuilder.jar - noconnectJoão
-
Receiving Ant error when you try to clean up the scene: deployment customized taskfl
V 11.1.1.5 JDev
WebCenter PS4 (11.1.1.5)
Today when I tried to re - deploy a custom workflow (no changes have been made to the workflow, it's just a test) I noticed a new error in the Ant log when performing cleaning. I've not seen this before and I am reluctant to go ahead with the deployment without knowing where it comes from. Error details:
______________________________________________________________________________________________________________________________________________________
BuildFile: W:\ProjectConnect_Source_20120203\MortensonWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\build.xml
* [taskdef] could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It was impossible to found.*
clean:
*[echo] ----------------------------*
* [echo] - cleaning deploy directory-*.
*[echo] ----------------------------*
init:
Precompile:
*[echo] ----------------------------*
* [echo] - update manifest file with the *.
version of specification and implementation version
---
*[echo] ----------------------------*
* [propertyfile] property of update file: W:\ProjectConnect_Source_20120203\MortensonWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\manifestImpl.properties*
* [propertyfile] property of update file: W:\ProjectConnect_Source_20120203\MortensonWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\manifestImpl.properties*
BUILD FAILED
W:\ProjectConnect_Source_20120203\MortensonWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\internal-targets.XML:127: Caveat: did not find file W:\Personal\JDEV\MortensonWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\MANIFEST. MF. TEMPL to copy.
Total time: 0 seconds
______________________________________________________________________________________________________________________________________________________
internal - targets.xml table of contents:
______________________________________________________________________________________________________________________________________________________
<? XML version = "1.0" encoding = "US-ASCII"? >
<! - ant buildfile generated by Oracle JDeveloper - >
<!-generated Sep 29, 2009 23:47:41 >
"< name of project = default"WebCenterSpacesSharedLibExtensionInternal"="init"basedir =". »
xmlns:WLS = "Oracle.WebCenter.Tools.WLS" > "
< Import file = ' internal - targets.xml "/ >
' < file property = "... / config. Properties "/ >"
< = "build.properties" file / property >
"< taskdef resource="net/sf/antcontrib/antcontrib.properties ">
< classpath >
< pathelement location="${jdeveloper.install.home.directory}/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar"/ >
< / classpath >
< / taskdef >
< taskdef = "ojdeploy" name
ClassName = "Oracle.JDeveloper.deploy.ant.OJDeployAntTask"
URI = "oraclelib:OJDeployAntTask".
classpath="${Oracle.JDeveloper.Ant.library}"/ >
< target name = "init" >
< tstamp / >
< mkdir dir = "${output.dir}" / >
< / target >
< target name = "clean" description = "Cleans the project" >
< echo - > < / echo >
Echo <>- cleaning deploy directory - < / echo >
< echo - > < / echo >
< remove includeemptydirs = "true" quiet = "true" >
"< dir="${extending.spaces.home.dir}/deploy fileset "includes =" * / * "/ >
< dir = "${output.dir fileset} ' includes =" * / * "/ >"
< dir = "${fileset oracle.jdeveloper.deploy.dir} ' includes =" * / * "/ >"
< dir = "${fileset extending.spaces.out.dir} ' includes =" * / * "/ >"
"< dir="${extending.spaces.home}/classes fileset "includes =" * / * "/ >
< / delete >
< / target >
< name target = 'clean-local-manifest-file.
Description = "this goal cleans the manifesto created locally.
properties file">
< queue = "manifestImpl.properties remove" quiet = "true" / > "
< / target >
< target name = "precompile".
Description = "Specifies the version number of the manifest file" >
< echo - > < / echo >
Echo <>- updated the manifest file with the
version of specification and implementation version
-< / echo >
< echo - > < / echo >
<!-check if the number of restart is set in the properties file, if not
Then set the default setting->
< value = "${restart.implementation.version.suffix property}" name = "restartVer" / > "
< if >
< length string = "${restartVer}" = trim 'superior' = 'true' length = "30" / >
< do >
< property name = "varValeurProp" value = "1" / >
< / may >
< other >
< property name = "varValeurProp" value = "${restartVer}" / >
< / else >
< /if >
< if >
<!-check if the manifest file is available->
< queue = "manifestImpl.properties available" property = "propavailable" / > "
< do >
< file = "manifestImpl.properties" / property >
<!-get the biggest 2 numbers, properties
and the local-> manifest file
< property = "${lastNumber}" name = "lastCount" / >
< if >
< bool >
< isgreaterthan arg1 arg2 = "${lastCount}" = "${varValeurProp}" / >
< / bool >
< do >
< property name = "valueToConsider" value = "${lastCount}" / >
< / may >
< other >
< property name = "valueToConsider" value = "${varValeurProp}" / >
< / else >
< /if >
< / may >
< other >
<!-definition of the properties file if it does not exist->
< propertyfile file = "manifestImpl.properties"
Comment = 'Version of the application' >
< enter key = value="${default.implementation.version}"/ "implVersion" >
< / propertyfile >
< property name = "valueToConsider" value = "${varValeurProp}" / >
< / else >
< /if >
<! - from value incrementing the value of one - >
< name var = "op1" value = "${valueToConsider}" / >
< name var = "op2" value = "1" / >
< name var = "op" value = "+" / >
< result math = 'result' operand1 = "${op1}.
operation = operand2 ' ${op} "=" ${op2} "datatype ="int"/ >
<! - definition of value in the properties file - >
< propertyfile file = "manifestImpl.properties" >
< enter key = "lastNumber" type = "int" value = "${result}" / >
< / propertyfile >
< file = "manifestImpl.properties" / property >
< property name = "tempManifestImpelVersion" value = "${implVersion}." ${result} "/ >"
< propertyfile file = "manifestImpl.properties" >
< key = "enter manifest.implementation.version"
value = "${tempManifestImpelVersion}" / >
< / propertyfile >
< copy file="${manifest.template.directory}/MANIFEST. MF. TEMPL.
ToFile="${manifest.file.Directory}/manifest. MF.
Overwrite = "true" >
< filterset >
< token filter = "IMPLEMENTATION_VERSION".
value = "${tempManifestImpelVersion}" / >
< token filter = "LibraryName".
value="${customer.library.name}"/ >
< token filter = 'CUSTOMER_NAME '.
value = "${Customer.Name}" / >
< / filterset >
< / copy >
< path id = "custom.profile.attribute.classpath" >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-crawl-spi.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-admin.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-auth-plugin.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-auth-share.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-crawl-ses.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-crawl-ucm.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-adapter.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-service-view.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-skin.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/searchlet.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/activity-streaming-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/security-extension.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/peopleconnections-preference-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/peopleconnections-profile-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/serviceframework.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/modules/javax.jsp_1.2.0.0_2-1.jar"/ >
< pathelement path="${extending.spaces.home.dir}/ProfileCrawler/classes"/ >
< / path >
< path id = "library. JSF.1.2 ">"
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jsf_1.0.0.0_1-2-15.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jstl_1.2.0.1.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.jsf_1.2.9/javax.jsf_1.1.0.0_1-2.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.jsf_1.2.9/wls.jsf.di.jar"/ >
< / path >
< path id = "library.WebCenter.Common" >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/command-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/command-spi.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/generalsettings-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/lifecycle-client.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/lifecycle-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/lifecycle-service.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/lock-service-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-adapter.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/search-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/scope-service-model.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/security-extension.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/serviceframework.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/wc-concurrent.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.portlet.server_11.1.1/wsrp-container.jar"/ >
< / path >
< path id = "library. WebCenter.Spaces.Client">
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/webcenter-core-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/spaces-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/spaces-webservice-client.jar"/ >
< / path >
< path id = "library.ADF.Common.Runtime" >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.view_11.1.1/trinidad-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/adfsharembean.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.javacache_11.1.1/cache.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.security_11.1.1/adf-share-security.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.security_11.1.1/adf-controller-security.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle/modules/javax.activation_1.1.0.0_1-1.jar"/ >
< / path >
< path id = "library. WebCenter-app-core - model .jar">
"< pathelement location ="... /SourceFiles/lib/WebCenter-App-Core-Model.jar"/ >
< / path >
< path id = "library. Spaces - model .jar">
"< pathelement location ="... /SourceFiles/lib/Spaces-Model.jar"/ >
< / path >
< path id = "library. "Space-model - web.jar" >
"< pathelement location ="... /SourceFiles/lib/Spaces-Model-Web.jar"/ >
< / path >
< path id = "library. SDM. Runtime">
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/ >
< / path >
< path id = "library. SDM. Runtime.Dependencies">
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.mds_11.1.1/oramds.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/modules/javax.servlet_1.0.0.0_2-5.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/modules/javax.jsp_1.2.0.0_2-1.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/wlserver_10.3/server/ext/jdbc/oracle/11g/ojdbc6_g.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/jlib/commons-cli-1.0.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.bali.share_11.1.1/share.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.xmlef_11.1.1/xmlef.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.dms_11.1.1/dms.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle/modules/javax.activation_1.1.0.0_1-1.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.xdk_11.1.0/xml.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.javacache_11.1.1/cache.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.ucp_11.1.0.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.javatools_11.1.1/javatools-nodeps.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/modules/javax.management_1.2.1.jar"/ >
< pathelement location="${jdeveloper.install.home.directory}/modules/javax.management.j2ee_1.0.jar"/ >
< / path >
< path id = "classpath" >
< path refid = "library. JSF.1.2"/ >
< refid="library.WebCenter.Common"/ path >
< path refid = "library. WebCenter.Spaces.Client"/ >
< refid="library.ADF.Common.Runtime"/ path >
< path refid = "library. WebCenter-app-core - model .jar "/ >"
< path refid = "library. Spaces - model .jar "/ >"
< path refid = "library. Spaces-model - web.jar "/ >"
< path refid = "library. SDM. Runtime "/ >"
< path refid = "library. SDM. Runtime.Dependencies "/ >"
< refid="custom.profile.attribute.classpath"/ path >
< / path >
< / target >
< target name = 'stage' description = 'Déployer JDeveloper profiles'
function = "init, precompile" >
< echo - > < / echo >
< Echo > - Compling Custom WebCenterSpaces - < / echo >
< echo - > < / echo >
< xmlns:ora ora: ojdeploy = "oraclelib:OJDeployAntTask".
Executable = "${Oracle.JDeveloper.ojdeploy.Path}" "
Ora:buildscript="${Oracle.JDeveloper.deploy.dir}/ojdeploy-build.xml".
Ora:statuslog="${Oracle.JDeveloper.deploy.dir}/ojdeploy-statuslog. XML">
< ora: deployment >
< name of ora: parameter = 'space '.
value="${Oracle.JDeveloper.workspace.path}"/ >
< name of ora: parameter = 'project '.
value="${Oracle.JDeveloper.project.name}"/ >
< name of ora: parameter = "profile".
value = "custom_webcenter_spaces_war" / >
< name of ora: parameter = value "nocompile" = "false" / >
< name of ora: parameter = "outputfile".
value="${Oracle.JDeveloper.deploy.outputfile}"/ >
< / ora: deployment >
< / ora: ojdeploy >
< Echo > wrote the war as follows
location ${oracle.jdeveloper.deploy.dir}/${shared.library.name} < / echo >
< mkdir dir="${oracle.jdeveloper.deploy.dir}/exploded"/ >
< mkdir dir="${oracle.jdeveloper.deploy.dir}/exploded/${customer.library.name}.war"/ >
"{< Unzip src="${oracle.jdeveloper.deploy.dir}/${shared.library.name}.
dest="${Oracle.JDeveloper.deploy.dir}/exploded/${customer.library.name}. War "/ >"
< / target >
< name target = "init-wls" >
< path id = "wls.classpath" >
< pathelement path="${wls.home}/server/lib/weblogic.jar"/ >
< pathelement path="${wls.home}/server/lib/xqrl.jar"/ >
< / path >
< taskdef = "wldeploy" classpathref = "wls.classpath" name
ClassName="WebLogic.ant.taskdefs.Management.WLDeploy"/ >
< / target >
< / project >
__________________________________________________________________________________________________________________________________________
Published by: SethBW on February 16, 2012 12:10
Published by: SethBW on February 16, 2012 12:11Do not know if has something to do with your problem, but
[taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
points to some missing properties that can cause the error.
You can debug the ant (http://tompeez.wordpress.com/2012/02/07/jdeveloper-gem-debug-ant-scripts/ control) script and see what is exactly the problem.
Timo
-
I use the build.xml file:
"< name of project = default"samplesbuilder"="all"basedir =". ">
<!-set-> our global properties
< name = "base.dir property" value =". "/ >
< name = "src.dir property" value = "src" / > "
< name = "output.dir property" value = "exit" / > "
< name = "dist.dir property" value = "dist" / > "
< name = "debug.value property" value = "on" / > "
< name = "sharedlib.dir property" value ="${base.dir} /... /... /.. /.. /.. /modules "/ >"
< name = "wlrtlib.dir property" value ="${base.dir} /... /... /.. /.. /modules "/ >"
<!-create the class lib path and output directories. ->
< path id = "classpath" >
< pathelement location = "${output.dir}" / >
< dir = "${fileset wlrtlib.dir}" >
< name = "*.jar" / >
< / fileset >
< dir = "${fileset sharedlib.dir}" >
< name = "*.jar" / >
< / fileset >
< / path >
<!-initialize. ->
< name = "property-init" target >
<!-test the availability of the source file. ->
< file = "${src.dir available}" "
Type = "dir" property = "src.present" / >
< file = "${available dist.dir} '"
Type = "dir" property = "dist.present" / >
< / target >
< target name = "init" if = "src.present" depends = "property-init" > "
<!-create lib directory. ->
< mkdir dir = "${dist.dir}" / >
<!-create the output directory. ->
< mkdir dir = "${output.dir}" / >
< / target >
<!-compile and JAR all->
< target name = "all" depends on 'property-init' = >
< antcall target = 'clean' / >
< antcall target = 'compile' / >
< antcall target = "copyfiles" / >
< antcall target = 'dist' / >
< / target >
<!-all compile. ->
< name target = "compile" if = "src.present" depends = "init" > "
"< javac srcdir =" ${src.dir} "destdir =" ${output.dir}.
Debug = "${debug." Value}"verbose =" ' disapproval 'no' = >
< classpath refid = "classpath" / >
< include name="**/*.java"/ >
< / javac >
< / target >
< target name = "copyfiles" >
< mkdir dir="${output.dir}/META-INF/spring"/ >
"< copy todir="${output.dir}/META-INF/spring ">
< fileset dir = 'META-INF/spring '.
includes = "*" / >
< / copy >
< mkdir dir="${output.dir}/META-INF/wlevs"/ >
"< copy todir="${output.dir}/META-INF/wlevs ">
< fileset dir = "META-INF/wlevs.
includes = "*" / >
< / copy >
< / target >
<!-create EXAMPLE JAR file. ->
< target name = 'dist' if = "src.present" depends = "compile" > "
< mkdir dir = "${dist.dir}" / >
< manifest jar = "META-INF/MANIFEST. MF.
jarfile="${Dist.dir}/com.BEA.wlevs.example.My_CEP_1.0.0.jar".
BASEDIR = "${output.dir} ' includes =" * / * ">"
< name = "META-INF/spring / *" / >
< name = "META-INF/wlevs / *" / >
< / jar >
< / target >
<!-cleaning everything. ->
< name target 'clean' = >
< dir = "${output.dir}" / remove >
< dir = "${dist.dir}" / remove >
< / target >
< name target = "deploy" if = "dist.present" depends = "property-init" > "
< classname = "com.bea.wlevs.deployment.Deployer" java
dir =". »
fork = "true".
output = "deploytarget.log"
FailOnError = "true" >
< classpath >
< dir = "${base.dir} / fileset... /.." /.. /.. "includes ="wlevsdeploy.jar"/ / bin" >
< / classpath >
< arg line = "-url http://localhost:9002 / wlevsdeployer" / >
< arg line = "-user ${username}" / >
< arg line = "-password ${password}" / >
< arg line = "-${action}" / >
< arg line="dist/com.bea.wlevs.example.My_CEP_1.0.0.jar"/ >
< / java >
< / target >
< / project >
But make a mistake like:
BUILD FAILED
C:\Documents and Settings\470831\workspace_470831\My_CEP\build.xml:92: Java retu
Tutankhamun: 1
What is the root cause of this error?
Published by: 856272 on June 13, 2011 03:20You must specify the user name and password as well. Based on your file generation, if you have not yet deployed, you say-
Ant deploy - Dusername =
- Dpassword = - action = install Once you've deployed successfully once, but want to update the application with your changes, you must say-
Ant deploy - Dusername =
- Dpassword = - action = update You should take a look at the documentation of CEP to http://www.oracle.com/technetwork/middleware/complex-event-processing/documentation/index.html#111140
Manju.
-
deployment of war on weblogic 10.3.4 files
I have a weblogic 10.3.4 field and a war (smap.war) file. Can I deploy the war file using the weblogic console (10.3.4).
However, I can't the ant (wldeploy 11.1.1.4) to deploy the war file. It shows error as follows.
This file area and weblogic of war is in the same machine.
------------------error---------------------------
[wldeploy] Task 27 failed: [Deployer: 149026] deploy the application smap.war on AdminServer.
[wldeploy] Target State: deployment has failed on the AdminServer Server
[wldeploy] weblogic.descriptor.DescriptorException: VALIDATION of the PROBLEMS have BEEN FOUND
[wldeploy] problem: cvc-complex - type. 2.4: expected for element 'servlet-name @http://java.sun.com/xml/ns/javaee' instead of 'description @http://www.w3.org/2001/XMLSchema-instance' here @http://java.sun.com/xml/ns/javaee servlet element: < null >
[wldeploy] problem: cvc-complex - type. 2.4: expected for element 'servlet-name @http://java.sun.com/xml/ns/javaee' instead of 'display-name @http://www.w3.org/2001/XMLSchema-instance' here @http://java.sun.com/xml/ns/javaee servlet element: < null >
[wldeploy] to weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:245)
[wldeploy] to weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:231)
---------------------------build.xml------------------------
<? XML version = "1.0" encoding = "UTF-8"? >
<! - ant buildfile generated by Oracle JDeveloper - >
<!-generated on March 11, 2011 15:52:31 >
< by default of the = "init" project >
< target name = "init" >
< tstamp / >
< / target >
< name = "wls.username property" value = "weblogic" / > "
< name = "wls.password property" value = "welcome1" / > "
< name = "wls.hostname property" value = "localhost" / > "
< name = "wls.port property" value = "7001" / > "
< name = "admin.server.name property" value = "AdminServer" / > "
< name = "deploy.target property" value = "AdminServer" / > "
<!-here, you can specify either NOMCLUSTER, IndividualServerName as 'ManagedOne' or list of Managed/AdminServer separated by commas-->
"< name ="deploy.name property"value =" smap.war "/ >
< name = "deploy.source property" value = "E:\SVN_Root\smap_Build" / > "
< taskdef name = "wldeploy" classname = "weblogic.ant.taskdefs.management.WLDeploy" >
< classpath >
< pathelement location="D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar"/ >
< / classpath >
< / taskdef >
< target name = "szmap" depends = "init" >
".. destfile="${deploy.source}\smap.war of war.
webxml="${deploy.source}\smap\WebContent\WEB-INF\web. XML">
< dir="${deploy.source}\smap\WebContent"/ fileset >
< dir="${deploy.source}\smap\build\classes"/ classes >
< / war >
< / target >
< target name = "deployX" depends = "init" >
< echo message = "deploy.source=${deploy.source}"/ 27 > "
< echo message = "deploy.name=${deploy.name}"/ 28 > "
< wldeploy action = "deploy".
Name = "${deploy." Name} '.
source = "${deploy." Source}-${deploy. Name} '.
User = "${WLS." UserName} ".
nostage = 'true '.
Password = "${WLS." Password}.
verbose = "true".
adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} ""
Debug = 'true '.
/ >
< / target >
<! - transfer Applications - >
< a name = target "redeploy" >
< wldeploy action = "redeploy".
Name = "${deploy." Name} '.
User = "${WLS." UserName} ".
nostage = 'true '.
Password = "${WLS." Password}.
verbose = "true".
adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} "/ >"
< / target >
<! - Uneploying Applications - >
< target name = "undeployX" >
< wldeploy action = "cancel the deployment.
name = "szmap".
FailOnError = "false".
User = "${WLS." UserName} ".
Password = "${WLS." Password}.
verbose = "true".
adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} "/ >"
< / target >
< target name = "all" depends = "init, deployX" / >
< / project >You can package wsdl4j - 1.6.2.jar in your WAR file and place it in the WEB-INF/lib directory.
Using the deployment substitute weblogic.xml (that you already have - prefer-web-inf-classes) you can ensure
the jar in the WEB-INF/lib drectory gets preference over the classes loaded into the classpath system (WebLogic classpath).This entry is already in your weblogic.xml file
true When you compress your additional jar files in the WEB-INF/lib directory you can leave out the referees of the library.
When you want to use shared libraries, you must wrap the pots in a WAR file, for example with the following structure:
META-INF MANIFEST.MF WEB-INF lib wsdl4j-1.6.2.jar web.xml
The contents of the MANIFEST. MF might be something like:
Manifest-Version: 1.0 Created-By: 1.6.0_05 (BEA Systems, Inc.) Extension-Name: wsdl4j Specification-Title: WSDL Library Specification-Version: 1.6 Specification-Vendor: Middleware Magic Implementation-Title: WSDL Library Implementation-Version: 1.6.2 Implementation-Vendor: Middleware Magic
When you use this shared library, you can use weblogic.xml in your file. WAR to designate it, for example.
wsdl4j 1.6 1.6.2 true You can also create new WAR file that contains another version of wsdl4j and you specify this version in the MANIFEST. MF file
and refer to it using weblogic.xml.
Maybe you are looking for
-
Satellite A300 - BIOS downgrade after upgrading the BIOS
I did an upgrade of BIOS of victory of version 1.6 of 2.10 - at the recommendation of the Toshiba site, for my laptop A300 1N0 - model PSAGUE.Touchpad no longer works. I have 2 operating systems, XP and W7 is the same. I start the laptop with the Win
-
Using HWC_FetchSampleErrors with c#
I use a c# wrapper to call the methods of niHSDIO.dll. I have problems with the method HWC_FetchSampleErrors, in particular the Reserved1 and Reserved2 parameters.
-
My guess is that I can search intensively and find something, but it seems that there should be a simple solution. I had a LabVIEW code that worked. He uses an old VI ('acquire N analysis analog hardware Trig.vi'). I improved to 8.2 and of course c
-
I asked HP through these Forums how to deal with my computer with all its RAM. I was told I could improve up to 24 GB of RAM, and was given a link to the crucial web site. I paid a lot of money for this RAM, and found that after installing, the compu
-
Why my Windows Phone app (for desktop) does not open?
I connect my WP8 to my laptop. Open Windows Phone app to sync music. And this happens: The signature of the whole problem: Signature of the problem: Problem event name: CLR20r3 Signature of the problem 01: windowsphone.exe Signature of the problem 02