Deploy supporting files to WAR
Is there a way to include support files (eg. *.gif, *.jpg, *.js) in the deployment profile for the WAR file using Oracle9i JDeveloper 9.0.2.829? I guess I could add them manually after the deployment but I'd rather not. Is there a better way?
Thanks,
Barth
If those support files are somewhere in the HTML Root Directory (usually named "public_html"), they will automatically get picked up when you deploy to a WAR file. If those files are on your sourcepath, the best way to get them included is to add them to the project. By default a WAR profile will include all the files that you've added to your project.
Similar Messages
-
How to deploy ear file with jar file and war file with different names
Hi,
As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
<EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
<WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my application.
Please provide the content I should place in the config.xml so that everything works fine correctly.
Any help is appreciated.Hi,
As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
<EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
<WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my application.
Please provide the content I should place in the config.xml so that everything works fine correctly.
Any help is appreciated. -
can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks
See http://kb.mozillazine.org/Links_to_local_pages_do_not_work
-
Where is the right path to deploy third party DLL? "Support Files"?
Hi, After Effetcs developers:-)
Here is question about install path of DLL for After Effects plug-in.
I'm developing Effects plug-in run with CUDA, so I have to deploy third party DLL to client PC.
So where is the right path to put DLL such as cudart32_30_14.dll?
I think it's under "Support Files", because my plug-in runs with cudart32_30_14.dll
in "C:\Program Files\Adobe\Adobe After Effects CS4\Support Files"
Am I right?well... that depends.
when you rely on an external library, the external dll is expected to be somewhere along the path, as it appears in the command prompt.
places like win32, and sxs folders are in that path.
you could also put the support dll in the same folder as your plug-in. any process automatically includes it's own directory in the search path.
if you don't want to put it in any of these pre-set locations, then you have to program the path into the dll loading function.
if you choose to do that, you can put the support dll anywhere you like. -
How to deploy my web application .war file into SAP netweaver Engine
Hi All,
I want to deploy web application which is developped using JAVA web technology into SAP netweaver Engine.
I tried to deploy .war file through SDM but it complained the following error
"Error loading archive
C;\Document and Settings\cr1adm\Desktop\MyProject.war
(server side name is: F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)
com.sap.sdm.util.sduread.IIIFormattedSduFileException: The information about development component found in the manifest is either missing or incomplete!
Manifest attributes are missing or have badly formatted value:
attribute keylocation missing
attribute keyname is missing
attribute keyvendor is missing
attribute keycounter is missing
(F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)"
Can any one please suggest how to deploy external web application into SAP netweaver engine.
Is there any procedure to follow to do this.
your inputs will be highly appreciated...
Thanks in advance
JMYou may need to convert the .war archive to SDA/SCA file format before deploying it to SAP Netweaver Engine.
Check out the below SAP NOTE if it is usefull.
Note 1223957 - Usage of NetWeaver Packaging Tool.
Apart from SDM you can also deploy the files through telnet...
Note 859444 - How to deploy libraries on J2EE Engine 6.40
1)Connect to telnet as below
Start --> Run
telnet hostname/ip address portno
Ex: telnet xxx.xx.xx.x 5<Instance no>08
2)Login with administrator id:
Use the below command to deploy the files.
deploy <directory path to the SDAs location> version_rule=all on_prerequisite_error=stop on_deploy_error=stop
Example: deploy E:\usr\sap\trans\EPS\in\VCBASE03_0-10006939.SCA version_rule=all on_prerequisite_error=stop on_deploy_error=stop.
Also have a look at this note which talks about the error you are getting.
Note 1171457 - IllFormattedSduManifest/SduFileException during deployment
Hope it helps.
Edited by: Khaiser Khan Mohammed on Nov 7, 2010 12:17 PM -
How to deploy EAR file in Tomcat?
Is we can deploy ear file in tomcat?
Normally we can deploy WAR file in tomcat webapps folder. When we run the tomat it will automatically extract the war file.
But samethink I have tried EAR file. But it is not working.
Is we can deploy EAR file or not?
If not plz give reason.Hi
Normally we can deploy the war file thats routene stuff ofcourse ..........but when u deploy ear file it will give problmes as ear structure and war structure are differeant
The Tomcat Servlet/JSP Container
The Apache Tomcat 5.5 Servlet/JSP Container
Apache Logo
Links
* Docs Home
Contents
* Contents
* Introduction
* Installation
* Deployment
* Source Code
* Processes
* Example App
Application Developer's Guide
Deployment
Printer Friendly Version
print-friendly
version
Background
Before describing how to organize your source code directories, it is useful to examine the runtime organization of a web application. Prior to the Servlet API Specification, version 2.2, there was little consistency between server platforms. However, servers that conform to the 2.2 (or later) specification are required to accept a Web Application Archive in a standard format, which is discussed further below.
A web application is defined as a hierarchy of directories and files in a standard layout. Such a hierarchy can be accessed in its "unpacked" form, where each directory and file exists in the filesystem separately, or in a "packed" form known as a Web ARchive, or WAR file. The former format is more useful during development, while the latter is used when you distribute your application to be installed.
The top-level directory of your web application hierarchy is also the document root of your application. Here, you will place the HTML files and JSP pages that comprise your application's user interface. When the system administrator deploys your application into a particular server, he or she assigns a context path to your application (a later section of this manual describes deployment on Tomcat). Thus, if the system administrator assigns your application to the context path /catalog, then a request URI referring to /catalog/index.html will retrieve the index.html file from your document root.
Standard Directory Layout
To facilitate creation of a Web Application Archive file in the required format, it is convenient to arrange the "executable" files of your web application (that is, the files that Tomcat actually uses when executing your app) in the same organization as required by the WAR format itself. To do this, you will end up with the following contents in your application's "document root" directory:
* *.html, *.jsp, etc. - The HTML and JSP pages, along with other files that must be visible to the client browser (such as JavaScript, stylesheet files, and images) for your application. In larger applications you may choose to divide these files into a subdirectory hierarchy, but for smaller apps, it is generally much simpler to maintain only a single directory for these files.
* /WEB-INF/web.xml - The Web Application Deployment Descriptor for your application. This is an XML file describing the servlets and other components that make up your application, along with any initialization parameters and container-managed security constraints that you want the server to enforce for you. This file is discussed in more detail in the following subsection.
* /WEB-INF/classes/ - This directory contains any Java class files (and associated resources) required for your application, including both servlet and non-servlet classes, that are not combined into JAR files. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under /WEB-INF/classes/. For example, a Java class named com.mycompany.mypackage.MyServlet would need to be stored in a file named /WEB-INF/classes/com/mycompany/mypackage/MyServlet.class.
* /WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers.
When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary.
Much of this information was extracted from Chapter 9 of the Servlet API Specification, version 2.3, which you should consult for more details.
Shared Library Files
Like most servlet containers, Tomcat 5 also supports mechanisms to install library JAR files (or unpacked classes) once, and make them visible to all installed web applications (without having to be included inside the web application itself. The details of how Tomcat locates and shares such classes are described in the Class Loader HOW-TO documentation. For the purposes of our discussion, there are two locations that are commonly used within a Tomcat 5 installation for shared code:
* $CATALINA_HOME/common/lib - JAR files placed here are visible both to web applications and internal Tomcat code. This is a good place to put JDBC drivers that are required for both your application and internal Tomcat use (such as for a JDBCRealm).
* $CATALINA_BASE/shared/lib - JAR files placed here are visible to all web applications, but not to internal Tomcat code. This is the right place for shared libraries that are specific to your application.
Out of the box, a standard Tomcat 5 installation includes a variety of pre-installed shared library files, including:
* The Servlet 2.4 and JSP 2.0 APIs that are fundamental to writing servlets and JavaServer Pages.
* An XML Parser compliant with the JAXP (version 1.2) APIs, so your application can perform DOM-based or SAX-based processing of XML documents.
Web Application Deployment Descriptor
The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
As mentioned above, the /WEB-INF/web.xml file contains the Web Application Deployment Descriptor for your application. As the filename extension implies, this file is an XML document, and defines everything about your application that a server needs to know (except the context path, which is assigned by the system administrator when the application is deployed).
The complete syntax and semantics for the deployment descriptor is defined in Chapter 13 of the Servlet API Specification, version 2.3. Over time, it is expected that development tools will be provided that create and edit the deployment descriptor for you. In the meantime, to provide a starting point, a basic web.xml file is provided. This file includes comments that describe the purpose of each included element.
NOTE - The Servlet Specification includes a Document Type Descriptor (DTD) for the web application deployment descriptor, and Tomcat 5 enforces the rules defined here when processing your application's /WEB-INF/web.xml file. In particular, you must enter your descriptor elements (such as <filter>, <servlet>, and <servlet-mapping> in the order defined by the DTD (see Section 13.3).
Tomcat Context Descriptor
The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
A /META-INF/context.xml file can be used to define Tomcat specific configuration options, such as loggers, data sources, session manager configuration and more. This XML file must contain one Context element, which will be considered as if it was the child of the Host element corresponding to the Host to which the The Tomcat configuration documentation contains information on the Context element.
Deployment With Tomcat 5
In order to be executed, a web application must be deployed on a servlet container. This is true even during development. We will describe using Tomcat 5 to provide the execution environment. A web application can be deployed in Tomcat by one of the following approaches:
* Copy unpacked directory hierarchy into a subdirectory in directory $CATALINA_HOME/webapps/. Tomcat will assign a context path to your application based on the subdirectory name you choose. We will use this technique in the build.xml file that we construct, because it is the quickest and easiest approach during development. Be sure to restart Tomcat after installing or updating your application.
* Copy the web application archive file into directory $CATALINA_HOME/webapps/. When Tomcat is started, it will automatically expand the web application archive file into its unpacked form, and execute the application that way. This approach would typically be used to install an additional application, provided by a third party vendor or by your internal development staff, into an existing Tomcat installation. NOTE - If you use this approach, and wish to update your application later, you must both replace the web application archive file AND delete the expanded directory that Tomcat created, and then restart Tomcat, in order to reflect your changes.
* Use the Tomcat 5 "Manager" web application to deploy and undeploy web applications. Tomcat 5 includes a web application, deployed by default on context path /manager, that allows you to deploy and undeploy applications on a running Tomcat server without restarting it. See the administrator documentation (TODO: hyperlink) for more information on using the Manager web application.
* Use "Manager" Ant Tasks In Your Build Script. Tomcat 5 includes a set of custom task definitions for the Ant build tool that allow you to automate the execution of commands to the "Manager" web application. These tasks are used in the Tomcat deployer.
* Use the Tomcat Deployer. Tomcat 5 includes a packaged tool bundling the Ant tasks, and can be used to automatically precompile JSPs which are part of the web application before deployment to the server.
Deploying your app on other servlet containers will be specific to each container, but all containers compatible with the Servlet API Specification (version 2.2 or later) are required to accept a web application archive file. Note that other containers are NOT required to accept an unpacked directory structure (as Tomcat does), or to provide mechanisms for shared library files, but these features are commonly available.
Copyright © 1999-2006, Apache Software Foundation -
How can i deploy adf-richclient-demo.war to tomcat?
how can i deploy adf-richclient-demo.war to tomcat or
how can i use adf faces 11G in tomcat or
how long will the next version out?
thank you!Hi,
the demo is a WAR file. So if you have a tomcat version that supports JSF 1.2 then you should be able to deploy it like any other JEE WAR file
Frank -
Error while deploying ear-file to J2EE via NWDS/SDM
Hi everybody,
i have a problem deploying an ear-file. I was looking for similar cases in forums, but didn't find anything. My application is developed by jsp/servlets. The deployment aborts with following error-massage:
Caught exception during application deployment from SAP J2EE Engine's deploy API:
com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.warcom.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason: java.io.IOException: Stream closed
I don't know what the reason could be. The application is running on tomcat. And I can deploy other applications to j2ee with nwds/sdm.
Maybe somebody had or has the same problem. Or somebody knows the answer for the problem. Please help, points will be regarded. Thanks in advance.
best regards
LuHi,
I checked the log-files, but there are no helpful informations, but:
07/04/23 12:08:04 - Start updating EAR file...
07/04/23 12:08:04 - start-up mode is lazy
07/04/23 12:08:20 - com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
java.io.IOException: Stream closed
and
Apr 23, 2007 12:08:20... Error: Aborted: development component 'Dokusunddownloads'/'sap.com'/'localhost'/'2007.04.23.12.07.47'/'0':
Caught exception during application deployment from SAP J2EE Engine's deploy API:
com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
java.io.IOException: Stream closed
thanks,
Lu -
Error while deploying ear file generated from weblogic to ocj4
Hi All,
I have an .ear file which has been generated from weblogic server.I tried to deploy it on ocj4 aby created a new project in eclipse and deploying it on ocj4.
When I try to run my project it gives me an error:
2008-12-15 19:13:54.811 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.classloader.util.AnnotatedLinkageError: duplicate class definition: javax/xml/rpc/Service
Invalid class: javax.xml.rpc.Service
Loader: Test.web.TSOptyQGateWeb:0.0.0
Code-Source: /C:/OC4J_10.1.3.4/j2ee/home/applications/Test/TSOptyQGateWeb/WEB-INF/lib/jaxrpc.jar
Configuration: WEB-INF/lib/ directory in C:\OC4J_10.1.3.4\j2ee\home\applications\Test\TSOptyQGateWeb\WEB-INF\lib
Dependent class: oracle.jsp.runtimev2.JspPageInstFacade$DeclaredAction
Loader: oc4j:10.1.3
Code-Source: /C:/OC4J_10.1.3.4/j2ee/home/lib/ojsp.jar
Configuration: <code-source> in META-INF/boot.xml in C:\OC4J_10.1.3.4\j2ee\home\oc4j.jar
The original class instance was defined in the shared-library oracle.ws.jaxrpc:1.1, and oc4j:10.1.3 does import that loader. This may be a search-order problem.
Can anyone help??Hi,
I checked the log-files, but there are no helpful informations, but:
07/04/23 12:08:04 - Start updating EAR file...
07/04/23 12:08:04 - start-up mode is lazy
07/04/23 12:08:20 - com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
java.io.IOException: Stream closed
and
Apr 23, 2007 12:08:20... Error: Aborted: development component 'Dokusunddownloads'/'sap.com'/'localhost'/'2007.04.23.12.07.47'/'0':
Caught exception during application deployment from SAP J2EE Engine's deploy API:
com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
java.io.IOException: Stream closed
thanks,
Lu -
Error while deploying .par file through system admin
I have tried to modify logon.par file but when I was try deploy that file again through system admin then I got this error...................
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
com.sapportals.portal.ume.component.logon.SAPMLogonComponent.
Exception id: 10:19_11/05/07_0006_13454550
See the details for the exception ID in the log file
Please help me out I am using sneak preview 7.0
Detailed Error Log & Trace
=========================================================
Exception ID:08:55_11/05/07_0002_13454550
[EXCEPTION]
com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : com.sap.portal.support.browse.default
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.sapportals.portal.ume.component.logon.SAPMLogonComponent of Portal Component com.sap.portal.support.browse.default because: Could not find implementation class
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:242)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
... 26 more
Caused by: java.lang.ClassNotFoundException: com.sapportals.portal.ume.component.logon.SAPMLogonComponent
Found in negative cache
Loader Info -
ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@3389d1]
Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@1b7a6fa]
References:
not registered!
No resources !
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:360)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
... 30 moreHi,
Open ur PAR file then double click on PORTAL-INF -> lib->Select 2 jar files
1.com.sap.portal.runtime.logon_api.jar
2.umelogonbase.jar
Copy those jar file & paste in to lib in ur application.
Regards,
Senthil kumar K. -
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 -
Fail to deploy ear file to AS10g
Hi friends,
I use Jdev10g to generate ear file and dcmctl to deploy to AS10g. Something must have been wrong but I couldn't work it out. Really need your help.
--info: Project:"Master Detail page using ADF"
http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_ComplexMasterDetail.zip
--Here are my WAR and EAR file
unzip -l ../ias904/mywork/ADF_ComplexMasterDetail.ear
Archive: /raid1/oracle/ias904/mywork/ADF_ComplexMasterDetail.ear
Length Date Time Name
104 09-21-04 13:28 META-INF/MANIFEST.MF
4730626 09-21-04 13:28 ADF_ComplexMasterDetail.war
439 09-21-04 10:39 META-INF/application.xml
285 09-21-04 10:36 META-INF/orion-application.xml
4731454 4 files
unzip -l ../ias904/mywork/ADF_ComplexMasterDetail.war
Archive: /raid1/oracle/ias904/mywork/ADF_ComplexMasterDetail.war
Length Date Time Name
104 09-21-04 13:28 META-INF/MANIFEST.MF
3175 09-21-04 13:28 WEB-INF/classes/DataBindings.cpx
439 09-21-04 11:17 WEB-INF/classes/META-INF/application.xml
575 09-21-04 13:26 WEB-INF/classes/META-INF/data-sources.xml
285 09-21-04 11:17 WEB-INF/classes/META-INF/orion-application.xml
613 09-21-04 13:26 WEB-INF/classes/Model.jpx
881 09-21-04 13:28 WEB-INF/classes/connections.xml
1844 09-21-04 13:26 WEB-INF/classes/model/DepartmentManagersView.xml
4004 09-21-04 13:26 WEB-INF/classes/model/Departments.xml
3849 09-21-04 13:26 WEB-INF/classes/model/DepartmentsImpl.class
1975 09-21-04 13:26 WEB-INF/classes/model/DepartmentsView.xml
364 09-21-04 13:26 WEB-INF/classes/model/DepartmentsViewImpl.class
1329 09-21-04 13:26 WEB-INF/classes/model/DeptMgrFkAssoc.xml
1091 09-21-04 13:26 WEB-INF/classes/model/DeptMgrFkLink.xml
1336 09-21-04 13:26 WEB-INF/classes/model/EmpDeptFkAssoc.xml
1095 09-21-04 13:26 WEB-INF/classes/model/EmpDeptFkLink.xml
1332 09-21-04 13:26 WEB-INF/classes/model/EmpJobFkAssoc.xml
1343 09-21-04 13:26 WEB-INF/classes/model/EmpManagerFkAssoc.xml
1098 09-21-04 13:26 WEB-INF/classes/model/EmpManagerFkLink.xml
9312 09-21-04 13:26 WEB-INF/classes/model/Employees.xml
7121 09-21-04 13:26 WEB-INF/classes/model/EmployeesImpl.class
3836 09-21-04 13:26 WEB-INF/classes/model/EmployeesView.xml
1135 09-21-04 13:26 WEB-INF/classes/model/EmployeesViewImpl.class
2842 09-21-04 13:26 WEB-INF/classes/model/Jobs.xml
3368 09-21-04 13:26 WEB-INF/classes/model/JobsImpl.class
997 09-21-04 13:26 WEB-INF/classes/model/client/EmployeesViewClient.class
239 09-21-04 13:26 WEB-INF/classes/model/common/EmployeesView.class
1210 09-21-04 13:26 WEB-INF/classes/model/common/bc4j.xcfg
1273 09-21-04 13:26 WEB-INF/classes/model/hrService.xml
1717 09-21-04 13:26 WEB-INF/classes/model/hrServiceImpl.class
2152 09-21-04 13:26 WEB-INF/classes/model/model.xml
3591 09-21-04 11:17 WEB-INF/classes/view/BrowseAllEmployeesAction.class
1122 09-21-04 11:17 WEB-INF/classes/view/BrowseEmployeesInDeptAction.class
1179 09-21-04 11:17 WEB-INF/classes/view/QueryEmployeesAction.class
4529 09-21-04 11:17 WEB-INF/classes/view/UIModels/browseAllDepartmentsUIModel.xml
5104 09-21-04 11:17 WEB-INF/classes/view/UIModels/browseAllEmployeesUIModel.xml
6195 09-21-04 11:17 WEB-INF/classes/view/UIModels/browseEmployeesInDeptUIModel.xml
4436 09-21-04 11:17 WEB-INF/classes/view/UIModels/editEmployeeInDeptUIModel.xml
4300 09-21-04 11:17 WEB-INF/classes/view/UIModels/editEmployeeUIModel.xml
3742 09-21-04 11:17 WEB-INF/classes/view/UIModels/masterDetailUIModel.xml
3631 09-21-04 11:17 WEB-INF/classes/view/UIModels/queryAllDepartmentsUIModel.xml
6130 09-21-04 11:17 WEB-INF/classes/view/UIModels/queryEmployeesInDeptUIModel.xml
2174 09-21-04 11:17 WEB-INF/classes/view/UIModels/queryEmployeesUIModel.xml
1010 09-21-04 13:28 WEB-INF/classes/view/resources/AppSampleResources.properties
3581 09-21-04 13:28 WEB-INF/classes/view/resources/ApplicationResources.properties
1810 09-21-04 11:17 WEB-INF/classes/view/util/HelpDispatcherAction.class
49438 05-14-04 19:28 WEB-INF/lib/adf-controller.jar
163279 05-14-04 19:28 WEB-INF/lib/bc4jhtml.jar
42730 05-14-04 19:29 WEB-INF/lib/bc4juixtags.jar
118726 06-30-03 11:50 WEB-INF/lib/commons-beanutils.jar
165119 06-30-03 11:50 WEB-INF/lib/commons-collections.jar
109096 06-30-03 11:50 WEB-INF/lib/commons-digester.jar
112307 05-11-04 17:17 WEB-INF/lib/commons-el.jar
22379 06-30-03 11:50 WEB-INF/lib/commons-fileupload.jar
63980 06-30-03 11:50 WEB-INF/lib/commons-lang.jar
31605 06-30-03 11:50 WEB-INF/lib/commons-logging.jar
46865 06-30-03 11:50 WEB-INF/lib/commons-validator.jar
140889 05-14-04 19:29 WEB-INF/lib/datatags.jar
17747 05-14-04 19:29 WEB-INF/lib/graphtags.jar
65368 06-30-03 11:50 WEB-INF/lib/jakarta-oro.jar
191881 01-28-04 03:32 WEB-INF/lib/jaxen-full.jar
3086 05-11-04 17:17 WEB-INF/lib/jsp-el-api.jar
21128 01-28-04 03:32 WEB-INF/lib/jstl.jar
3503 05-11-04 17:17 WEB-INF/lib/oracle-el.jar
23563 01-28-04 03:32 WEB-INF/lib/saxpath.jar
515490 01-28-04 03:32 WEB-INF/lib/standard.jar
498051 06-30-03 11:50 WEB-INF/lib/struts.jar
1271111 01-28-04 03:32 WEB-INF/lib/xalan.jar
2529 03-01-04 04:34 appsample_files/10gwelcome.gif
37314 03-03-04 00:26 appsample_files/blaf-en-ie-6.css
62 04-04-03 06:32 appsample_files/c-ghb.gif
61 04-04-03 06:32 appsample_files/c-ghbr.gif
66 04-04-03 06:32 appsample_files/c-ghcb.gif
145 04-04-03 06:32 appsample_files/c-ghct.gif
49 04-04-03 06:32 appsample_files/c-ght.gif
68 04-04-03 06:32 appsample_files/c-ghtl.gif
68 04-04-03 06:32 appsample_files/c-ghtr.gif
5395 03-03-04 00:26 appsample_files/mod_jdeveloper.css
661 01-29-04 08:35 appsample_files/return.gif
1870 03-02-04 20:23 appsample_files/sample_footer.jsp
7957 03-02-04 08:04 appsample_files/sample_header.jsp
1544 03-02-04 20:20 appsample_files/sample_help_footer.jsp
1490 03-02-04 20:19 appsample_files/sample_help_header.jsp
747 03-26-04 17:08 appsample_files/sample_sidebar.jsp
2105 04-04-03 06:47 appsample_files/samples.gif
272 04-04-03 07:19 appsample_files/wwv_help.gif
4974 03-05-04 21:35 browseAllDepartments.jsp
5730 03-08-04 23:31 browseAllEmployees.jsp
5213 03-08-04 15:01 browseEmployeesInDept.jsp
2594 03-03-04 00:22 css/jdeveloper.css
3485 03-03-04 21:37 editDepartment.jsp
5063 03-08-04 23:27 editEmployee.jsp
2686 02-12-04 10:18 editEmployeeInDept.jsp
3279 03-08-04 14:50 help/MasterDetailJSPKey.jsp
14710 03-06-04 14:03 help/helpSection1.jsp
15223 03-08-04 23:47 help/helpSection2.jsp
16556 03-08-04 23:09 help/helpSection3.jsp
2191 03-03-04 20:37 help/helpSection4.jsp
36555 03-08-04 13:37 help/images/StrutsPageFlow.jpg
19352 03-03-04 22:13 help/images/section1_flow.gif
8532 03-08-04 13:41 help/images/section2_flow.gif
5454 03-08-04 19:08 help/images/section3_flow.gif
247 02-09-04 14:58 images/ViewObject.gif
806 02-11-04 09:33 images/sideMenuBottom.gif
833 02-11-04 09:31 images/sideMenuBottomC.gif
806 02-11-04 09:29 images/sideMenuRight.gif
806 02-11-04 09:33 images/sideMenuTop.gif
831 02-11-04 09:31 images/sideMenuTopC.gif
1739 04-05-04 16:59 index.jsp
5272 03-03-04 20:53 masterDetail.jsp
6132 03-26-04 17:06 queryAllDepartments.jsp
5104 03-08-04 23:34 queryEmployees.jsp
9543 03-08-04 23:33 queryEmployeesInDept.jsp
5468 02-18-04 10:11 sideMenu.jsp
517075 02-09-04 15:07 web-inf/lib/standard.jar
227 09-21-04 11:15 web-inf/orion-web.xml
8868 02-09-04 14:54 web-inf/struts-bean.tld
10175 09-20-04 14:42 web-inf/struts-config.xml
65029 02-12-04 10:52 web-inf/struts-html-el.tld
66192 02-10-04 12:03 web-inf/struts-html.tld
2513 02-12-04 10:53 web-inf/web.xml
4713475 121 files
--when I deployed on AS10g using:
"dcmctl
deployApplication -file ../ias904/mywork/ADF_ComplexMasterDetail.ear -a jdev9051samples/JSPMasterDetail"
I got following error:
ADMN-300158
Jar file: /var/tmp/jar64914.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Jar file: /var/tmp/jar64914.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
Resolution:
at oracle.ias.sysmgmt.deployment.j2ee.file.WarFile.<init>(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.init(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.<init>(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getEarDeployer(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getEarDeployer(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.deployApp(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
Thanks in advance.I wish there is a forum for JDev like asktom.oracle.com for DBA.
I posted several questions but receive no feedback.
future never wait :-( -
Problems with properties files and war files in weblogic 5.1
I work with WebLogic 5.1 and I'm trying to deploy a web application which gets
a properties file. If I deploy it as an expanded directory hierarchy (with the
properties files into WEB-INF/classes) I have no problems. While deploying it
by a .war file I get this message: "en_GB java.util.MissingResourceException:
Can't find resource for base name Agent, locale en " (the getBundle() method is
trying to get an english property file). What could I do? Is it really a weblogic
5.1 bug?
Thanks,
David
This issue comes up repeatably. It's a real bug.
I believe this problem was fixed in a 5.1 service pack, but I'm trying to
find out the exact disposition of the issue. Noone seems to be complaining
about this under 6.x, so a fix seems to have been made, the only question is
whether or not it got back-ported to a 5.1 service pack.
Gary
david <[email protected]> wrote in message
news:3ac4a39a$[email protected]..
>
> I work with WebLogic 5.1 and I'm trying to deploy a web application which
gets
> a properties file. If I deploy it as an expanded directory hierarchy (with
the
> properties files into WEB-INF/classes) I have no problems. While deploying
it
> by a .war file I get this message: "en_GB
java.util.MissingResourceException:
> Can't find resource for base name Agent, locale en " (the getBundle()
method is
> trying to get an english property file). What could I do? Is it really a
weblogic
> 5.1 bug?
> Thanks,
> David
-
Error occurred while deploying ear file
Hello experts,
I am using NWDS (NW Version: 7.0.18). For a particular java file I am getting this error:
ERROR: Not deployed. Deploy Service returned ERROR:
20110728174758 Info : java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/WSPiloto.ear.
20110728174758 Info : Reason: None of the available containers recognized the components of application sap.com.avn/WSPiloto; it is not possible to make deploy. Most commonly used containers do not recognize the content of the application. Please contact the application vendor for details.
Appreciate your help to fix the issue.
Thanks in advance,
Guillermo,
devHi,
can you please check if the following note helps?
#1270242 -- None of the available containers recognized the components
(http://service.sap.com/sap/support/notes/1270242)
Best Regards,
Ervin -
Runtime exeception after deploying PAR file in portal
Hi ,
I am facing an issue during the deployment of PAR file in our Quality portal. I have download the PAR file from the system-->import to the NWDS--> did the modification (only to the properties files as part of my requirement) -->Export as PAR file. I then undeploy the previous earlier PAR file and then upload the modified PAR file in portal. When i test the application , i received portal runtime error.
I have also tried by downloading the PAR file for the same application from the production portal and tried importing to Quality system without making any modification to the PAR. I still face the same issue.
Due to this issue, i am not able to bring the application back as its not getting deployed properly. Can anyone help me on this.
Regards
RayHi Ray,
Are you sure your file is getting deployed properly. Can you verify if the time stamp of the PAR file is getting updated on each deployment or after you upload it through Portal.
Also, please check the PAR file (size and it's contents by unzipping the PAR file) that you've downloaded from PROD and deploying on QAS to ensure that the file is not corrupted by any means during downloading.
You can also ask your BASIS team to provide the PAR file directly from PROD server and try to upload it on QAS instead of you downloading it from PROD portal.
Also, you can follow the below steps to download the PAR file yourself from PROD portal with Administrator ID:
Browse to the following location : System administration->Support->Portal Runtime->Browse deployment->ROOT/WEB-INF/deployment/temp
1. Find and Identify the PAR file and Copy the name of PAR file.
2. Click on view instead of download link to save the PAR file. Keep the name of PAR file same while saving with .par extension.
3. Deploy this file on QAS Portal.
Please let us know the results.
BR,
Anurag
Maybe you are looking for
-
ICal Problem, everyday in iCal is monday
Hey guys i have a problem in apple's iCal since i use Snow Leopard on my MacBook. I have a iMac and it run's with Leopard (iCal works on my iMac without any problem). My problem is that iCal shows me everyday in the weekview as Monday. I tried alread
-
Can you reinstall a CC app after it has been uninstalled on a PC?
I installed the updated version of InDesign CC (2014) onto my work PC. The next day my computer was having trouble starting and running slow. IT suggested that I uninstall the updated InDesign (2014) so I did, plus the previous version CC, so I would
-
Hi all, I have problem with invoice spool. VF31 Invoices are spooled by SAP as one spool file per invoice document. My requirement is to create only one spool file for all invoices instead of one spool request for one invoice. Any idea how to group a
-
Serial Number InDesign 7.5 doesn't work anymore
I bought Adobe InDesign in October 2011 and had since then a serial. I bought it online as download. Now I had to buy a new computer, so I also had to install InDesign again, but now it doesn't accept my serial anymore. I just found CreativeCloud to
-
If i bought an ipod touch 4th gen,could i just set it up without a computer?
i want to ask for one for christmas but no new apple products will connect to my laptop,so will i just be able to set it up without a computer?