War file creation
HI,
Could you please tel me .. How to create a war file by using weblogic workshop. what are the things we wil get it from dev team. what files are required must and shoul when we creating war file.Could please proivde detail architecutre.. and let me know how to build the War file.
Please can anyone help me ASAP.
Regards,
Srini
What version of weblogic workshop?
Select File|Export menu item and then select Web|WAR file (or type war in the "Select an export destination" box and then select WAR file.
Similar Messages
-
JDeveloper 10g, ADF, ANT:How to define ant task for EAR & WAR file creation
I am trying to automate the deployment process of our ADF Faces & BC application. I have reviewed this doc:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm
and followed the procedure for integrating ant onto the server. I can build the project and also successfully deploy the ear file. Howerver, I did not find any instruction on how to generate the EAR file. Can anyone point me to the right place for this task definition?
Here is my current build.xml file.
<?xml version="1.0" encoding="windows-1252" ?>
<!--Ant buildfile generated by Oracle JDeveloper-->
<!--Generated Jul 16, 2007 12:20:13 PM-->
<project name="CRDBApps" default="build-all" basedir="." xmlns:oracle="antlib:oracle">
<property file="build.properties"/>
<property file="ant-oracle.properties"/>
<target name="clean-all" depends="">
<ant antfile="build.xml" dir="CRDBView" target="clean"/>
<ant antfile="build.xml" dir="CRDBLib" target="clean"/>
<ant antfile="build.xml" dir="CRDBModel" target="clean"/>
</target>
<target name="build-all" depends="clean-all">
<ant antfile="build.xml" dir="CRDBView" target="compile"/>
<ant antfile="build.xml" dir="CRDBLib" target="compile"/>
<ant antfile="build.xml" dir="CRDBModel" target="compile"/>
</target>
<target name="deployear" depends="">
<echo message="-----> Deploying the application module deployment (ear) file"/>
<oracle:deploy deployerUri="deployer:oc4j:opmn://myserver/home"
userid="oc4jadmin"
password="password"
file="CRDBView/deploy/CRDBApps.ear"
deploymentName="CRDBApps"
bindAllWebApps="default-web-site"/>
</target>
</project>
thanks!
WesThanks all for the tips. After reading up a bit today on ear/war files and ant. I ended up just creating a task to mimic the ear/war file structure. My script isnt pretty but I'll work on refining that later. Here is what I have if anyone ever is interested:
<target name="war" depends="">
<echo message="Executing target war..."/>
<mkdir dir="war"/>
<copydir src="CRDBView\public_html" dest="war\"/>
<copydir src="CRDBView\classes" dest="war\WEB-INF\classes"/>
<copydir src="CRDBModel\classes" dest="war\WEB-INF\classes"/>
<copydir src="CRDBLib\classes" dest="war\WEB-INF\classes"/>
<echo message="Creating war file..."/>
<jar basedir ="war" destfile="CRDBApps.war"/>
<echo message="Done executing target war..."/>
</target>
<target name="ear" depends="war">
<echo message="Executing target ear..."/>
<mkdir dir="ear\META-INF"/>
<copydir src="CRDBView\deploy\META-INF" dest="ear\META-INF"/>
<copy file="CRDBApps.war" todir="ear\"/>
<jar basedir ="ear" destfile="CRDBApps.ear"/>
<echo message="Done executing target ear..."/>
</target>
<target name="cleanAndDeployCRDBApps" depends="build-all,deployear">
<echo message="Executing target cleanAndDeployCRDBApps..."/>
<delete dir="war"/>
<delete dir="ear"/>
<echo message="Done executing target cleanAndDeployCRDBApps..."/>
</target>
<target name="deployear" depends="ear">
<echo message="Executing target deployear"/>
<oracle:deploy deployerUri="deployer:oc4j:opmn://myserver:6003/home"
userid="oc4jadmin"
password="password"
file="CRDBApps.ear"
deploymentName="CRDBApps"
bindAllWebApps="default-web-site"/>
<delete file="CRDBApps.ear"/>
<delete file="CRDBApps.war"/>
<echo message="Done executing target deployear"/>
</target>
... -
Hi friends.... I'm new to java....
according to my little knowledge creating a war file is optional,
but i don't know if we directly deployed web application like servlet application in the web server(ex: webapps in TOMCAT)
what problems may get if my computer system not in the network and what problems may get if my computer system in the network....i know we must create a war file for appropriate application if the server is in remote place....
please reply.....thank youIsn't it easier to deploy one file than it is to deploy dozens, hundreds, even thousands?
-
Deploying a WAR file to Sun App Server 8.1 PE
So I thought that if I downloaded Sun App Server PE 8.1 and put it on my soon-to-be production machine, it should be pretty easy right?
Nope. So I have JSC update 6 (which includes Sun Application Server 8.0) (God how I wish there was a catchy name like Tomcat or something)
And I have a machine running a good copy, installed and everything, of Sun Application Server 8.1 Platform Edition (another catchy name) up on the production target.
I create a WAR file in JSC, scp it up.
Then try to deploy it - so I get bit by the no DB connection thing.
Ok, but when I copy each of my connection's attributes (the driver (which I did copy up to the lib directory) is MySQL's Connector/J)
I copy the username, password, URL and DriverClass attributes to the connection pool.
I still get a
"Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter"
when I try to Ping the ConnectionPool
I have javax.sql.DataSource as the resource type... (same as 8.0 uses)
what JAR file is DriverAdapter in? anyone know?
cheers,
KrisOkay. mysql folks - this works......
here's what happened, on the production server, different from the dev machine....
mysql 4.1.9
sun application server platform edition PE 8.1
connector/j - latest
and on the dev machine: JSC Update 6 and the app works fine on the dev machine.
first, there is a JAR file in ~whatever/Create/SunAppServer/lib/ named
driveradaptor.jar
and it it comtains
com.sun.sql.datasource.DriverAdapter
which 8.1 ain't got
and should be copied up to
/installdir/SunAppServer/domains/domain1/lib/ext/driveradapter.jar
(domain1 is your app svr domain that runs your app.)
your Connector/J JAR needs to go here too. I used:
mysql-connector-java-3.2.0-alpha-bin.jar
downloaded from mysql.com.
and then there is the whole thing about Added Properties in the Connection Pool page inside the 8.1 Admin Console (which is nice work guys). Gawd, I added a bunch of properties and am, frankly, not sure which ones actually work (for the Ping, for the initial connection creation and the eventual successful connection all seem to use different combinations...)
and I found this in the domain's domain.xml once all the admin console page filling was done - but you'll need to add each one as a Property in the connection pool:
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" [blah...]
<property name="Username" value="root"/>
<property name="Password" value="secret"/>
<property name="ValidationQuery" value="SELECT 1"/>
<property name="DriverClassName" value="com.mysql.jdbc.Driver"/>
<property name="LoginTimeout" value="0"/>
<property name="Url" value="jdbc:mysql://localhost/databasename?autoReconnect=true"/>
<property name="User" value="root"/>
<property name="password" value="secret"/>
<property name="PasswordCredential" value="secret"/>
</jdbc-connection-pool>
(and you see how User and Username and username are all the same thing? well, different parts of 8.1 seem to use different attributes...)
Just keep Adding Properties in the connection pool until you get them all....
Oh and, the two key class references for the pool are:
datasource class: com.sun.sql.datasource.DriverAdapter
resource type: javax.sql.ConnectionPoolDataSource
Finally: in the /installdir/SunAppServer/domains/domain1/applications/j2ee-modules/YourAppName/WEB-INF/
your 'sun-web.xml' (don't delete it, like some have advocated, I think that wrong) needs to look like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
<context-root>/yourcontext</context-root>
<resource-ref>
<res-ref-name>jdbc/Yourname</res-ref-name>
<jndi-name>jdbc/Yourname</jndi-name>
<default-resource-principal>
<name>root</name>
<password>secret</password>
</default-resource-principal>
</resource-ref>
</sun-web-app>
and I think that's all of it. the only Bug I would I would say is that the sun-web.xml should have the right res-ref-name, but then I think the Creator Team knows this and will fix it sometime soon.
cheers,
and Roger Federer lost in the Aussie Open. (I think he lost tomorrow too, that whole time zone thing being so damn Einsteinian...)
-Kristofer -
How to import WAR files in NetBeans 6.1?
Please any one tell me how to import WAR files in NetBeans 6.1?
I have been using NetBeans for so many diff project but till now i didn't get chance to import WAR. But there i tried one wat as follows:
New Project -----> Enterprise ----> package Archive ...... it shows me creating project bar at right bottom bur i cannot see any such project at project window as weel as specified location pecified at the time of creation. -
Class not found error when jar in war file
I am using Java Creator 2 and have a project. The required libraries have been added to the library manager and the "package" checkbox has been checked. This means they will be added to the deployment.
After deployment, I check the war file and it contains the proper libraries. However, when I run it by using the "run main project" option from the menu there is ClassNotFound exception. The class that cannot be found is in one of the jars in the war file. As I said, I have checked this war file after deployment and it contains the jar.
Only thing I can think of is that another classloader is being used. Incidentally, (I hope), the missing class file is related to hibernate. During the creation of the Hibernate session factory, it cannot find this file. But hibernate should have nothing to do with it. The fact is a class file cannot be found even though it is in a jar contained in the war file.
Any ideas?Did you read the tutorial from Creator?
David
http://www.pricerunner.com/forum/viewtopic.php?t=1659 -
Deploy .war file in Ebs 11i-11.5.10.2
Hi,
My boss is asking me to deploy the .war file in one of the EBS 11i - 11.5.10.2 instance. I am wondering to know how can we deploy .war in EBS 11i Instance?
If we can deploy the .war in EBS 11i Instance please post the high level steps and if not kinldy suggest the softwares how to deploy the .war?
As my understanding is We would required to install OC4J in new machine which will install the default DB and we can deploy the .war file in that OC4J server.
Thanks,
SyedHi,
I believe your understanding is correct. Please see (Note: 557221.1 - Oracle WebCenter 10g Application Creation and Deployment Guide for Oracle E-Business Suite Release 12) but it is for R12 for the steps of deploying war files.
Regards,
Hussein -
How to Deploy war file in oracle apps 12
Hi,
Please advice the steps to deploy war file on the Oracle apps release 12.
Thanks..Hi,
Have a look at the following note, it may be helpful.
Note: 557221.1 - Oracle WebCenter 10g Application Creation and Deployment Guide for Oracle E-Business Suite Release 12
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=557221.1
Regards,
Hussein -
WAR file not getting generated
I am in the development of a web application with jsf2 ,and I am almost done with that and pretty much happy with the outcome , but now comes the problem , I am trying to get the project as WAR file but after the war creation wizard I am not seeing any war file in the mentioned path. Please let me know any suggestions
I am using
Jdeveloper 11I just figured way out of my problm silly me, but now the generated WAR is throwing errors while deploying it
-
Problems with war file,popups and forms
Hi All,
we are using adf faces and jdeveloper 11g for our project.
Development work and all have happened fine, but we are facing few problems when we created the war file of the project and deployed it on tomcat 6.0 .
The major problem we are facing after the deployment of war on tomcat 6.0 is:
Popus (the popups we created and calender popups) are not showing up. The page simply refreshes when click on the popup link. There are no exceptions thrown, no errors in tomcat logs. The same thing is happeing for calender popups also.
We are using the following code for popup creation:
<af:popup id="mypop" eventContext="self">
<table>
<af:spacer width="10" height="20"/>
<tr>
<td>Name:</td>
<td>
<af:inputText columns="20" required="true" value="#{FL.name}"/>
</td>
</tr>
</table>
<table>
<tr>
<td>
<af:commandButton text="Submit" action="#{FL.ValidateName}"/>
</td>
</tr>
<af:spacer width="10" height="10"/>
<tr>
<td>
<af:outputText value="(*) Marked fields are compulsory"/>
</td>
</tr>
</table>
</af:popup>
<af:commandLink>
ADD Name
<af:showPopupBehavior popupId="mypop" align="endBefore"
triggerType="action"/>
</af:commandLink>
the following jars are included in web-inf/lib folder:
adf-controller-api.jar
adf-controller-rt-common.jar
adf-controller.jar
adf-faces-databinding-rt.jar
adf-pageflow-dtrt.jar
adf-pageflow-fwk.jar
adf-pageflow-impl.jar
adf-pageflow-rc.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
adf-share-base.jar
adf-share-ca.jar
adf-share-support.jar
adflibfilter.jar
adflogginghandler.jar
adfm.jar
adfmweb.jar
cache.jar
commons-el.jar
commons-logging-1.1.1.jar
db-ca.jar
dms.jar
dvt-faces.jar
dvt-jclient.jar
dvt-utils.jar
fmw_audit.jar
glassfish.jstl_1.2.0.1.jar
identitystore.jar
inspect4.jar
javatools-nodeps.jar
javax.management.j2ee_1.0.jar
jaxen-full.jar
jdbc2_0-stdext.jar
jewt4.jar
jmxframework.jar
jmxspi.jar
jps-api.jar
jps-common.jar
jps-ee.jar
jps-internal.jar
jps-unsupported-api.jar
jsf-api.jar
jsf-impl.jar
jsf-ri.jar
jstl.jar
log4j.jar
mdsrt.jar
ojdbc14_g.jar
ojdl.jar
oracle-el.jar
oraclepki.jar
org.apache.commons.beanutils_1.6.jar
559,366 org.apache.commons.collections_3.1.jar
org.apache.commons.logging_1.0.4.jar
osdt_cert.jar
osdt_core.jar
saxpath.jar
share.jar
standard.jar
trinidad-api.jar
trinidad-impl.jar
wls-api.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
xmlef.jar
xmlparserv2.jar
We are struggling to find a solution for this.
Any suggestions on this will be highly appreciated.
Thank you.Hi,
please try removing all your HTML elements and just use ADF Faces components. Chances are that mixing HTML with JSF components, though possible in JSF 1.2 causes this conflict
Frank -
I have a war file...how can I import it to the netbeans API and run it?
I have been using NetBeans for so many diff project but till now i didn't get chance to import WAR. But there i tried one wat as follows:
New Project -----> Enterprise ----> package Archive ...... it shows me creating project bar at right bottom bur i cannot see any such project at project window as weel as specified location pecified at the time of creation. -
I have an application, and deploy the war file, I make a new war and when I go to deploy the next error appaers:
Error while de-serializing the information concerning the J2EE application from the PersistentObject named: inv with description: J2EE application: inv Root Cause:
oracle.ias.sysmgmt,common,Init.Parameters; is no Serializable.
In the web server the only change was modify the IP number.
What can I do?
Thanks,
MIGUEL ANGEL CARO
[email protected]Here are some links that might be helpful.
http://www.weblogic.com/docs60/servlet/admin.html
http://www.weblogic.com/docs60/programming/webappdeployment.html
The first link has an overview of web app structure and some useful links to
more information on web apps. The second link describes the web.xml and
weblogic.xml files.
Error messages related to web app creation and url resolution will be printed
in the weblogic.log file which is in the directory where you start the WebLogic
server.
mark
Matt Heaton wrote:
> I'm trying to deploy a war file with a single servlet but I can't seem to get it to deploy. Weblogic 6 doesn't give me any errors back but the application doesn't appear to have any contents in it. I'm sure it has something to do with the structure of my war file or the deployment descriptors, can you point me to some good documentation of them. Also is there anyway to view error messages?
-
I'm trying to deploy a war file with a single servlet but I can't seem to get it to deploy. Weblogic 6 doesn't give me any errors back but the application doesn't appear to have any contents in it. I'm sure it has something to do with the structure of my war file or the deployment descriptors, can you point me to some good documentation of them. Also is there anyway to view error messages?
Here are some links that might be helpful.
http://www.weblogic.com/docs60/servlet/admin.html
http://www.weblogic.com/docs60/programming/webappdeployment.html
The first link has an overview of web app structure and some useful links to
more information on web apps. The second link describes the web.xml and
weblogic.xml files.
Error messages related to web app creation and url resolution will be printed
in the weblogic.log file which is in the directory where you start the WebLogic
server.
mark
Matt Heaton wrote:
> I'm trying to deploy a war file with a single servlet but I can't seem to get it to deploy. Weblogic 6 doesn't give me any errors back but the application doesn't appear to have any contents in it. I'm sure it has something to do with the structure of my war file or the deployment descriptors, can you point me to some good documentation of them. Also is there anyway to view error messages?
-
Error while running a report JSP in a war file from 9iAS server
Hi,
I've a web application archive file (war) which i m deploying to the web using OEM. The war file consists of many JSPs. Among those JSPs i have one Report JSP, which i m calling from another JSP which is like a parameter form for the report JSP. When i call the report JSP, it gave me the following error,
javax.servlet.jsp.JspException: com.sun.corba.se.internal.iiop.ORB
javax.servlet.jsp.JspException: com.sun.corba.se.internal.iiop.ORB
at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:334)
at FMCardExp.jspService(_FMCardExp.java:58)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
The report tag in the report JSP is as follows,
<rw:report id="report" parameters="server=repsvr&userid=scott/tiger@db">
The report server is up and running and so is the database. This report JSP was generated from the reports builder and the opened in JDeveloper environment,in the war file project. It was then compiled and a war file was created. Surprisingly this report JSP works fine when i run my webapplication from the embedded OC4J instance for JDeveloper, but when i try to run it from the 9iAS server i get the above mentioned error. The deployment of the war file to the server is successful and the other JSPs work fine, only the reports JSP is not working. Do i need to have some settings for running the reports JSP, please advise.
Thanks in advance
UnmeshCan you please help me in deploying jdeveloper (9.0.3.1)war file to 9iAS release 1, when I try to run, none of the jsp's execute, I get java OutOf Memory error, I also think that there may be some version compatibility between jdev jdk and 9iAS jdk.
Thanks,
Kavitha -
Error while deploying a .war file
Hi,
I have a one Servlet class, which references two more classes for database
connection. After creating a .war file, I am trying to deploy it on iAS, and I
get the following error:
Failed to deploy web application "MBSServlet". Jar file: /var/tmp/jar61304.tmp
is missing its standard xml descriptor located at WEB-INF/web.xml
I don't know anything about /var/tmp/jar61304.tmp, I don't know where is it picking it up from. And my web.xml is as follows:
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" " " target="_new">http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>MBSServlet</servlet-name>
<servlet-class>MBSServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MBSServlet</servlet-name>
<url-pattern>/MBSServlet</url-pattern>
</servlet-mapping>
</web-app>
Any help!!
thanks!!
ShaluHi,
For a tutorial with source on how to create and deploy a simple quickstart JEE5 JPA enterprise 3-tier application on your Oracle WebLogic 10.3 server - see the following example that uses the EclipseLink JPA provider. You should be able to transition all of your mapping information (the @ManyToOne and table/column overrides and named queries for example) using either JPA via entity annotations or native extensions if you do not want to implement EJB3.
see...
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
We also have a similar version for Tomcat 6 except the JPA entity beans run outside a container-managed JTA transaction on the web container - for reference.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial
thank you
/michael
www.eclipselink.org
Maybe you are looking for
-
2035n which driver to use for 32bit share on 64bit Server 2008
I've just got a new 2035n. I'm sharing the printer on a windows 2008 server 64bit. I used the vista64bit driver to get it installed on the server. I'm trying to add x86 drivers in the share tab so that my xp machines will automatically install the d
-
Hi, I have an empty page between my title page and the first page of my script. I've tried the method suggesting in another post but it doesn't work. Anyone got any ideas??? Thanks Anna
-
Script to rotate an image in InDesign CS4 from an Excel Spreadsheet
Hi all, Is there a script for InDesign CS4 that reads degrees from an excel spreadsheet and then rotates a specific image by the same amount of degrees that was written in this excel spreadsheet? I would like to create a column in Excel full of rotat
-
hi weblogic users, i have a problem in sending jms messages across two different weblogic host/domain. the configuration is: jms client: -JAX-WS webservice web app -deployed in WebLogic Server Version: 10.3.1.0 -host: 192.168.30.133:7011 -domain: ChS
-
Hi, In Mavericks Mail , I can´t transfer the adresses direkt by clicking to the "to" or the Bcc - field ... ?