Intermittent problem deploying .jar files
OC4J 9.0.2
Seemingly random, I get this error when I deploy a jar file
Auto-deploying MyJar.jar (No previous deployment found)... Error compiling
MyOC4J/j2ee/home/applications/MyApp/MyApp.jar: Syntax error in source
To deply a jar file I do the following:
Copy the .jar file to /applications/MyApp/ directory
Delete the contents of /application-deployments/MyApp/MyJar.jar/
Start OC4J
The only way around this I have found is to keep restarting OC4J until it works, so the same .jar file will sometimes work and sometimes not.
I have copied the same .jar file to four different OC4J environments and have had one work and three fail. Then I restart the three and have two of those work and one fail. Then I had to restart that one three more times until it worked.
Any ideas as of what might be happening??
I just tried the command you mentioned to start OC4J but I still get that problem.
It's really weird because I have had this process of deployments working for months with no problem, then all of a sudden it started acting up.
I don't think anything has changed but there must be something. I just don't know where to look.
any other suggestions?
-Isaac
Similar Messages
-
Error in deploying .jar file from JDeveloper 10.1.3.5
Hello,
I want to deploy .jar file in a machine, instead of having to install JDeveloper to run the application (it contains: Web Services and Data Base).
I have followed the following steps in JDeveloper to create the .jar file:
1) Right click over the project: New... --> General (All Technologies option selected) --> Deployment Profiles --> JAR File
2) I have selected "Include Manifest File" option specifying the application's main class
3) In JAR Deployment Profile Properties window: File Groups --> Project Output --> Contributors are selected: "Project Output Directory" and "Project Dependencies"
4) With the previous steps, JDeveloper generates a .deploy file. It is created in Resources folder. From this folder, I have selected the .deploy file and right click and I have selected "Deploy to JAR file"
The .jar is created succesfully. In this point, I try to execute with the command:
java -jar NAME_OF_THE_DIRECTORY_WHERE_THE FILEIS_DEPLOYED\NameFile.jar
and I have the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
at project.proxy.AccountClient.<init><AccountClient.java>
at project.proxy.AccountClient.main<init><AccountClient.java>
The Manifest File content is:
Manifest-Version: 1.0
Created-By: Oracle JDeveloper 10.1.3.5.0
Main-Class: project.proxy.AccountClient
I have tested with differents variables to create the .jar file, but always the error is the same. And I haven't found information to solve it. For this reason, I appreciate any help.
Thank you and regards.
Edited by: user1634407 on 31-mar-2010 8:27
Edited by: user1634407 on 31-mar-2010 8:47If you are just building a client that access a Web service you need a JAR and not a WAR.
Ok!
One thing to try is look at the command line that JDeveloper uses to run your client (it's in the log window) - specifically look at the classpath used.
Then try and run the same thing from a command line and see if it works.
Nowadays, the application is running with a .BAT file, it contains the statement released from the JDeveloper console, and it is working perfectlly.
I try to do the same from a command line, and it works too.
Assuming it is - you can either use that, or you'll need to make sure that your JAR includes all the mentioned jars that were in the class path - this is done through the library type file group.
To create the .JAR file I have choosen the following options (JAR Deployment Profile Properties):
1) Include Manifest File --> I have selected the class that contains the main class (from the Browse option)
2) I left the default File Groups (Project Output) --> it has: Project Output Directory + Project Dependencies
3) As you said me, I have created a new File Group (type: Libraries) --> and here, I have selected all the possible Contributors. These match those specified in the project (Oracle XML Parser v2, J2EE, JAX-RPC Client, Commons Logging 1.0.3, Ojdbc14.jar).
4) Deployment to JAR File successfully.
The resulting MANIFEST.MF is:
Manifest-Version: 1.0
Created-By: Oracle JDeveloper 10.1.3.5.0
Main-Class: project.proxy.Execution
It hasn't definied "Class-Path", althought to especified a new File Group with the libraries... Is it an error?
If I extract the .JAR file, I see all libraries, and I have two folders: one with .class files of my project and other one is META-INF with MANIFEST.MF file.
5) From command line I executed:
C:\jdevstudio10135\jdk\bin > java -jar C:\jdevstudio10135\jdev\mywork\project\project\deploy\NameFile.jar
And the result is an error:
Exception in thread "main": java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
I think the error is because it can not find the library ServiceFactory, but it is especified inside JAX-RPC Client library. What is wrong?
*6)* I have tried too to insert in "JAR Deployment Profile Properties" (in JAR options) an additional Manifest File to merge into MANIFEST.MF, to include "Class-Path" with all libraries's project (the same JAR from the statement released from the JDeveloper console), but I think that it is a limit, because if I insert all libraries the "Class-Path" doesn't inserted in MANIFEST.MF. The maxim is:
Class-Path: C:\jdevstudio10135\jdev\mywork\project\project\classes C:\jdevstudio10135\lib\xmlparserv2.jar C:\jdevstudio10135\lib\xml.jar C:\jdevstudio10135\j2ee\home\lib\activation.jar C:\jdevstudio10135\j2ee\home\lib\ejb.jar C:\jdevstudio10135\j2ee\home\lib\jms.jar C:\jdevstudio10135\j2ee\home\lib\jta.jar C:\jdevstudio10135\j2ee\home\lib\mail.jar C:\jdevstudio10135\j2ee\home\lib\servlet.jar C:\jdevstudio10135\webservices\lib\jaxrpc-api.jar
The following libraries afther the previous one aren't allowed to include because I think that is exceeding the maximum size.
I have tested to create various MANIFEST.MF with different PATHs libraries, but it isn't work to include in the MANIFEST.MF file all libraries...
(C:\jdevstudio10135\webservices\lib\wsclient.jar
C:\jdevstudio10135\webservices\lib\wsserver.jar
C:\jdevstudio10135\webservices\lib\wssecurity.jar
C:\jdevstudio10135\webservices\lib\wsdl.jar
C:\jdevstudio10135\webservices\lib\orasaaj.jar
C:\jdevstudio10135\webservices\lib\saaj-api.jar
C:\jdevstudio10135\webservices\lib\orawsdl.jar
C:\jdevstudio10135\webservices\lib\orawsrm.jar
C:\jdevstudio10135\webservices\lib\jaxr_api.jar
C:\jdevstudio10135\webservices\lib\orajaxr.jar
C:\jdevstudio10135\webservices\lib\relaxngDatatype.jar
C:\jdevstudio10135\webservices\lib\jaxb-impl.jar
C:\jdevstudio10135\webservices\lib\jaxb-libs.jar
C:\jdevstudio10135\webservices\lib\xsdlib.jar
C:\jdevstudio10135\webservices\lib\mdds.jar
C:\jdevstudio10135\jlib\jaxen.jar
C:\jdevstudio10135\jlib\oraclepki.jar
C:\jdevstudio10135\jlib\ojpse.jar
C:\jdevstudio10135\jlib\osdt_core.jar
C:\jdevstudio10135\jlib\osdt_cert.jar
C:\jdevstudio10135\jlib\osdt_xmlsec.jar
C:\jdevstudio10135\jlib\osdt_wss.jar
C:\jdevstudio10135\jlib\osdt_saml.jar
C:\jdevstudio10135\jlib\repository.jar
C:\jdevstudio10135\jlib\ojmisc.jar
C:\jdevstudio10135\j2ee\home\lib\http_client.jar
C:\jdevstudio10135\j2ee\home\jazncore.jar
C:\jdevstudio10135\j2ee\home\oc4jclient.jar
C:\jdevstudio10135\rdbms\jlib\xdb.jar
C:\jdevstudio10135\diagnostics\lib\ojdl2.jar
C:\jdevstudio10135\jakarta-taglibs\commons-logging-1.0.3\commons-logging-api.jar
C:\jdevstudio10135\jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar
C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14_g.jar
C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14dms.jar
C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14dms_g.jar)
With this .MF file (or including only "C:\jdevstudio10135\jdev\mywork\project\project\classes") I have solved the other problem (not found the libraries), but it still not working, the error is a little different:
Exception in thread "main": java.lang.NoClassDefFoundError: project/proxy/Execution
The path where the main class is: C:\jdevstudio10135\jdev\mywork\project\project\classes\project\proxy\Execution.class
I have tried to insert directlly the following paths in "Main Class" option of "Include Manifest File":
C:\jdevstudio10135\jdev\mywork\project\project\classes\project\proxy\Execution
C:\\jdevstudio10135\\jdev\\mywork\\project\\project\\classes\\project\\proxy\\Execution
And with these values, the error is the same: Exception in thread "main": java.lang.NoClassDefFoundError
I am not sure if the error is a bug of JDeveloper 10.1.3.5 or it is something that I don't correctly. Any idea?
Thank you again and regards.
Edited by: user12085357 on 08-abr-2010 1:31
Edited by: user12085357 on 08-abr-2010 1:38
Edited by: user12085357 on 08-abr-2010 6:58 -
How TO DEPLOY JAR FILES INTO XI Server using SDM
Hi XI Gurus,
im working on adapter development. we have created jar file in NWDS.
now going ahead to deploy into XI server through SDM.
can we deploy jar files directly into xiserver through SDM. or it needs to convert to any other formate like EAR, SDA. then how would i convert to SDA.
i any have clear idea on this... pls throw the ways how to convert........
JAR File to EAR format
JAR file to SDA format
EAR file to SDA format
can any one explain the procedure step by step how to convert jar file into deployment archive file in order to succesfully into XI server.
thanks i advance. points will be rewarded.
Regards
RajeshHi Rajesh,
JAR file in itself in not deployable.
So v need to envelop this jar file into an EAR file and then v deploy this EAR file on SDM.
Creating Jar
Inside NWDS --> Windows --> Open perspective --> J2EE Development --> right click on ur proj --> Build EJB Archive
Converting .EAR file to .SDA
Converting .EAR file to .SDA
Regards,
Prateek -
Deploying Jar file in Tomcat 4.1
Any guys knoe how to deploy jar files in tomcat4.1.
i know that it should be in the "install_dir/WEB-INF/lib" folder.
but after i develop an applcaiton using packages and zip it to a jar file how do i deploy it?You want it in a WAR file, not a JAR file - i.e. a zip file just like a JAR file but with a .war extension and the following path structure:
./WEB-INF/classes
./WEB-INF/lib
./WEB-INF/web.xml
Where your JARs go in the lib directory, plain classes in their package structure under the classes directory and your JSPs, HTML etc anywhere you like other than WEB-INF.
Then you just put the WAR in Tomcat/webapps. -
Problem downloading JAR files after PIX 7.2(3) upgrade
Hello, I have upgraded a PIX 515 Firewall from Version 6.3(4) to
7.2(3) and am now experiencing problems downloading .jar files from
some web servers. I have tried disabling the "inspect http" option but
still not joy. I also tryied this:
http://www.cisco.com/warp/public/110/pix-asa-70-browse.pdf
But no luck.
Have anyone had similar problems.
Thanks in advance.1. Turn router off for 30 seconds and on again
2. Settings>General>Reset>Reset Network Settings
3. Settings>General>Reset>Reset All Settings -
Error while Deploying JAR file using SDM in EP system
Hi,
As per below mention URL for Installing and Deploying the Enrichment Controller ,I am confuguring MDM Enrichment Controller in EP system
http://help.sap.com/saphelp_nwmdm71/helpdata/en/44/aa411ce9d57454e10000000a11466f/frameset.htm
So, as per the Help in Step 7, its mention to deploy a specific adapter for the external enrichment service provider i.e JAR file.
And when i am trying to deploy the *.jar file , i am getting this message in SDM:
Summary:
========
There were 1 archives selected.
0 archives successfully loaded.
Loading of 1 archives failed.
Details:
========
1) Error loading archive
C:\Documents and Settings\<SDMUserID>.<EPsystemHostName>\Desktop\Adapter\MDMEnrichmentAdapter.jar
(server side name is: C:\usr\sap\SID\JC00\SDM\program\temp\MDMEnrichmentAdapter.jar)
com.sap.sdm.util.sduread.IllFormattedSduFileException: The information about the development component found in the manifest is either missing or incomplete!
Manifest attributes are missing or have badly formatted value:
there is no deployment descriptor declared
(C:\usr\sap\SID\JC00\SDM\program\temp\MDMEnrichmentAdapter.jar)
So, kindly guide me how to deploy this jar file on EP syetm or if any settings is required.
Regards;
Hanif
Edited by: Shaikh Hanif on Nov 22, 2010 2:47 PMHanif,
Check this wiki's,
http://wiki.sdn.sap.com/wiki/display/JSTSG/(JSTSG)(Deploy)Problems-P29
http://wiki.sdn.sap.com/wiki/display/JSTSG/(GP)CannotDeployGPContent-WrongManifestFileAttributes
Good Luck!
Sandeep Tudumu -
Error while deploying jar file in jboss
Hi,
I am trying to deploy a jar file in jboss, i have copied the jar in jboss_home/server/default/deploy/ directory. and i am getting the following errors while starting the jboss server.
ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.
0.5.GA/server/default/deploy/AdminServiceBean.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
rServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInt
erceptor.java:74)
at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(Deployer
InterceptorEJB.java:44)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
ptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy26.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:595)
can anyone please help me on this
Thanks,
MalertHanif,
Check this wiki's,
http://wiki.sdn.sap.com/wiki/display/JSTSG/(JSTSG)(Deploy)Problems-P29
http://wiki.sdn.sap.com/wiki/display/JSTSG/(GP)CannotDeployGPContent-WrongManifestFileAttributes
Good Luck!
Sandeep Tudumu -
Problems deploying ear file created with ant build script
Hi All,
I'm using Jdeveloper 11G and Weblogic 10.3. When I build my application and run it within Jdeveloper, it works fine. However, we have a requirement to run ANT build script and create a deployable .ear file that can be manually deployed to any Weblogic Server.
I created my ant build script and it compiles/builds fine - the .ear file looks good. However, when I attempt to deploy it, it fails with
javax.faces.webapp.FacesServlet for servlet Faces Servlet could not be loaded because the requested class was not found in the classpath .
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet.
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:551)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
Truncated. see log file for complete stacktrace
>
<Nov 2, 2011 2:43:43 PM MDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1320266599219' for task '3'. Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "Faces Servlet" failed to preload on startup in Web application: "###"
I am not sure how to tell weblogic where to find the classes needed. I have a pretty huge classpath used when compiling - should I be putting the classpath in the manifest (?) - I don't think I should need to include the .jar files manually in the .ear file - since all the libraries should already be available in weblogic - or is that a misconception?
Please help!!I answered my own question -
I had to manually add the following to the WEB-INF/lib to get the error to go away:
${ORACLE_HOME}/modules/javax.jsf_1.1.0.0_1-2.jar and
${ORACLE_HOME}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jsf_1.0.0.0_1-2-15.jar and
${ORACLE_HOME}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jstl_1.2.0.1.jar
that solved my problem. However, I think it'd be great if I could somehow just specify (in the weblogic-application.xml maybe?) that my application is using the above modules without having to copy the jar files into my WEB-INF/lib - any suggestions?
Thanks -
How to deploy jar file in WLS using ant script
Hi,
Im trying to deploy a jar file in weblogic 10.3 using ant script and am running into the below error.
+[wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "/u01//RSJBObjects.jar" 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.+
When i try to deploy the same manually from the console, i get a warning stating that WLS thought this as a library and hence proceeding to deploy as a library. After this warning the deployment continues and completes.
Problem is when i try to deploy using ant, it breaks at this point.
Is there any means that we can deploy a jar to WLS using ant script. This has to be deployed as a library as other apps would be using this jar.
Im unable to create a ear file for this single jar file.
If there is any suggestion on can this be done, please share.
Thanks,
Vijay.Hi Sunil,
Thanks for the reply, it worked.
Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
Thanks,
Vijay. -
How to build out the deployment JAR file like Visual Cafe?
Hi everybody,
I am wondering if there is tool within JDK could generate the JAR file like Visual Cafe's Deployment function.
It seems that simply to include those library file (jar file's) in the target Jar could not solve the problem.
Looking for the reply.You must to create your META-INF file.
see more details :
http://java.sun.com/docs/books/tutorial/jar/ -
How to deploy jar file into oc4j
Hi,
I am new to jdeveloper.
I deployed a application as .ear file by creating new coneection from the Connection navigator which is having web, ejbs amd client progrms. I dont have any problem with that.
But for my feature modification on my ejbs or client programs, i want to deploy only its related jar file in the existing application in the server. But when i try to do the same, the client module or ejb module is deploying as new .ear file in to the server insterd of .jar file.
How to overcome this in jdeveloper?
Thanfully,
Satish KC.I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
--olaf -
EJB 3.0: deployment/jar file generation issue
We have a web application project (ADF Faces) which depends on a model project (EJB 3.0 session/entity beans) that implements both business and persistence layers. This EJB project points to a utility jar file containing some classes we have built. When we run the web project from inside JDev, everything works perfectly, with no error. However, when generating EAR file (deploying web project to WAR) we experience an issue.
As expected, JDev generated the war file for the web app, the jar file for the EJB and finally the EAR file containing both war and jar files. After that, we managed to deploy the ear file to our OAS 10.1.3 test instance (not standalone OC4J) and an error occured. The error is due to the fact JDev did not create the /lib subdirectory inside ejb project jar file /META-INF directory with our utility jar file inside.
We tried to generate a separated jar file for the ejb project alone with the same results.
Is this an IDE bug which does not pack the application as it should? What could we be doing wrong? If yes, is there a work-around? Like I said, the application runs fine on embedded server. Also, when the EJB application does not depend on external libraries, the deployment to OAS 10.1.3 works perfectly. We have tested it!
Could anyone help us?
Thanks in advance.
Best Regards,
Gustavo
PS: Sorry for my English. :)Hi Shay! I follow what you said and it worked. However, we had to manually edit MANIFEST file for the EJB jar in order to add classpath clause to map our util jar. IMHO, JDev should do it for us. Anyway, we were able to deploy the app successfully.
Best Regards,
Gustavo -
Problems deploying par file via Netweaver Developer Studio
Hello,
I have problems deploying a par file using the SAP Netweaver Developer Studio.
In the SNWDS i configure the following:
Window -> Preferences -> SAP Enterprise Portal
Alias: IEP
Host: khz059
Port: 52900
Login: Administrator
Description: Testportal
The logon Url of the portal is http://khz059:5290052900/irj/portal
If i try to upload a par file via "Quick PAR Upload" i get the error messages:
"Unable to connect to the portal
Operation failed: Please make sure the server 'IEP' (khz059:52900) is running or check the log (sap-plugin.log) for more detail."
Am I using the proper settings? Am I using the wrong port?
I don't know whats wrong.
Can anyone help me?
The logfile shows:
[12.09.05 / 14:53] #ERROR LEVEL# com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1 > No Information
java.io.IOException: Error writing to server
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:302)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:314)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:634)
at com.sap.portal.developmentTools.general.wizards.upload.DeployEngine.readResponse(DeployEngine.java:361)
at com.sap.portal.developmentTools.general.wizards.upload.DeployEngine.uploadPar(DeployEngine.java:433)
at com.sap.portal.developmentTools.general.wizards.upload.DeployEngine.deploy(DeployEngine.java:220)
at com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1.processUpload(SAPMPWizard.java:404)
at com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1.run(SAPMPWizard.java:338)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard.performFinish(SAPMPWizard.java:519)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:608)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:321)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.sap.portal.developmentTools.general.uploader.QuickPARUploader.run(QuickPARUploader.java:146)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
Best regards,
Nils KlothHi Nils,
I think you must have selected the defualt checkbox (Try and uncheck that). Also uncheck the checkbox for "<i>Yes, I want to remeber the password for deployment</i>" if it is also selected. When you deploy the par file now enter the password and try to deploy. I think this will solve your problem.
Apart from this, try this methos of deploying the Par file.
1) Save you project. Right click it and "Quick par Upload".
2) On your browser type
"http://<your_server_name>:50000/irj/servlet/prt/portal/"
Your case:
<i>http://khz059:52900/irj/servlet/prt/portal/</i>
or same page you can get by navigating:
System Administration-> Support-> Portal Runtime-> Administration Console.
3) At the option "Please specify a Portal Archive file (PAR) and press "upload" to store it into the PCD." Deploy your par file by giving the path.
Now you file is deployed on the server. If you want to create an Iview from this deployed .par file then :
1) On your portal. Follow the path: Content Administrator-> Portal Content -> Portal Content(sub-option). Right click -> New from par ->iView.
2) Here in the list you will find the par file which you have uploaded. Proceed as said.
3) You will finally have an iView. Right click it and preview it.
I hope this solves your problem.
Regards
Pravesh
PS: Please consider rewarding points if helpful. -
I have create the jar file, but it show the following error mesage since i start to run it.
Java Virtual Machine Laugcher
Failed to load the main class manifest attribute from
E:\j2sdk1.4.2\bin\test.jar
What the problem for this?
my manifest.mf file contain the information
Manifest-Version: 1.0
Main-Class: mysystem.MainFrame
note, my directory is javac mysystem/MainFrame.java to runWhat's the name of the manifest file in the jar file?
What do you get when you do
jar tvf test.jar -
How to deploy jar file for use within mapping user-defined fcn
Hi all,
I have a java class I'd like to called from a mapping user-defined function.
Here's what I've done (but hasn't worked)
1. Added 'package com.<mycompany>.xi.util.base64 to the source class file and compiled it.
2. Created a sda with a plain provider.xml file, i.e. no references were made to any other library files.
3. Deployed the sda to the xi 3.0 j2ee server successfully using SDM.
4. Under the Visual Admin tool, I see that the library was deployed successfully.
5. In the import text box in the user-defined function (design time), I enter com.<mycompany>.xi.util.base64.*.
A syntax check returns an error indicating the package could not be found.
Can anyone give me pointers as to how I can get this working?
Thanks,
--jtbHey James,
No! That's not the right way!
What you have done is for accessing external JMS & JDBC drivers in their corresponding adapters. For the access inside a mapping user defined function, it's enough if you import the jar files.
Look at this blog and you will be very clear!
/people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
regards,
Felix
Maybe you are looking for
-
How to loading the opening stock balance into Infocube 0IC_C03
Dear Expers, I have referenced SDN a expert's documentation, but I canu2019t go on at page 10 . Check: How Tou2026 [Handle Inventory Management Scenarios in BW|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0
-
HELP ME - Synchronization doesn't work with calendar with my new BB
my new BB is 8900 curve (with the old one BB Bold 9000 it works) DW is 4.7 windows Professional xp Microsoft office pro 2003 I can't synchro calendar and following this instuctions: http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&do
-
Mouse wheel not supported in layers palette
I'm on a Mac with Fireworks CS3 (FW8)
-
ITunes deleted all contacts in iPhone
Hello! I've synchronized contacts on my iPhone 4 with Microsoft Outlook (using iTunes), and as a result all my iPhone contacts were deleted, and contacts from Outlook were written to iPhone. So, I lost all my iPhone contacts, despite indicating in iT
-
Safari 4: Search Forum input messed up
Just installed Safari 4. The Search Forum field in these forums looks weird. There seem to be two fields, on superimposed on the other. Is anybody else experiencing this problem?