Weblogic.Deployer -remote option
Hi,
using -remote option in weblogic.Deployer I can deploy applications remotely to servers.
Say that I'm deploying apps to remote managed server with port 9001 (admin server port 8001). There is a firewall in between build machine(where I'm deploying apps from) and weblogic server and these two ports are blocked. Is there any way to remote deploy? I know that the app cannot be deployed without these ports open.
Which port is required here to remote deploy?
Note: I dont want to open ports and I dont want to ssh tunnel. right now, the way I'm doing is send the scripts to remote server and then deploy.
If you have any other work around, please post
Thanks,
nlrreddy
Edited by: nlrreddy on Dec 22, 2009 10:53 PM
Hi Nlrreddy,
Option-A).
You can try configuring the Virtual Host for your Admin And Managed Servers.
http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs81/adminguide/web_server.html#103248
After that may be u need to enable Tunnelling as well.
Option-B). Configure a Web Proxy Like (Apache) which runs and Listens on default port 80. Now Enable the Http-Tunneling in Admin Server. Set the Apache to Pass all the requests to Admin WebLogic Server. Now In the Deployer option you can use *"http://ProxyAdderss:proxyPort"* rather than using t3://AdminServerAddress:AdminServerPort
Example:
java weblogic.Deployer -adminurl http://ProxyAdderss:proxyPort -username weblogic -password weblogic -remote -deploy -name complexServiceEar -appversion VesionA -targets AdminServer -source complexServiceEar.ear
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
Edited by: Jay SenSharma on Dec 24, 2009 12:35 PM
Edited by: Jay SenSharma on Dec 24, 2009 12:40 PM
Similar Messages
-
Redeploy using weblogic.Deployer in Weblogic 9.2
Need some help.
We have an application currently running in Weblogic Server 8.1. We have a utility program that we built using Ant Installer that works great that we have been using for a year now to update our WLS 8.1 application. Basically this utility program allows us to easily shutdown specific managed servers, upload our zipped up application, extract it in exploded directory, update some XML files, redeploy using "weblogicDeployer -remote -redeploy etc." and restart the managed servers.
Now for WLS 9.2, we can't get the weblogic.Deployer -redeploy option to work. I've tried leaving managed servers running, stopping deployment and redeploying but the redeploy fails. Has anyone done this before in 9.2? If so, I would like to know the exact steps from start to finish. I've read all the docs on the BEA site, entered the commands exactly as given, but still no luck. One more thing, this is NOT a versioned application.
ThanksHi,
I would guess you are using WebLogic ant task, is this correct?
Are you positive you are not trying to use the WL 8.1 ant task on a WL 9.0 server? If this is the case, try using the WL 9.0 ant task.
Regards,
LG -
Weblogic deployer doesn't work under 9.2, driving me nutso! =P
I've tried everything trying to get the deploy/undeployer to work (tried http, t3 etc.)
Example ant task:
<target name="undeploy">
<path id="xdoclet.lib.path">
<fileset dir="${weblogic.lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<java classname="weblogic.Deployer" fork="true" maxmemory="256m" failonerror="true" classpathref="xdoclet.lib.path">
<arg line="-adminurl http://localhost:7001"/>
<arg line="-username weblogic"/>
<arg line="-password express1"/>
<arg line="-name t1scp3"/>
<arg value="-undeploy"/>
<arg value="-debug"/>
</java>
</target>
I've also tried using the ant task that comes with weblogic, but I always get this error! (I can ping the server using the ping class)
Any ideas? (Stack trace below)
Buildfile: C:\workspace\t1scp3\build.xml
undeploy:
[java] weblogic.Deployer invoked with options: -adminurl http://localhost:7001 -username weblogic -name t1scp3 -undeploy -debug
[java] [WebLogicDeploymentManagerImpl.<init>():103] : Constructing DeploymentManager for J2EE version V1_4 deployments
[java] [WebLogicDeploymentManagerImpl.getNewConnection():146] : Connecting to admin server at localhost:7001, as user weblogic
[java] [ServerConnectionImpl.getEnvironment():288] : setting environment
[java] [ServerConnectionImpl.getEnvironment():291] : getting context using http://localhost:7001
[java] [ServerConnectionImpl.getMBeanServer():239] : Connecting to MBeanServer at service:jmx:http://localhost:7001/jndi/weblogic.management.mbeanservers.domainruntime
[java] java.io.IOException
[java] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:135)
[java] at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:79)
[java] at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:326)
[java] at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServer(ServerConnectionImpl.java:240)
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServerForType(ServerConnectionImpl.java:191)
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:147)
[java] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
[java] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
[java] at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
[java] at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:432)
[java] at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:302)
[java] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
[java] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.Deployer.run(Deployer.java:70)
[java] at weblogic.Deployer.main(Deployer.java:54)
[java] Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
[java] java.io.EOFException]
[java] at weblogic.jrmp.Context.lookup(Context.java:189)
[java] at weblogic.jrmp.Context.lookup(Context.java:195)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
[java] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:126)
[java] ... 17 more
[java] Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
[java] java.io.EOFException
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
[java] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
[java] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
[java] at weblogic.jrmp.BaseRemoteRef.invoke(BaseRemoteRef.java:221)
[java] at weblogic.jrmp.RegistryImpl_Stub.lookup(Unknown Source)
[java] at weblogic.jrmp.Context.lookup(Context.java:185)
[java] ... 20 more
[java] Caused by: java.io.EOFException
[java] at java.io.DataInputStream.readByte(DataInputStream.java:243)
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
[java] ... 25 more
[java] [ServerConnectionImpl.close():334] : Closing DM connection
[java] [ServerConnectionImpl.close():354] : Unregistered all listeners
[java] weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 'http://localhost:7001': null. 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.
[java] at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:314)
[java] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
[java] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.Deployer.run(Deployer.java:70)
[java] at weblogic.Deployer.main(Deployer.java:54)
[java] Caused by: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: [J2EE Deployment SPI:260010]Unable to connect to 'http://localhost:7001' as user, 'weblogic'. Error received: null
[java] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
[java] at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
[java] at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:432)
[java] at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:302)
[java] ... 6 more
[java] Caused by: weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260010]Unable to connect to 'http://localhost:7001' as user, 'weblogic'. Error received: null
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServer(ServerConnectionImpl.java:251)
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServerForType(ServerConnectionImpl.java:191)
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:147)
[java] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
[java] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
[java] ... 9 more
[java] Caused by: java.io.IOException
[java] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:135)
[java] at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:79)
[java] at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:326)
[java] at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
[java] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServer(ServerConnectionImpl.java:240)
[java] ... 13 more
[java] Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
[java] java.io.EOFException]
[java] at weblogic.jrmp.Context.lookup(Context.java:189)
[java] at weblogic.jrmp.Context.lookup(Context.java:195)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
[java] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:126)
[java] ... 17 more
[java] Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
[java] java.io.EOFException
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
[java] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
[java] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
[java] at weblogic.jrmp.BaseRemoteRef.invoke(BaseRemoteRef.java:221)
[java] at weblogic.jrmp.RegistryImpl_Stub.lookup(Unknown Source)
[java] at weblogic.jrmp.Context.lookup(Context.java:185)
[java] ... 20 more
[java] Caused by: java.io.EOFException
[java] at java.io.DataInputStream.readByte(DataInputStream.java:243)
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
[java] ... 25 more
BUILD FAILED
C:\workspace\t1scp3\build.xml:229: Java returned: 1
Total time: 10 seconds<p>Can you add the following to your WLS startup options (or enable the relevant debug subsystems using the WLS9.2 console):</p>
<ul>
<li>weblogic.debug.DebugConnection</li>
<li>weblogic.debug.DebugRouting</li>
<li>weblogic.debug.DebugMessaging</li>
<li>weblogic.debug.isLogRemoteExceptionsEnabled</li>
</ul>
<p>and post the your server log here as well.</p>
<p>Also where did you get the task classes from?</p>
<p>
Hussein Badakhchani
London Middleware
</p>
Edited by hoos at 01/07/2007 3:41 AM -
Need help using weblogic.Deployer to refresh a webapp
I'm trying to refresh some jsp from a webapp deployed in exploded format
in WLS 8.1SP3
The original source files are not located on the machine or filesystem
running the admin server (the webapp is deployed on a cluster)
On WLS 6.1SP5, we use weblogic.refresh to upload the files to the admin
server and redeploy the refreshed files.
The documentation suggest to use weblogic.Deployer with WLS8.1 since
weblogic.refresh is deprecated.
I couldn't find the correct command line options to reproduced the
weblogic.refresh behaviour. Apparently it is not possible to upload the
files to the admin server and redeploy in a single step. weblogic.Deployer
expects the file to be already available to the admin server before
issuing the redeploy (using rsync, ftp or whatever). Is this correct ?
What did I miss ?
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/I thought you've got error of another type - that error is fixed by simple software update.
Regarding your case - it's always frightening in first time. Believe me - there's completely nothing to be afraid of.
Resizing C drive may result killing your DATA on it only in case of energy is down during the process. Process is taking about 15-20 minutes on slow programs and about 3-4 minutes on fast programs. That means that even having problems with electricity you'll be able to finish everything correctly running on battery.
I'd recommend using Acronis Disk director Suite, but it is not free. One of the best free progs for that are bootable Linux livecds PartedMagic and GParted. They're all intuitive understandable.
You will get your NOVO recovery feature lost after C resize, but you can enable it later, replacing that factory backup in hidden partition with your own backup - your NOVO button will restore your system with all your software and settings.
it will be good for you to start with some basic principles on partitions organization schemes - why, what for and how questions are briefly explained here. After reading this you'll be able to ask right questions to get right answers.
//help will save the world -
How to use weblogic.Deployer
I can deploy this adf application to weblogic server in jdeveloper 11.1.1.3.
How to use weblogic.Deployer in weblogic 10.3.3? I get errors as follow:
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>d:
D:\>cd D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin
D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin>setDomainEnv.cmd
D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server>java weblogic.Deployer
-adminurl http://localhost:7001 -user weblogic -password welcome1 -deploy -upload E:\SOAworkspace\otnapp\deploy\otnapp_application1.ear
weblogic.Deployer invoked with options: -adminurl http://localhost:7001 -user weblogic -deploy -upload E:\SOAworkspace\otnapp\deploy\otnapp_application1.ear
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.Deployer.run(Deployer.java:70)
at weblogic.Deployer.main(Deployer.java:54)
Caused by: weblogic.deploy.api.spi.exceptions.ServerConnectionException
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:141)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:138
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
... 2 more
Caused by: javax.naming.CommunicationException [Root exception is java.net.Conne
ctException: http://localhost:7001: Destination unreachable; nested exception is
java.net.ProtocolException: Tunneling result unspecified - is the HTTP s
erver at host: 'localhost' and port: '7001' a WebLogic Server?; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:787)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:366)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:328)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:300)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:139)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
... 2 more
Caused by: java.net.ConnectException: http://localhost:7001: Destination unreach
able; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
... 19 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception
is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available rou
ter to destination
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:254)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:316)
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:205)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:328)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:300)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:139)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:150)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:138)
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
... 2 more
Unable to connect to 'http://localhost:7001': Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available rou
ter to destination. 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.
D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server>Looks like the protocol is not correct (Unable to connect to 'http://localhost:7001': Destination unreachable)
Could you try the t3 protocol, for example,
java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password welcome1 -listapps -
Weblogic.Deployer troubles (bea92)
in short, doesnt work
java -cp .;weblogic.jar weblogic.Deployer -adminurl t3://10.131.20.41:7001 -user weblogic -password weblogic -deploy c:\app.ear
weblogic.Deployer invoked with options: -adminurl t3://10.131.20.41:7001 -user weblogic -deploy c:\app.ear
Unable to connect to 't3://10.131.20.41:7001': invalid type code: 31. Ensure the url represents a running admin server and that the credenti
als are correct. If using http protocol, tunneling must be enabled on the admin server.
I have enabled the tunneling, i have also tried http so on ans so forth .. the admin console is indeed on 7001, so i dont know wtf its talking about.
If I do it manually via adminconsole it works, well it dont, but thats a configuration issue with spring (missing placeholder for some injection), but the app gets installed
oh yea, the IP is localhost, tried "localhost" too with same result .. any ideas more than welcome, this is tiresome :(One thing to check. Make sure you are not using JDK 1.6.x when using the commandline. There is a pretty obscure bug with this setup.
http://forum.java.sun.com/thread.jspa?threadID=5195504&tstart=60
You might have got hit by it. -
Deploying with weblogic.Deployer
Hi all,
I'm trying to deploy a SOA application, with a weblogic.Deployer.
Environment
local:
weblogic.Deployer is in \Middleware\wlserver_10.3\server\lib\weblogic.jar
remote Server:
WebLogic server 10.3.2.0 in production mode
I'm deploying like this:
java weblogic.Deployer -adminurl http://XXXX:7001 -user weblogic -password weblogic -deploy -name myTestDeployment -source test.jar -plan test_cfgplan.xml -targets soa_server1
I'm getting the error:
failed to load java type corresponding to e=SOAConfigPlan@http://schemas.oracle.com/soa/configplan
Can anybody help me?
Pavel
Edited by: Pavel1234 on Apr 29, 2010 3:38 PMI can deploy my application with ant-sca-deploy.xml without any problems. But I don't get a connection to WebLogic in production mode by using ant-sca-deploy.xml. So I tried to use weblogic.Deployer. weblogic.Deployer gets a connection but doesn't deploy because of "failed to load java type corresponding to e=SOAConfigPlan@http://schemas.oracle.com/soa/configplan"
Many Thanks
Pavel -
Weblogic.Deployer hangs
on my linux (redhat) server weblogic.Deployer often hangs. I can't tell why, It used to work. Can somebody point me to right direction ? How can I debug it ? See its logs ? I have tried to add -debug -verbose parameters but they don't tell much.
Thanks
Edited by: mcalpay on 06.Eyl.2010 07:18
Edited by: mcalpay on 06.Eyl.2010 07:35Have you deployed the applications by using the console? Are taking a long time too?
Could your deployment is too large, and the process is running out of memory.
You could try to add some memory options when you call weblogic.Deployer, for example,
java -Xms1024m -Xmx1024m weblogic.Deployer -
Weblogic.Deployer gets AccessControlExceptions
Hi,
I'm using weblogic.Deployer to deploy EAR to simple wls 9.1 domain. Everything works fine, but two warnings appears during deployment. Any idea what is causes these?
Deployment command:
$JAVA_HOME/bin/java -cp $WL_HOME/server/lib/weblogic.jar weblogic.Deployer -adminurl $WL_SERVER_URL -user $WL_USERNAME -password $WL_PASSWD -name $XXX_EAR -source $XXX_EAR_FILENAME -deploy
Domain log:
####<19.9.2006 15:52:41 EEST> <Warning> <RMI> <XXXX> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1158670361319> <BEA-080003> <RuntimeException thrown by rmi server: javax.management.remote.rmi.RMIConnectionImpl.addNotificationListeners([Ljavax.management.ObjectName;[Ljava.rmi.MarshalledObject;[Ljavax.security.auth.Subject;)
java.security.AccessControlException: access denied (javax.management.MBeanPermission weblogic.management.configuration.DomainMBeanImpl#-[com.bea:Name=base_domain,Type=Domain] addNotificationListener).
java.security.AccessControlException: access denied (javax.management.MBeanPermission weblogic.management.configuration.DomainMBeanImpl#-[com.bea:Name=base_domain,Type=Domain] addNotificationListener)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
at com.sun.jmx.remote.internal.ServerNotifForwarder.checkMBeanPermission(ServerNotifForwarder.java:250)
at com.sun.jmx.remote.internal.ServerNotifForwarder.addNotificationListener(ServerNotifForwarder.java:68)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1444)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
at javax.management.remote.rmi.RMIConnectionImpl.addNotificationListeners(RMIConnectionImpl.java:956)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
>
####<19.9.2006 15:52:41 EEST> <Warning> <RMI> <XXXXX> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1158670361409> <BEA-080003> <RuntimeException thrown by rmi server: javax.management.remote.rmi.RMIConnectionImpl.addNotificationListeners([Ljavax.management.ObjectName;[Ljava.rmi.MarshalledObject;[Ljavax.security.auth.Subject;)
java.security.AccessControlException: access denied (javax.management.MBeanPermission weblogic.management.configuration.DomainMBeanImpl#-[com.bea:Name=base_domain,Type=Domain] addNotificationListener).
java.security.AccessControlException: access denied (javax.management.MBeanPermission weblogic.management.configuration.DomainMBeanImpl#-[com.bea:Name=base_domain,Type=Domain] addNotificationListener)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
at com.sun.jmx.remote.internal.ServerNotifForwarder.checkMBeanPermission(ServerNotifForwarder.java:250)
at com.sun.jmx.remote.internal.ServerNotifForwarder.addNotificationListener(ServerNotifForwarder.java:68)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1444)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
at javax.management.remote.rmi.RMIConnectionImpl.addNotificationListeners(RMIConnectionImpl.java:956)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
>OK, so it is uploading the files, here:
...user_projects/domains/mydomain/myserver/upload/test/test.war
but, if the location of the war files for deployment changes to this dir, then I'm sure many of my co-workers that prefer the "old way" will be confused when the war files are not in the ...user_projects/domains/mydomain/applications directory. Is there any way to have these files uploaded to that applications dir instead of the upload dir without a hack-around in a script?
Thanks -
Partial redeployment of a static jar file with weblogic.Deployer
Hello,
We are working on an application serving jar files to customers, via Java Web Start, hence that are considered from our point of view as static files, like our HTML and Javascript pages.
Moreover, we have one jar that changes regularly, so every time it's loaded on the server we need to do a partial redeployment of this jar file, as documented here: http://docs.oracle.com/cd/E13222_01/wls/docs103/deployment/redeploy.html#wp1025739
However, it does not work, as I believe WebLogic doesn't consider my jar file as a static file.
C:\>java -cp weblogic.jar weblogic.Deployer -adminurl http://mymachine:7001 -user weblogic -password mystrongpassword -name myapp -redeploy launcher/downloadme.jar
weblogic.Deployer invoked with options: -adminurl http://mymachine:7001 -user weblogic -name myapp -redeploy launcher/downloadme.jar
<Mar 8, 2013 7:09:36 PM CET> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, myapp [archive: null], to configured targets.>
Task 24 initiated: [Deployer:149026]redeploy application myapp [Version=7] on WebServer.
Task 24 failed: [Deployer:149026]redeploy application myapp [Version=7] on WebServer.
Target state: redeploy failed on Server WebServer
weblogic.management.DeploymentException:
The application myapp#7 cannot have the resource launcher/downloadme.jar updated dynamically. Either:
1.) The resource does not exist.
or
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
As a side note, if I rename downloadme.jar to downloadme.jar.*html*, then WebLogic agrees to redeploy it!
Is there any way to force the static redeployment of my jar file?
Thanks and regards,
JulienHi,
The feature you are trying to use works only when web application is deployed in exploded format. Is your app deployed in exploded format?
Also jars are never considered static, so I doubt this will work here.
As an alternative you can go for Oracle Weblogic Production redployment feature. Refer to - http://middlewaresupport.wordpress.com/2013/03/21/production-redeployment-feature-in-weblogic/
Thanks,
Ranjan
Edited by: Ranjan K on Apr 12, 2013 5:45 AM -
Error while trying to connect to weblogic from remote client
Hi
I was trying to connect to JMX MBeanserver from a aremote client using some sample code that was posted. Ive tried even the samples that I found in the Admin Guide itself. Im not certain if any server configuration is needed. Ive tried the below with all three protocols t3, iiop, http with the same result. I had also enabled IIOP on the server through the console.
I get an error when trying to conenct using the JMXConnection Factory i.e. at the last line of the following code:
String protocol = "t3"; // can be t3, http, iiop
String hostname = "santapoco.eng";
int port = 7001;
String uri = "/jndi/"+"weblogic.management.mbeanservers.runtime";
JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port, uri);
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, "weblogic");
h.put(Context.SECURITY_CREDENTIALS, "weblogic");
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
JMXConnector connector =JMXConnectorFactory.connect(serviceURL, h);
The error is:
"Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
at weblogic.jrmp.Context.lookup(Context.java:189)"Pratima Gogineni <> writes:
This is what worked for me:
URI uri = new URI(args[0]);
JMXServiceURL serviceURL =
new JMXServiceURL(uri.getScheme(), uri.getHost(), uri.getPort(),
"/jndi/weblogic/management/mbeanservers/runtime");
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, "system");
h.put(Context.SECURITY_CREDENTIALS, "ejb2come");
// String[] jmxCredentials = new String[]{ "system", "ejb2come" };
// h.put(JMXConnector.CREDENTIALS, jmxCredentials);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
"weblogic.management.remote");
h.put(Context.PROVIDER_URL, args[0]);
// h.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
// InitialContext ic = new InitialContext(h);
// ic.lookup("weblogic/management");
JMXConnector connector = JMXConnectorFactory.connect(serviceURL, h);
MBeanServerConnection connection = connector.getMBeanServerConnection();
NOTE this was with weblogic 91-- -
JDeveloper 10.1.3.4.0: Unable to find "Debugger - Remote" option
According to the JDeveloper help:
The remote debugging protocols are configured in Debugger - Remote page of the Preferences Dialog.
I do not see a "Debugger - Remote" option in the preferences dialog.
There are a bunch of options under "Debugger" but "Remote" is not one of them.
Thanks,
JonathanThe Remote debugging options are available under Project Properties (Not preferences...) ->Run/Debug->Edit... ->Tool Settings ->Debug ->Remote
Remote debugging and profiling should also be enabled under the Launch settings node.
Trygve -
Hello,
I am using the Weblogic Server 9.1 and I typed the following command:
java weblogic.Deployer -adminurl t3://myserver:7001 -user weblogic -password abcx -listapps
and the result was:
remoteWar [Version=1.1.0]
remoteWar [Version=1.1.7] <ACTIVE VERSION>
Number of Applications Found : 2
The java version that I am using in my machine is:
Sun JDK 1.5.0_8
But when I executed the same command on AIX 5.2
the result was:
remoteWar [Version=1.1.0]
remoteWar [Version=1.1.7]
Number of Applications Found : 2
The INFORMATION <ACTIVE VERSION> that I need to discovery wath
application is active or inactive don´t was showed in AIX environment.
Any idea? I need this information.weblogic.jar should be in the class path.
-
Unable to boot weblogic webserver, Unrecognized option: -jrockit
Hello Experts,
I am configuring first webserver domain in newly installed Peopletools 8.51 and FSCM 9.1 environment.
Below are the details --
Server -- Windows Server 2008R2 (64bit)
Weblogic -- 10.3.6 (64 bit)
JDK -- jdk1.7.0.21 (64 bit)
While installing I took care of spaces and everything and now every variable is pointing to right direction but when I try to start the weblogic domain I get the following error --
C:\FSCNFG\webserv\FSCNFG\bin>set JAVA_HOME=C:\Java\jdk1.7.0_21
C:\FSCNFG\webserv\FSCNFG\bin>set PATH=%JAVA_HOME%/bin;%PATH%
C:\FSCNFG\webserv\FSCNFG\bin>set USER_MEM_ARGS=-Xms32m -Xmx200m -XX:MaxPermSize=350m
C:\FSCNFG\webserv\FSCNFG\bin>startPIA.cmd
Attempting to start WebLogic Server 'PIA'
starting weblogic with Java version:
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
java -jrockit -XnoOpt -XXnoJITInline -Xms512m -Xmx512m -Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform -Djava.util.logging.config.file=C:\FSCNFG\webserv\FSCNFG\
piaconfig\properties\logging.properties -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Dweblogic.Name=PIA -Dps_vault=C:\FSCNFG\webserv\FSCNFG\piaconf
ig\properties\psvault -Djavax.net.ssl.trustStore="C:/FSCNFG\webserv\FSCNFG\piaconfig\keystore\pskey" -Dweblogic.ProductionModeEnabled=true -Djava.security.policy=C:\Oracle\MIDDLE~1\
WLSERV~1.3\server\lib\weblogic.policy -Dssl.debug=false -Dps_home="C:/FSCNFG" weblogic.Server
Unrecognized option: -jrockit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
WebLogic is no longer running.
I tried google it but there is no resolution found on this one.
Appreciate your help in this regard.
Regards,
RahulI am able to boot the app server by changing in the configuration file -->setENV.cmd.
I put -server instead of -jrockit, i don't know why it is pointing to -jrockit.
Below is the value that I put -->
SET JAVA_OPTIONS_WIN=-server -Xms256m -Xmx256m -XX:CompileThreshold=8000 -XX:MaxPermSize=128m
in place of below value-->
SET JAVA_OPTIONS_WIN=-jrockit -XnoOpt -XXnoJITInline -Xms512m -Xmx512m -Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform
I am still not able to check the status of the server and shut it down properly.
Any suggestions ?
Regards,
Rahul -
Problem with weblogic.Deployer in 8.1
I have a problem with weblogic.Deployer. My application deploys and works fine
if I manually copy the ear or the exploded form into weblogic's applications\
directory (hot deployment). But, if I use the weblogic.Deployer tool, it fails
with the following exception. Does the deployer tool expect something in the ear
(or exploded form) that I'm missing? Thanks in advance.
-Vas
[wldeploy] java.lang.NullPointerException
[wldeploy] at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGener
ator.java:785)
[wldeploy] at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerato
r.java:758)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:803)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:790)
[wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:
79)
[wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootSe
rviceStub.java:50)
[wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security
.java:152)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRem
otely(WLInitialContextFactoryDelegate.java:597)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLI
nitialContextFactoryDelegate.java:534)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLIn
itialContextFactoryDelegate.java:336)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialConte
xt(WLInitialContextFactoryDelegate.java:308)
[wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
[wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:
143)
[wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(M
BeanHomeTool.java:157)
[wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[wldeploy] at weblogic.Deployer.main(Deployer.java:399)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy
.java:209)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.ja
va:170)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:319)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:196)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:235)
[wldeploy] --------------- nested within: ------------------
[wldeploy] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
to generate class for weblogic.common.internal.RMIBootServiceImpl_811_WLStub ]
with nested exception:
[wldeploy] [java.lang.NullPointerException]
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:807)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:790)
[wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:
79)
[wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootSe
rviceStub.java:50)
[wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security
.java:152)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRem
otely(WLInitialContextFactoryDelegate.java:597)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLI
nitialContextFactoryDelegate.java:534)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLIn
itialContextFactoryDelegate.java:336)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialConte
xt(WLInitialContextFactoryDelegate.java:308)
[wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
[wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:
143)
[wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(M
BeanHomeTool.java:157)
[wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[wldeploy] at weblogic.Deployer.main(Deployer.java:399)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy
.java:209)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.ja
va:170)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:319)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:196)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:235)
[wldeploy] java.lang.reflect.InvocationTargetException
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy
.java:209)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.ja
va:170)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:319)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:196)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:235)
[wldeploy] Caused by: weblogic.utils.AssertionError: ***** ASSERTION FAILED ***
**[ Failed to generate class for weblogic.common.internal.RMIBootServiceImpl_811
_WLStub ] - with nested exception:
[wldeploy] [java.lang.NullPointerException]
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:807)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:790)
[wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:
79)
[wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootSe
rviceStub.java:50)
[wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security
.java:152)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRem
otely(WLInitialContextFactoryDelegate.java:597)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLI
nitialContextFactoryDelegate.java:534)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLIn
itialContextFactoryDelegate.java:336)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialConte
xt(WLInitialContextFactoryDelegate.java:308)
[wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
[wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:
143)
[wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(M
BeanHomeTool.java:157)
[wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[wldeploy] at weblogic.Deployer.main(Deployer.java:399)
[wldeploy] ... 15 moreHi Deepak,
I didn't understand the suggested resolution. Can you tell me what it means?
However, I found a similar problem in the archives, so I tried from command line
(outside ant) using "java weblogic.Delployer ...." and it worked! It doesn't work
from ant. So, you think there's some conflict between my ant and weblogic's ant
task "WLDdeploy"?
Thanks,
Vas
"Deepak Vohra" <[email protected]> wrote:
>
Refer to
http://e-docs.bea.com/wls/docs70/notes/resolved.html#1296363
"vas pulipati" <[email protected]> wrote:
I have a problem with weblogic.Deployer. My application deploys andworks
fine
if I manually copy the ear or the exploded form into weblogic's applications\
directory (hot deployment). But, if I use the weblogic.Deployer tool,
it fails
with the following exception. Does the deployer tool expect something
in the ear
(or exploded form) that I'm missing? Thanks in advance.
-Vas
[wldeploy] java.lang.NullPointerException
[wldeploy] at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGener
ator.java:785)
[wldeploy] at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerato
r.java:758)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:803)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:790)
[wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:
79)
[wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootSe
rviceStub.java:50)
[wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security
.java:152)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRem
otely(WLInitialContextFactoryDelegate.java:597)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLI
nitialContextFactoryDelegate.java:534)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLIn
itialContextFactoryDelegate.java:336)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialConte
xt(WLInitialContextFactoryDelegate.java:308)
[wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
[wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:
143)
[wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(M
BeanHomeTool.java:157)
[wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[wldeploy] at weblogic.Deployer.main(Deployer.java:399)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy
.java:209)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.ja
va:170)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:319)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:196)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:235)
[wldeploy] --------------- nested within: ------------------
[wldeploy] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[
Failed
to generate class for weblogic.common.internal.RMIBootServiceImpl_811_WLStub
with nested exception:
[wldeploy] [java.lang.NullPointerException]
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:807)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:790)
[wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:
79)
[wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootSe
rviceStub.java:50)
[wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security
.java:152)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRem
otely(WLInitialContextFactoryDelegate.java:597)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLI
nitialContextFactoryDelegate.java:534)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLIn
itialContextFactoryDelegate.java:336)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialConte
xt(WLInitialContextFactoryDelegate.java:308)
[wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
[wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:
143)
[wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(M
BeanHomeTool.java:157)
[wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[wldeploy] at weblogic.Deployer.main(Deployer.java:399)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy
.java:209)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.ja
va:170)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:319)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:196)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:235)
[wldeploy] java.lang.reflect.InvocationTargetException
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy
.java:209)
[wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.ja
va:170)
[wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
[wldeploy] at org.apache.tools.ant.Task.perform(Task.java:319)
[wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
[wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
[wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[wldeploy] at org.apache.tools.ant.Main.start(Main.java:196)
[wldeploy] at org.apache.tools.ant.Main.main(Main.java:235)
[wldeploy] Caused by: weblogic.utils.AssertionError: ***** ASSERTION
FAILED ***
**[ Failed to generate class for weblogic.common.internal.RMIBootServiceImpl_811
_WLStub ] - with nested exception:
[wldeploy] [java.lang.NullPointerException]
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:807)
[wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerato
r.java:790)
[wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:
79)
[wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootSe
rviceStub.java:50)
[wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security
.java:152)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRem
otely(WLInitialContextFactoryDelegate.java:597)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLI
nitialContextFactoryDelegate.java:534)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLIn
itialContextFactoryDelegate.java:336)
[wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialConte
xt(WLInitialContextFactoryDelegate.java:308)
[wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
[wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:
143)
[wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(M
BeanHomeTool.java:157)
[wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[wldeploy] at weblogic.Deployer.main(Deployer.java:399)
[wldeploy] ... 15 more
Maybe you are looking for
-
Well i just downloaded the newest version of iTunes. But when i was finished updating/installing and it tried to open iTunes, it says the following(translated from Danish): "iTunes has found an error and is closning. Were sorry for you coincidence. I
-
Creative MediaSource 5 stuck on "follow Mixer Settings" --????
I'm trying to record from my auxilliary source and I can't get the "source" setting off of "follow mixer settings."? That is the only source choice given--no mic choice, blue, green, etc. I can't change it. I was able to make this choice before but n
-
I just bought a new mac book pro and need to clear my old mac of it's contents to give it away--- I do not have my startup disk anymore. How can i completely delete my old mac's memory?
-
10.8.2 - xsanctl unmount Y U NO WORK??
I've been using XSAN and StorNext since it was CentraVision. We're in the process of qualifying 10.8.2 in our studio. After running the 10.8.2 upgrade and uninstalling/reinstalling the atto 42ES drivers our SAN volume automounts beautifully just as i
-
Hello, We are working on a move to Win7 and ZCM10, currently running 10.3.3 with Novell Client 2 SP1 on the Win7 PC. Right now I am working on configuring a DLU Policy assigned to all workstations to login using "specified credentials". I have create