This discussion is archived
3 Replies Latest reply: Feb 5, 2013 10:00 PM by david.karr RSS

Failed to deploy a simple application on weblogic 10.3.3.0

984846 Newbie
Currently Being Moderated
Hi All,
I'am unable to deploy a very simple War file application by ant task (weblogic ant task weblogic.ant.taskdefs.management.WLDeploy).

I find how to cause this problem,but I can't resolve it .
In my war file ,include one file with chinese file name "测试.jsp" .
the weblogic use the java.util.jar.JarFile to extract the war file.but is can't handle chinese file name corrently.
so it get a wrong file name "²âÊÔ.js" ,and cause this problem.

Thinks
Jason

exception:

deployOnServer1:
[echo] *********** Start deploying war file on SERVER1 ***********
[wldeploy] weblogic.Deployer -debug -remote -verbose -upload -noexit -name yuidemo -source y:\sources\yuidemo\dist\yuidemo.war -targets AdminServer -adminurl http://10.99.76.58:7001 -user weblogic -password ******** -redeploy
[wldeploy] weblogic.Deployer invoked with options: -debug -remote -verbose -upload -noexit -name yuidemo -source y:\sources\yuidemo\dist\yuidemo.war -targets AdminServer -adminurl http://10.99.76.58:7001 -user weblogic -redeploy
[wldeploy] [WebLogicDeploymentManagerImpl.<init>():103] : Constructing DeploymentManager for J2EE version V1_4 deployments
[wldeploy] [WebLogicDeploymentManagerImpl.getNewConnection():146] : Connecting to admin server at 10.99.76.58:7001, as user weblogic
[wldeploy] [ServerConnectionImpl.getEnvironment():288] : setting environment
[wldeploy] [ServerConnectionImpl.getEnvironment():291] : getting context using http://10.99.76.58:7001
[wldeploy] [ServerConnectionImpl.getMBeanServer():239] : Connecting to MBeanServer at service:jmx:http://10.99.76.58:7001/jndi/weblogic.management.mbeanservers.domainruntime
[wldeploy] [ServerConnectionImpl.getMBeanServer():239] : Connecting to MBeanServer at service:jmx:http://10.99.76.58:7001/jndi/weblogic.management.mbeanservers.runtime
[wldeploy] [DomainManager.resetDomain():36] : Getting new domain
[wldeploy] [DomainManager.resetDomain():39] : Using pending domain: false
[wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@1041876
[wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@1041876
[wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@34151f
[wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@34151f
[wldeploy] [ServerConnectionImpl.initialize():171] : Connected to WLS domain: base_domain
[wldeploy] [ServerConnectionImpl.setRemote():482] : Running in remote mode
[wldeploy] [ServerConnectionImpl.init():161] : Initializing ServerConnection : weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl@162ba99
[wldeploy] [BasicOperation.dumpTmids():689] : Incoming tmids:
[wldeploy] [BasicOperation.dumpTmids():691] : {Target=AdminServer, WebLogicTargetType=server, Name=yuidemo}, targeted=true
[wldeploy] [RedeployOperation.setupPaths():86] : in place redeploy: false from moduleArchive: y:\sources\yuidemo\dist\yuidemo.war
[wldeploy] [RedeployOperation.setupPaths():95] : redeploy src path: Y:\sources\yuidemo\dist\yuidemo.war
[wldeploy] [BasicOperation.deriveAppName():140] : appname established as: yuidemo
[wldeploy] <2013-2-6 上午10时16分36秒 CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, yuidemo [archive: y:\sources\yuidemo\dist\yuidemo.war], to AdminServer .>
[wldeploy] [ServerConnectionImpl.upload():658] : Uploaded app to D:\TOOLS\DEVELOP\bea\user_projects\domains\base_domain\.\servers\AdminServer\upload\yuidemo
[wldeploy] [BasicOperation.dumpTmids():689] : Incoming tmids:
[wldeploy] [BasicOperation.dumpTmids():691] : {Target=AdminServer, WebLogicTargetType=server, Name=yuidemo}, targeted=true
[wldeploy] [BasicOperation.loadGeneralOptions():606] : 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: D:\TOOLS\DEVELOP\bea\user_projects\domains\base_domain\.\servers\AdminServer\upload\yuidemo
[wldeploy] App config: D:\TOOLS\DEVELOP\bea\user_projects\domains\base_domain\.\servers\AdminServer\upload\yuidemo\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=null,clusterTimeout=3600000,altDD=null,altWlsDD=null,name=yuidemo,securityModel=null,securityValidationEnabled=false,versionIdentifier=null,isTestMode=false,forceUndeployTimeout=0,defaultSubmoduleTargets=true,timeout=0deploymentPrincipalName=null}
[wldeploy]
[wldeploy] [BasicOperation.execute():423] : Initiating redeploy operation for app, yuidemo, on targets:
[wldeploy] [BasicOperation.execute():425] : AdminServer
[wldeploy] [RedeployOperation.initializeTask():55] : Starting task with path: D:\TOOLS\DEVELOP\bea\user_projects\domains\base_domain\.\servers\AdminServer\upload\yuidemo\app\yuidemo.war
[wldeploy] Task 3 initiated: [Deployer:149026]deploy application yuidemo on AdminServer.
[wldeploy] dumping Exception stack
[wldeploy] Task 3 failed: [Deployer:149026]deploy application yuidemo on AdminServer.
[wldeploy] Target state: redeploy failed on Server AdminServer
[wldeploy] java.lang.NullPointerException
[wldeploy]      at weblogic.utils.jars.JarFileUtils.extract(JarFileUtils.java:287)
[wldeploy]      at weblogic.application.io.ArchivedWar.expandWarFileIntoDirectory(ArchivedWar.java:131)
[wldeploy]      at weblogic.application.io.ArchivedWar.extractWarFile(ArchivedWar.java:100)
[wldeploy]      at weblogic.application.io.ArchivedWar.<init>(ArchivedWar.java:49)
[wldeploy]      at weblogic.servlet.internal.War.makeExplodedJar(War.java:1019)
[wldeploy]      at weblogic.servlet.internal.War.<init>(War.java:182)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.processDocroot(WebAppServletContext.java:2658)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:2552)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:388)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456)
[wldeploy]      at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414)
[wldeploy]      at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)
[wldeploy]      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
[wldeploy]      at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
[wldeploy]      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
[wldeploy]      at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
[wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
[wldeploy]      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
[wldeploy]      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
[wldeploy]      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
[wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
[wldeploy]      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
[wldeploy]      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16)
[wldeploy]      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
[wldeploy]      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
[wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
[wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
[wldeploy]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
[wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
[wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
[wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
[wldeploy]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
[wldeploy]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
[wldeploy]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[wldeploy]
[wldeploy]
[wldeploy] weblogic.deploy.api.tools.deployer.DeployerException: Task 3 failed: [Deployer:149026]deploy application yuidemo on AdminServer.
[wldeploy] Target state: redeploy failed on Server AdminServer
[wldeploy] java.lang.NullPointerException
[wldeploy]      at weblogic.utils.jars.JarFileUtils.extract(JarFileUtils.java:287)
[wldeploy]      at weblogic.application.io.ArchivedWar.expandWarFileIntoDirectory(ArchivedWar.java:131)
[wldeploy]      at weblogic.application.io.ArchivedWar.extractWarFile(ArchivedWar.java:100)
[wldeploy]      at weblogic.application.io.ArchivedWar.<init>(ArchivedWar.java:49)
[wldeploy]      at weblogic.servlet.internal.War.makeExplodedJar(War.java:1019)
[wldeploy]      at weblogic.servlet.internal.War.<init>(War.java:182)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.processDocroot(WebAppServletContext.java:2658)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:2552)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:388)
[wldeploy]      at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456)
[wldeploy]      at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414)
[wldeploy]      at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)
[wldeploy]      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
[wldeploy]      at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
[wldeploy]      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
[wldeploy]      at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
[wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
[wldeploy]      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
[wldeploy]      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
[wldeploy]      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
[wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
[wldeploy]      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
[wldeploy]      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16)
[wldeploy]      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
[wldeploy]      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
[wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
[wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
[wldeploy]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
[wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
[wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
[wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
[wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
[wldeploy]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
[wldeploy]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
[wldeploy]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[wldeploy]
[wldeploy]
[wldeploy]
[wldeploy]      at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:541)
[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:291)
[wldeploy]      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[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:392)
[wldeploy]      at org.apache.tools.ant.Target.performTasks(Target.java:413)
[wldeploy]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[wldeploy]      at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[wldeploy]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[wldeploy]      at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[wldeploy]      at org.apache.tools.ant.Main.runBuild(Main.java:811)
[wldeploy]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
[wldeploy]      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[wldeploy]      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[wldeploy] [ServerConnectionImpl.close():334] : Closing DM connection
[wldeploy] [ServerConnectionImpl.close():354] : Unregistered all listeners
[wldeploy] [ServerConnectionImpl.closeJMX():374] : Closed JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():386] : Closed Runtime JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():398] : Closed Edit JMX connection

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points