J2EE Deployment WAR problems
Greetings all..
This is strange. One minute my WAR file works, the next
minute I get this error!?
javax.servlet.ServletException: Invalid Configuration: see
previous failures.
flex.util.ServiceUtil.setupFlexService(ServiceUtil.java:55)
flex2.server.j2ee.MxmlServlet.init(MxmlServlet.java:58)
flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:444)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
Can anyone tell me what this means?
Many thanks,
--Dave
Yes...Someone, anyone, please answer this question. I've found no answers anywhere online, and I'd like to cruise through the j2ee tutorial and get my feet wet before working with other j2ee servers.
Similar Messages
-
JDev - J2EE Deployment Problem
I'm not sure if I should be posting this here or in the J2EE forum but here is my problem. Whenever I try to deploy a web application to our J2EE server I get the following error.
Invoking Oracle9iAS admin tool...
D:\jdk1.3.1\jre\bin\javaw.exe -jar D:\jdev9i_902\j2ee\home\admin.jar ormi://some.remote.host:23791/ admin **** -deploy -file D:\jdev9i_902\jdev\mywork\JSPTest\HW\HW.ear -deploymentName HW
Communication error: Disconnected: Connection reset by peer: JVM_recv in socket input stream read
Exit status of Oracle9iAS admin tool (-deploy): 0
-If i try to deploy a war file I get this slightly different error.
D:\jdk1.3.1\jre\bin\javaw.exe -Xmx128m -jar D:\jdev9i_902\j2ee\home\admin.jar ormi://some.remote.host:23791/ admin **** -deploy -file D:\jdev9i_902\jdev\mywork\JSPTest\Project1\webapp1.ear -deploymentName webapp1
Communication error: Disconnected: Connection reset by peer: JVM_recv in socket input stream read
Exit status of Oracle9iAS admin tool (-deploy): 0
D:\jdk1.3.1\jre\bin\javaw.exe -jar D:\jdev9i_902\j2ee\home\admin.jar ormi://some.remote.host:23791/ admin **** -bindWebApp webapp1 webapp1 http-web-site /JSPTest-Project1-context-root
Error: com.evermind.server.rmi.OrionRemoteException: Disconnected: Connection reset by peer: JVM_recv in socket input stream read
Exit status of Oracle9iAS admin tool (-bindWebApp): 1
Here is what I do to run our J2EE server.
java -Xmx268435456 -jar $j2ee_home/orion.jar
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
I'm running JDev 9.0.2.829
I have confirmed that the J2EE server is listening on port 23791 and I can browse to it on port 8888. Any help would be appreciated.
-Eric DalquistSee Infrastructure Serrver is down and Re: Lov values filtered by the value selected in other LOV for related discussions.
Here is a cut-and-paste of the important part:
When JDeveloper deploys to a remote OC4J, JDeveloper must use client-side classes to communicate with the server-side administrative objects via RMI. Since communication over RMI uses object serialization to send object instances across the wire, if there is a difference in version in the client-side objects and the server-side objects, there are likely to be deploy-time problems. The incompatibility would be due to implementation decisions made by the OC4J development team.
By default, JDeveloper uses the client-side OC4J classes that ship with JDeveloper. However, if you need to deploy to a different version of OC4J than what ships with JDeveloper, you can tell JDeveloper to use a different set of client-side classes when defining an OC4J connection in the JDeveloper connection manager. On step 3 of the Connection Wizard, there is a field labeled "Local Directory Where admin.jar for Oracle9iAS is Installed". Point that to the OC4J 1.0.2.2 directory containing admin.jar, and you should then be able to deploy from JDev 9i (9.0.2) production to OC4J 1.0.2.2.
There are a few other less common causes for hanging at deploy-time. Let's say you've specified a target server URL of "ormi://myserver".
1) Try specifying the full host name instead of the abbreviated name -- works around problems with hostname resolution.
2) Try specifying the IP address of the target server instead of the hostname -- works around problems with DNS lookups.
3) Try specifying "http:ormi://myserver" as the URL instead -- works around problems with a proxy server that is between the JDeveloper machine and the server (by using HTTP tunnelling).
Hope that helps. -
[b]problem with deploy .war file
Hi
I am trying to deploy a war file. I have Oracle 9iAS (release 2) in Sun Solaris server.
I am using the enterprise manager gui to try to deploy a .war file as follows.
My .war file has the structure: folder META-INF, folder WEB-INF, and other folders. THe folder
WEB-INF has the file web.xml and the folder classes.
I connect to enterprise manager at port 1810 and go to the OC4J home page and under
deployed applications, I choose under applications "Deploy WAR file". It takes me to the next page
where I enter the war file (pippo.war)
Application Name: pippo
Map to URL: /pippo
THe only choice I have then is to click the Deploy button. I then get the response
"Failed to deploy web application "pippo". Jar file: /var/tmp/jar29056.tmp is missing its standard xml descriptor located at WEB-INF/web.xml"
In that path there is not that file, there are 2 folders, one with the file .war and one with the file .ear
I have no idea what this error message means.
The documentation for deploying servlets in 9ias using enterprise manager makes no mention of this.
Thanks,
MarcellaMarcella,
Are you using Oracle9iAS 9.0.3 ?
Does this happen with any war file ?
Are you able to deploy a ear file without problems ?
Can you please test if you can deploy your war in a
OC4J standalone environment ? steps from the general faq available at http://otn.oracle.com/tech/java/oc4j
How can I deploy a WAR file to OC4J standalone ?
The command line deployment tool (admin.jar) requires an EAR file as it's deployment archive. To deploy a WAR file using this, you must package the WAR file within a EAR file.
You can manually deploy a WAR file to OC4J However following are the steps involved in deploying a WAR file in OC4J.
1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
copy mywar.war D:\oc4j\j2ee\home\applications
2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
line:
<web-module id="mywar" path="../applications/mywar.war" />
3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
<web-app application="default" name="mywar" root="/mywar" />
In Oracle9iAS Release 2; deployment of applications is done either using EM or via the DCM commands.
thanks,
-Prasad -
How to Deploy .war on J2EE
Hi,
Can anyone tell me how do i deploy .war file on J2EE engine. While searchin for the solution, i learnt that i need to convert .war file to .ear file, is that right?. Can anyone tell me how do i do that. what tool to use and the procedure. I dnt want to do the conversion from .war to .ear and deployment through NWDS.
Regards,
naveenHi,
Thanks for the reply. I was able to convert the .war file to .ear file using the deploy tool as suggested by you. But i'm having problem connecting to the J2EE engine.Our portal is active at port 50000 and hence wanted to
deploy the EAR on the port 50000.While tryin to connect to port
50000 we get the followin error,but connection to other port (50004) does not
throw any error. I tried resetting the user 'Administrator' and the port to 50000 using config tool, but still the same error is being displayed. I also restarted the J2EE engine after makin the changes.
ERROR: Cannot connect to Host: [localhost] with user name: [Administrator]
Check your login info.
Exception is:
com.asap.engine.services.jndi.persistent.exceptions.NamingException:
Exception while trying to get InitialContext. [Root exception is
com.sap.engine.services.security.exceptions.BaseLoginException: Cannot
create new RemoteLoginContext instance.]
Please assist in solving the above issue. -
Problem deploying war created in Sun Java Studio Enterprise 8
I have, with some help from this forum, converted a portlet application from the Sun Java Studio Enterprise 7 environment to the Sun Java
Studio Enterprise 8 environment. This portlet application runs in SJSE 8 now but fails when I pdeploy it to the portal server (Portal Server 6
2005 Q1). The old war created from SJSE 6 does work. The code is identical. The war files are slightly different.
On deployment I get:
[DEBUG] Getting Jar File from war...
[DEBUG] Getting Portlet DD as Stream...
[DEBUG] Creating DPProviders...
[DEBUG] Updating the Portlet Application...
[DEBUG] Adding Providers to DP...
[DEBUG] Adding provider: provider=__Portlet__timetableEnt8.Timetable
[DEBUG] Creating DPProvider...
[DEBUG] Checking for duplicate name: name=__Portlet__timetableEnt8.Timetable
[DEBUG] Validating modified DP doc...
[DEBUG] Storing the DP...
Done Updating Display Profile! Deploying War File to Web Container...
SUCCESS.But in the logs I see:
[#|2006-04-04T13:09:58.112-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=10;|WebModule
[/portlet]Error configuring application listener of class
com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
java.lang.ClassNotFoundException: com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1447)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1228)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3958)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)
at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:833)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:688)
at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:889)
at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
|#]
[#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
Skipped installing application listeners due to previous error(s)|#]
[#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
Error listenerStart|#]
[#|2006-04-04T13:09:58.115-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
Context startup failed due to previous errors|#]When I look in the create "New Portlet Channel..." in the am console my application appears in the list but when I create a channel based on it, the whole desktop crashes with this error:
[#|2006-04-03T11:39:41.699-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=16;|
StandardWrapperValve[desktopServlet]: Servlet.service() for servlet desktopServlet threw exception
java.lang.IllegalStateException: getWriter() has already been called for this response
at org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:588)
at org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFacade.java:166)
at com.sun.portal.desktop.DesktopServlet.getWriter(DesktopServlet.java:444)
at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:328)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221)
at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)
|#]When I remove my custom channel the desktop renders normally.
As I mentioned before, the war created with 7 did not cause this and the application behaved normally.
Any insight would be appreciated.
I am going to look at the diff between the two wars.
Thanks,
AllanI have the same problem, how do yuo resolve that?
Edited by: 864937 on Jun 9, 2011 1:43 PM -
Customizing AM Images & Facing Problem in Update & Deploy War files
Hey Guys!
This is Yash Bansal from Gurgaon, India. i am new to access manager. i am now customizing it and facing problem in customizing.
I have customized images which is present in directory path:
opt/SUNWam/web-src/services/images/
and updated services.war file which is present in directory path:
opt/SUNWam/war/
with command
jar -uvf services.war /opt/SUNWam/web-src/services/images/login-backimage.jpg
then deployed configuration from the web server 7.0 admin console.
after that when i open the url
http://<hostname>/amserver/console
then Page Not Found error comes in the browser.
Just wanted to ask you guys am i doing the steps right. please help if someone know how to update and deploy war file on Sun Web server 7.0.
Thanks & Regards,
Yash BansalHi!
Deploying the configuration does not (re)deploy the application. Webserver stores a copy of the deployed application and all configurations in the admin instance. When you change anything in the webserver console it is first written there and only applied to the productive instance when you deploy configuration.
When you add images, jsps or something else to /opt/SUNWam/... and want it redeployed you have to use amconfig command. in /opt/SUNWam/bin there is a file called amsamplesilent. You have to fill the values in this file and then use
./amconfig -s amsamplesilent
I believe for a redeploy you have to set DEPLOY_LEVEL to 21, not sure here, check documentation.
I personally usually do not redeploy for images and such, I simply copy them directly the deployed location.
Why http://.../amserver/console does not work anymore, I have no idea. But at least after a redeploy it should be there again.
hth Chris -
Deployment Tool Problem (J2EE -Composite primary Key Class)
Hi !!
e.g. I have an entiybean which has composite primary key class. So while deploying in J2EE tool u need to specify the Primary key class and the primary key field. well in case of a composite primary key class(if u have more than one field)...how do u declare all the fields for primary key class....
if u r not getting me please tell me... See in J2EE deployment tool there is on section called Entity..in that see the Primary Key class (there u specify the Primary key class) and the Primary Key Field Name (the field name) Here u can just give only one Field name..if you have mulitple fields, then where you will specify... Please let me know..
if anybody wants the code I will give the code...Please try to help..(how to deploy this kind of entity bean in J2EE deployment tool)
-BhumikaHi Bhumika,
in case you have more than one field you need to write a Primary key class where the fields you want to be the key are member variables.
your p.key class could look like this (it has to implement hash() and equals() ):
public class PersonPK implements java.io.Serializable
public int person_ID;
public PersonPK()
public PersonPK(int aPersonId)
person_ID = aPersonId;
public int hashCode()
return person_ID;
public boolean equals(Object ob)
if (ob == this) return true;
if (!(ob instanceof PersonPK)) return false;
PersonPK other = (PersonPK) ob;
if (person_ID != other.person_ID) return false;
return true;
-Hope this helps a bit,
Anke -
Deploying war files to weblogic 10.3.4
I have a weblogic domain 10.3.4 and a war file (smap.war). I can deploy this war file using weblogic console (10.3.4).
However, I cannot using ant (wldeploy 11.1.1.4) to deploy this war file. It shows error as follow.
This war file and weblogic domain is in the same machine.
------------------error---------------------------
[wldeploy] Task 27 failed: [Deployer:149026]deploy application smap.war on AdminServer.
[wldeploy] Target state: deploy failed on Server AdminServer
[wldeploy] weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
[wldeploy] problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/javaee' instead of 'description@http://www.w3.org/2001/XMLSchema-instance' here in element servlet@http://java.sun.com/xml/ns/javaee:<null>
[wldeploy] problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/javaee' instead of 'display-name@http://www.w3.org/2001/XMLSchema-instance' here in element servlet@http://java.sun.com/xml/ns/javaee:<null>
[wldeploy] at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
[wldeploy] at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
---------------------------build.xml------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!--Ant buildfile generated by Oracle JDeveloper-->
<!--Generated Mar 11, 2011 3:52:31 PM-->
<project default="init">
<target name="init">
<tstamp/>
</target>
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="welcome1" />
<property name="wls.hostname" value="localhost" />
<property name="wls.port" value="7001" />
<property name="admin.server.name" value="AdminServer" />
<property name="deploy.target" value="AdminServer" />
<!-- Here you can specify Either ClusterName, IndividualServerName Like "ManagedOne" or comma Seperated List of Managed/AdminServer -->
<property name="deploy.name" value="smap.war" />
<property name="deploy.source" value="E:\SVN_Root\smap_Build" />
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
<classpath>
<pathelement location="D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar"/>
</classpath>
</taskdef>
<target name="szmap" depends="init" >
<war destfile="${deploy.source}\smap.war"
webxml="${deploy.source}\smap\WebContent\WEB-INF\web.xml" >
<fileset dir="${deploy.source}\smap\WebContent"/>
<classes dir="${deploy.source}\smap\build\classes"/>
</war>
</target>
<target name="deployX" depends="init">
<echo message="27 deploy.source=${deploy.source}"/>
<echo message="28 deploy.name=${deploy.name}"/>
<wldeploy action="deploy"
name="${deploy.name}"
source="${deploy.source}\${deploy.name}"
user="${wls.username}"
nostage="true"
password="${wls.password}"
verbose="true"
adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}"
debug="true"
/>
</target>
<!-- Redeploying Applications -->
<target name="redeploy">
<wldeploy action="redeploy"
name="${deploy.name}"
user="${wls.username}"
nostage="true"
password="${wls.password}"
verbose="true"
adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}" />
</target>
<!-- Uneploying Applications -->
<target name="undeployX">
<wldeploy action="undeploy"
name="szmap"
failonerror="false"
user="${wls.username}"
password="${wls.password}"
verbose="true"
adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}" />
</target>
<target name="all" depends="init, deployX"/>
</project>In szmap.war\WEB-INF\lib, I can find spring-beans-2.0.8.jar, spring-context-2.0.8.jar, spring-core-2.0.8.jar, spring-web-2.0.8.jar.
I change weblogic.xml as follows. Then, I get new errors.
<?xml version = '1.0' encoding = 'UTF-8'?>
<weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"
xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<library-ref>
<library-name>spring-beans-2.0.8.jar</library-name>
</library-ref>
<library-ref>
<library-name>spring-context-2.0.8.jar</library-name>
</library-ref>
<library-ref>
<library-name>spring-core-2.0.8.jar</library-name>
</library-ref>
<library-ref>
<library-name>spring-web-2.0.8.jar</library-name>
</library-ref>
<library-ref>
<library-name>cxf-2.2.5.jar</library-name>
</library-ref>
<library-ref>
<library-name>wsdl4j-1.6.2.jar</library-name>
</library-ref>
</weblogic-web-app>
----------------------------error-------------------------------------
Buildfile: E:\CI_Build\szmap\ANT\ANTszmap\ANT_szmap\build_szmap.xml
init:
deployX:
[echo] 27 deploy.source=E:\SVN_Root\szmap_Build
[echo] 28 deploy.name=szmap.war
[wldeploy] weblogic.Deployer -debug -nostage -verbose -noexit -name szmap.war -source E:\SVN_Root\szmap_Build\szmap.war -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
[wldeploy] weblogic.Deployer invoked with options: -debug -nostage -verbose -noexit -name szmap.war -source E:\SVN_Root\szmap_Build\szmap.war -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -deploy
[wldeploy] [WebLogicDeploymentManagerImpl.<init>():115] : Constructing DeploymentManager for J2EE version V1_4 deployments
[wldeploy] [WebLogicDeploymentManagerImpl.getNewConnection():158] : Connecting to admin server at localhost:7001, as user weblogic
[wldeploy] [ServerConnectionImpl.getEnvironment():286] : setting environment
[wldeploy] [ServerConnectionImpl.getEnvironment():289] : getting context using t3://localhost:7001
[wldeploy] [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.domainruntime
[wldeploy] [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime
[wldeploy] [DomainManager.resetDomain():36] : Getting new domain
[wldeploy] [DomainManager.resetDomain():39] : Using pending domain: true
[wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@4406cef4
[wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@4406cef4
[wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@8429c19
[wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@8429c19
[wldeploy] [ServerConnectionImpl.initialize():169] : Connected to WLS domain: sunzmap_domain
[wldeploy] [ServerConnectionImpl.init():159] : Initializing ServerConnection : [email protected]3969
[wldeploy] [BasicOperation.dumpTmids():713] : Incoming tmids:
[wldeploy] [BasicOperation.dumpTmids():715] : {Target=AdminServer, WebLogicTargetType=server, Name=szmap.war}, targeted=true
[wldeploy] [BasicOperation.deriveAppName():141] : appname established as: szmap.war
[wldeploy] <2011-3-15 下午03时48分03秒 CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, szmap.war [archive: E:\SVN_Root\szmap_Build\szmap.war], to AdminServer .>
[wldeploy] [BasicOperation.dumpTmids():713] : Incoming tmids:
[wldeploy] [BasicOperation.dumpTmids():715] : {Target=AdminServer, WebLogicTargetType=server, Name=szmap.war}, targeted=true
[wldeploy] [BasicOperation.loadGeneralOptions():628] : Delete Files:false
[wldeploy] Timeout :3600000
[wldeploy] Targets:
[wldeploy] AdminServer
[wldeploy] ModuleTargets={}
[wldeploy] SubModuleTargets={}
[wldeploy] }
[wldeploy] Files:
[wldeploy] null
[wldeploy] Deployment Plan: null
[wldeploy] App root: C:\Users\ADMINI~1\AppData\Local\Temp\2\Administrator\.\config\deployments\szmap.war
[wldeploy] App config: C:\Users\ADMINI~1\AppData\Local\Temp\2\Administrator\.\config\deployments\szmap.war\plan
[wldeploy] Deployment Options: {isRetireGracefully=true,isGracefulProductionToAdmin=false,isGracefulIgnoreSessions=false,rmiGracePeriod=-1,retireTimeoutSecs=-1,undeployAllVersions=false,archiveVersion=null,planVersion=null,isLibrary=false,libSpecVersion=null,libImplVersion=null,stageMode=nostage,clusterTimeout=3600000,altDD=null,altWlsDD=null,name=szmap.war,securityModel=null,securityValidationEnabled=false,versionIdentifier=null,isTestMode=false,forceUndeployTimeout=0,defaultSubmoduleTargets=true,timeout=0,deploymentPrincipalName=null,useExpiredLock=false}
[wldeploy]
[wldeploy] [BasicOperation.execute():445] : Initiating deploy operation for app, szmap.war, on targets:
[wldeploy] [BasicOperation.execute():447] : AdminServer
[wldeploy] Task 33 initiated: [Deployer:149026]deploy application szmap.war on AdminServer.
[wldeploy] dumping Exception stack
[wldeploy] Task 33 failed: [Deployer:149026]deploy application szmap.war on AdminServer.
[wldeploy] Target state: deploy failed on Server AdminServer
[wldeploy] java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()
[wldeploy] at java.lang.Class.getDeclaredMethod(Class.java:1937)
[wldeploy] at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:41)
[wldeploy] at $Proxy325.getElementType(Unknown Source)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.hasUsingAddressing(JaxWsEndpointImpl.java:201)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:184)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:174)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:206)
[wldeploy] at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:165)
[wldeploy] at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
[wldeploy] at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:597)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
[wldeploy] at java.security.AccessController.doPrivileged(Native Method)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
[wldeploy] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
[wldeploy] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
[wldeploy] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
[wldeploy] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
[wldeploy] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
[wldeploy] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
[wldeploy] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
[wldeploy] at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
[wldeploy] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
[wldeploy] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
[wldeploy] at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
[wldeploy] at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
[wldeploy] at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
[wldeploy] at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
[wldeploy] at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
[wldeploy] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
[wldeploy] at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
[wldeploy] at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
[wldeploy] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
[wldeploy] at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
[wldeploy] at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
[wldeploy] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[wldeploy] at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
[wldeploy] at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
[wldeploy] at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
[wldeploy] at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
[wldeploy] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
[wldeploy] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
[wldeploy] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
[wldeploy] at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
[wldeploy] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
[wldeploy] at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
[wldeploy]
[wldeploy]
[wldeploy] Target Assignments:
[wldeploy] + szmap.war AdminServer
[wldeploy] weblogic.deploy.api.tools.deployer.DeployerException: Task 33 failed: [Deployer:149026]deploy application szmap.war on AdminServer.
[wldeploy] Target state: deploy failed on Server AdminServer
[wldeploy] java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()
[wldeploy] at java.lang.Class.getDeclaredMethod(Class.java:1937)
[wldeploy] at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:41)
[wldeploy] at $Proxy325.getElementType(Unknown Source)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.hasUsingAddressing(JaxWsEndpointImpl.java:201)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:184)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:174)
[wldeploy] at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:206)
[wldeploy] at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:165)
[wldeploy] at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
[wldeploy] at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
[wldeploy] at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:597)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
[wldeploy] at java.security.AccessController.doPrivileged(Native Method)
[wldeploy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
[wldeploy] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
[wldeploy] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
[wldeploy] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
[wldeploy] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
[wldeploy] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
[wldeploy] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
[wldeploy] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
[wldeploy] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
[wldeploy] at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
[wldeploy] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
[wldeploy] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
[wldeploy] at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
[wldeploy] at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
[wldeploy] at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
[wldeploy] at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
[wldeploy] at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
[wldeploy] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
[wldeploy] at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
[wldeploy] at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
[wldeploy] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[wldeploy] at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
[wldeploy] at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
[wldeploy] at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
[wldeploy] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[wldeploy] at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
[wldeploy] at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
[wldeploy] at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
[wldeploy] at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
[wldeploy] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
[wldeploy] at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
[wldeploy] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
[wldeploy] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
[wldeploy] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
[wldeploy] at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
[wldeploy] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
[wldeploy] at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
[wldeploy]
[wldeploy]
[wldeploy]
[wldeploy] at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:542)
[wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
[wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[wldeploy] at weblogic.Deployer.run(Deployer.java:70)
[wldeploy] at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:597)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:597)
[wldeploy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:348)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:357)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[wldeploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[wldeploy] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:179)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:268)
[wldeploy] [ServerConnectionImpl.close():332] : Closing DM connection
[wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
[wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
BUILD FAILED
weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 33 failed: [Deployer:149026]deploy application szmap.war on AdminServer.
Target state: deploy failed on Server AdminServer
java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()
at java.lang.Class.getDeclaredMethod(Class.java:1937)
at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:41)
at $Proxy325.getElementType(Unknown Source)
at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.hasUsingAddressing(JaxWsEndpointImpl.java:201)
at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:184)
at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:174)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:206)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:165)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
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:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.Ev -
WEB-INF/web.xml not found exception for deployed war on server startup
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Kumar,
Here it is.
Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
Can you send us your webapp? I will try to duplicate it in my environment.
Kumar
Steve Demuth wrote:
Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
Interesting.
This shouldn't happen though.
Can you stop the server delete the .wl_temp_do_not_delete
dir? Let's see if that makes any difference.
Kumar
Steve Demuth wrote:
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
[att1.html]
[controllerUnitTests.war]
-
'asant deploy-war' commmand failure
The 'asant build' command and 'asant create-war' command succeeded (see below) but 'asant deploy-war' commmand did not. Then I had to use command 'asadmin deploydir --contextr
oot /hello1 C:/Sun/AppServer/j2eetutorial14/examples/web/hello1/build' in order to succeed. How could I make 'asant deploy-war' command succeed?
Ilyas
C:\Sun\AppServer\j2eetutorial14\examples\web\hello1>asant build
Buildfile: build.xml
j2ee-home-test:
init:
prepare:
[mkdir] Created dir: C:\Sun\AppServer\j2eetutorial14\examples\web\hello1\bu
ld
copy:
[copy] Copying 3 files to C:\Sun\AppServer\j2eetutorial14\examples\web\hel
o1\build
build:
[mkdir] Created dir: C:\Sun\AppServer\j2eetutorial14\examples\web\hello1\bu
ld\WEB-INF
[copy] Copying 1 file to C:\Sun\AppServer\j2eetutorial14\examples\web\hell
1\build\WEB-INF
BUILD SUCCESSFUL
Total time: 2 seconds
C:\Sun\AppServer\j2eetutorial14\examples\web\hello1>asant create-war
Buildfile: build.xml
j2ee-home-test:
init:
prepare:
copy:
build:
create-war:
[echo] Creating the WAR....
[copy] Copying 1 file to C:\Sun\AppServer\j2eetutorial14\examples\web\hello
1\assemble\war\WEB-INF
[copy] Copying 3 files to C:\Sun\AppServer\j2eetutorial14\examples\web\hell
o1\assemble\war
[war] Building war: C:\Sun\AppServer\j2eetutorial14\examples\web\hello1\as
semble\war\hello1.war
[copy] Copying 1 file to C:\Sun\AppServer\j2eetutorial14\examples\web\hello
1
BUILD SUCCESSFUL
Total time: 2 seconds
C:\Sun\AppServer\j2eetutorial14\examples\web\hello1>asant deploy-war
Buildfile: build.xml
deploy-war:
admin_command_common:
[echo] Doing admin task deploy hello1.war
BUILD FAILED
file:C:/Sun/AppServer/j2eetutorial14/examples/common/targets.xml:56: The <sun-ap
pserv-admin> task doesn't support the "passwordfile" attribute.
Total time: 1 second
C:\Sun\AppServer\j2eetutorial14\examples\web\hello1>asadmin deploydir --contextr
oot /hello1 C:/Sun/AppServer/j2eetutorial14/examples/web/hello1/build
Command deploydir executed successfully.
C:\Sun\AppServer\j2eetutorial14\examples\web\hello1>Hi Jane,
Thank you for your prompt reply.
I found targets.xml in C:\Sun\AppServer\j2eetutorial14\examples\common folder as follows:
<path id="classpath">
<fileset dir="${j2ee.home}/lib">
<include name="j2ee.jar"/>
</fileset>
</path>
<target name="j2ee-home-test" >
<!-- Test if j2ee.home is set properly by looking for j2ee.jar -->
<available file="${j2ee.home}/lib/j2ee.jar" type="file" property="j2ee.jar.present" />
<fail unless="j2ee.jar.present">
The j2ee.home property is not properly set in <INSTALL>/j2eetutorial14/examples/common/build.properties.
Set the j2ee.home property to the location of your Application Server installation.
On Windows, you must escape any backslashes in the j2ee.home property with another backslash or use forward slashes as a path separator. So, if your Application Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:
j2ee.home = C:\\Sun\\AppServer
or
j2ee.home=C:/Sun/AppServer
j2ee.home is currently set to: ${j2ee.home}
</fail>
</target>
<target name="clean" >
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${assemble}" />
</target>
<path id="db.classpath">
<fileset dir="${db.root}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="create-db_common" depends="init"
description="Create database tables and populate database." >
<java classname="com.pointbase.tools.toolsCommander" fork="yes" >
<jvmarg line="${db.jvmargs}" />
<arg line="${db.driver} ${db.url} ${sql.script} ${db.user} ${db.pwd}" />
<classpath refid="db.classpath" />
</java>
</target>
<target name="admin_command_common">
<echo message="Doing admin task ${admin.command}"/>
<sun-appserv-admin
command="${admin.command}"
user="${admin.user}"
passwordfile="${admin.password.file}"
host="${admin.host}"
port="${admin.port}"
asinstalldir="${j2ee.home}" />
</target>
<target name="create-jdbc-resource_common">
<antcall target="admin_command_common">
<param name="admin.command"
value="create-jdbc-resource
--connectionpoolid ${conpool.name} ${jdbc.resource.name}" />
</antcall>
</target>
<target name="delete-jdbc-resource_common">
<antcall target="admin_command_common">
<param name="admin.command"
value="delete-jdbc-resource ${jdbc.resource.name}" />
</antcall>
</target>
<target name="deploy-war">
<antcall target="admin_command_common">
<param name="admin.command"
value="deploy ${war.file}" />
</antcall>
</target>
<target name="undeploy-war">
<antcall target="admin_command_common">
<param name="admin.command"
value="undeploy ${example}" />
</antcall>
</target>
<property environment="env" />
<target name="listprops"
description="Displays values of some of the properties of this build file">
<property file="../../common/admin-password.txt" />
<echo message="Path information" />
<echo message="j2ee.home = ${j2ee.home}" />
<echo message="j2ee.tutorial.home = ${j2ee.tutorial.home}" />
<echo message="env.Path = ${env.Path}" />
<echo message="env.PATH = ${env.PATH}" />
<echo message="" />
<echo message="Classpath information" />
<echo message="classpath = ${env.CLASSPATH}" />
<echo message="" />
<echo message="Admin information" />
<echo message="admin.password = ${AS_ADMIN_PASSWORD}" />
<echo message="admin.password.file = ${admin.password.file}" />
<echo message="admin.host = ${admin.host}" />
<echo message="admin.user = ${admin.user}" />
<echo message="admin.port = ${admin.port}" />
<echo message="https.port = ${https.port}" />
<echo message="" />
<echo message="Domain information" />
<echo message="domain.resources = ${domain.resources}" />
<echo message="domain.resources.port = ${domain.resources.port}" />
<echo message="" />
<echo message="Database information" />
<echo message="db.root = ${db.root}" />
<echo message="db.driver = ${db.driver}" />
<echo message="db.host = ${db.host}" />
<echo message="db.port = ${db.port}" />
<echo message="db.sid = ${db.sid}" />
<echo message="db.url = ${db.url}" />
<echo message="db.user = ${db.user}" />
<echo message="db.pwd = ${db.pwd}" />
<echo message="url.prop = ${url.prop}" />
<echo message="ds.class = ${ds.class}" />
<echo message="db.jvmargs = ${db.jvmargs}" />
</target>I[b] am also struggeling wih this topic 'DB2 UDB jdbc access problem while using J2EE SDK 1.4'. Please see the forum.
Thank you and much appreciated! Ilyas -
Deploying WAR files under a single virtual-host
I wonder why when you deploy war files with the ASADMIN tool and tell it to run them under one virtual server with the --virtual-servers option it deploy's them under all the virtual servers you have defined on the AS?.. why is that?
Chris.Hi, Chris
I will assume you are using the J2EE SDK1.4 FCS bundle.
I've tried this myself on solaris machine today, and seems working fine for me.
1. I created a virtual server called server2 and created new http-listener-3 which listens at port 8081.
2. Then I used this command to deploy:
<J2EE_HOME>/bin/asadmin deploy --virtualservers server2 foo.war
From the server log, it shows this war is only loaded under virtual server "server2" and not the others.
And if I use my browser to point to
http://localhost:8080/foo (which is where the virtual server "server" listens)
I got a HTTP 404 which is expected.
And I point my browser to
http://localhost:8081/foo (which is where the virtual server "server2" listens)
I can access the web app and it runs fine.
If you still see problems, please provide the exact steps you tried so we can try to reproduce it.
Thanks,
- Hong -
How to deploy war file in wesphere5.1
hi
i am new to websphere 5.1. i am trying to deploy war file in websphere admin it giving an error that ear file is corrupt. same file is working with weblogicc..
so please tell me step by step .
if is there any other site where can i get the step step process..
thanks
anaghfirst step: read documentation
second step: apply gathered knowledge
a few pointers, if i am not mistaken your problem is that a weblogic ear uses weblogic specific application.xml, you might wanna focus on that -
Maven scripts for deploying WAR into Weblogic
Hello Folks,
I would need some help in deploying EAR/WAR into weblogic server.
I already have maven scripts for building but not for deploying. your help is appreciated.
Thanks.Hi Ank2cool,
Please see my findings, I have tested the Same "build.xml" again...My AdminServer
UserName is weblogic
and
password is weblogic
<project name="webservices-hello_world" default="deploy">
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="weblogic" />
<property name="wls.hostname" value="localhost" />
<property name="wls.port" value="7001" />
<property name="wls.server.name" value="AdminServer" />
<target name="deploy">
<wldeploy action="deploy" name="PlanDemoEAR" source="PlanDemoEAR" user="${wls.username}"
password="${wls.password}1" verbose="true" adminurl="t3://${wls.hostname}:${wls.port}" targets="${wls.server.name}" />
</target>
</project>
Now when i run the AANT task ant deploy
OUTPUT:
Buildfile: build.xml
deploy:
[wldeploy] weblogic.Deployer -verbose -noexit -name PlanDemoEAR -source C:\JavaTest\PlanDemo\PlanDemoEAR -targets Admin
Server -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
[wldeploy] weblogic.Deployer invoked with options: -verbose -noexit -name PlanDemoEAR -source C:\JavaTest\PlanDemo\Pla
nDemoEAR -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -deploy
[wldeploy] <Dec 21, 2009 2:08:33 PM IST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for app
lication, PlanDemoEAR [archive: C:\JavaTest\PlanDemo\PlanDemoEAR], to AdminServer .>
[wldeploy] Task 1 initiated: [Deployer:149026]deploy application PlanDemoEAR on AdminServer.
[wldeploy] Task 1 completed: [Deployer:149026]deploy application PlanDemoEAR on AdminServer.
[wldeploy] Target state: deploy completed on Server AdminServer
[wldeploy]
[wldeploy] Target Assignments:
[wldeploy] + PlanDemoEAR AdminServer
BUILD SUCCESSFUL
========================TO REPRODUCE YOUR ISSUE I JUST CHANGED THE Password from weblogic to "*weblogic1*" or *"weblogic "* (i added a Single Space at the end of password) in the ANT script....But Server's Actual Password is still "weblogic"=======
OUTPUT:
[wldeploy] Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
[wldeploy] at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
[wldeploy] at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
[wldeploy] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
[wldeploy] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
[wldeploy] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
[wldeploy] at weblogic.security.service.SecurityManager.runAs(Unknown Source)
[wldeploy] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
[wldeploy] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
[wldeploy] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
[wldeploy] at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
BUILD FAILED
C:\JavaTest\PlanDemo\build.xml:12: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerExcep
tion: Unable to connect to 't3://localhost:7001': User: weblogic, failed to be authenticated.. Ensure the url represents
a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.
Total time: 0 seconds
Above is exactly the same error what u are getting...
So please recheck the password provideed in the "build.xml" is correct..or any space added before or after the Password.....
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here) -
I developed an application in Jdev9i Rel.2(W2K) and tried to deploy WAR file on Oracle9iAS Rel.2 (Linux). I am getting the error
"Failed to deploy the application. Failed to save changes to one or more instances..instance1.......... Message: The send operation has been waited too long and reached the specified timeout value in the debug log, increase timeout or check opmn connection"
But my files were copied to applications directory, not to default-web-apps, so how to access it from Browser?
After this, now my OC4J_home is down, when I try to start it, it gives oracle.sysman.emSDK.util.jdk.EMException. I restarted the server also.
My Internet Directory is working. Is it related to memory problem? The OC4J_Portal which was working is also not starting up now.Reeya -- In general, deployment / EM problems associated with 9iAS will probably get better responses on the General iAS forum at:
http://forums.oracle.com/forums/forum.jsp?id=466592
You might want to post your query there.
Thanks -- Jeff -
Dear all,
When we are deploying a war file in Soa 10.1.3.4 . we are getting the following error :
Exception Creating EntityManagerFactory using PersistenceProvider class oracle.toplink.essentials.PersistenceProvider
Did any one faced this error before ?
Please advise
KaiReeya -- In general, deployment / EM problems associated with 9iAS will probably get better responses on the General iAS forum at:
http://forums.oracle.com/forums/forum.jsp?id=466592
You might want to post your query there.
Thanks -- Jeff
Maybe you are looking for
-
Dear Community, On a customer installation i'm facing problems in uploading a file with the FM ARCHIVFILE_CLIENT_TO_SERVER. The pourpose is to use that file in transaction /SCWM/ISU to upload stock. The file is a simple .CSV but when I execute the up
-
My disk drive quit working today. I tried to burn a cd and a couple error messages popped up, and now when i try to insert any cd it will spin in the drive and then eject it. any suggestions?
-
Dear sir, I want to do the payment voucher so please help in detail
-
VA02 (SO) exit or badi after saving SO data - urgent
Hi experts, Please let me know the user exit or BADI after SO data saved and commited, but before all internal tables refreshed. Advices will be rewarded. Thanks, Shaik Bhasha
-
Apple TV lost media any way to recover
I took my Apple Tv to another home to play music and watch movies, It worked for a day then everything is gone. Any way to recover without home computer.