简体   繁体   English

使用Weblogic Adapter部署Web应用程序以进行Eclipse

[英]Deploy the web application using weblogic adaptor for eclipse

I have installed weblogic 9.2 adaptor for eclipse kepler and try to deploy the application with eclipse. 我已经为eclipse kepler安装了weblogic 9.2适配器,并尝试使用eclipse部署应用程序。 I right click the project and choose run configuration and click on run. 我右键单击该项目,然后选择运行配置,然后单击运行。

The server already started and i can see in the console, 服务器已经启动,我可以在控制台中看到,

But in the eclipse server tab it shows as BEA WebLogic Server v9.2 at localhost [proj] [Stopped, Unable to validate weblogic domain]. 但是在eclipse服务器选项卡中,它显示为BEA WebLogic Server v9.2 at localhost [proj] [Stopped, Unable to validate weblogic domain].

Any way But the server seems started as when i try to strat the server directly it says server already started. 无论如何,但是服务器似乎启动了,因为当我尝试直接分层服务器时,它说服务器已经启动。

But the problem is the application is not deployed when i use the plugin. 但是问题是当我使用插件时应用程序没有部署。

Also i want to clarify previously when i manually deploy i ran an ant build script which create a EAR file and then i deploy it using web logic web admin console. 另外,我想在手动部署时先进行澄清,先运行一个蚂蚁构建脚本,该脚本创建EAR文件,然后使用Web逻辑Web管理控制台进行部署。 But now when i use eclipse does eclipse plugin do the build script job of creating a EAR and deploy it or is there i need to do more? 但是现在当我使用eclipse时,eclipse插件会执行创建EAR的构建脚本工作并进行部署吗?还是我需要做更多的事情?

The problem here is eclipse is working on java 6 and weblogic is running on java 5. 这里的问题是eclipse在Java 6上运行,而weblogic在Java 5上运行。

The workaround is 解决方法是

add

-Dsun.lang.ClassLoader.allowArraySyntax=true -Dsun.lang.ClassLoader.allowArraySyntax =真

after -vmargs string in eclipse.ini in your eclipse directory. eclipse目录中eclipse.ini中的-vmargs字符串之后。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM