[IDE]Netbeans 整合 Weblogic10

简介: [IDE]Netbeans 整合 Weblogic10

注:本文转自:

http://forums.netbeans.org/topic4942.html

近期在学习和整理一些关于SIP方面的内容,前段时间百思不得其解,准备写个SIP的简单客端却

无从下手,最后终于找到了JAIN-SIP,也在博客上转了几篇文章,也终于找到了发送SIP请求的方

法,如REGISTER,PUBLISH,SUBSCRIBE等等的请求,具体就看看我转来的文章吧.

跟着又在做一些像应用程序服务器的东西,用着Netbeans,却不知道怎么添加Weblogic的服务

器.网络真的很强大,于是我又转了这篇文章.希望能对我,对你,都会有所帮助:

Posted: Sun Nov 23, 2008 1:27 pm    Post subject: Netbeans 6.5 can't add Weblogic 10.3 server

we can add weblogic 10.3 on any netbeans version:

1 - goto your profile folder

C:\Documents and

Settings\username\.netbeans\6.5\config\J2EE\InstalledServers

in this path there is a file called .nbattrs

add these lines in it and restart your netbeans ide

if your weblogic 10.3 is located at C:/bea3/wlserver_10.3

and user name is weblogic

and password is weblogic

add these lines

<fileobject name="instance_2">

<attr name="debuggerPort" stringvalue="8787"/>

<attr name="displayName" stringvalue="BEA WebLogic Server"/>

<attr name="domainRoot"

stringvalue="C:/bea3/wlserver_10.3/samples/domains/wl_server"/>

<attr name="isLocal" stringvalue="true"/>

<attr name="password" stringvalue="weblogic"/>

<attr name="registeredWithoutUI" stringvalue="false"/>

<attr name="serverRoot" stringvalue="C:\bea3\wlserver_10.3"/>

<attr name="url"

stringvalue="deployer:WebLogic:http://localhost:7001:C:\bea3\wlserver_10.3:C:/bea3/wlserver_10.3/samples/domains/wl_server"/>

<attr name="username" stringvalue="weblogic"/>

</fileobject>

krysP wrote:

Quote:

I filed issue #150315.

/krys

--

View this message in context: http://www.nabble.com/Netbeans-6.5-can%27t-add-Weblogic-10.3-server-tp20002675p20646149.html

Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

==========================================

also we can add weblogic 10.3 to netbeans id by another two ways if you have

weblogic 10 installed on your computer

first

1 - create new domain on weblogic 10

start menu >> programs >> bea products >> tools >> configuration wizard

2 - upgrade domain to weblogic 10.3

start menu >> programs >>oracle weblogic >> quickstart

3 - form add server in netbeans ide >> select weblogic 10 folder

4 - press next and choose from local instances your upgraded domain

the upgraded domain version is weblogic 10.3

you can see it

note this approach is already tested and it work good

second

1 - rename your weblogic.jar in weblogic 10.3 to be for ex.

weblogic_10.3.jar

2 - copy weblogic.jar from weblogic 10 to your weblgic 10.3

weblgic 10 jar location >>> SERVER_10_HOME\server\lib\weblogic.jar

weblgic 10.3 jar location >>> SERVER_10.3_HOME\server\lib\weblogic.jar

3 - copy folder called javelin from weblogic 10 to the same location on

weblogic 10.3

javelin location >>> SERVER_10_HOME\ javelin

4 -try to add weblgic 10.3 from netbeans ide

it will be added in shaa allah

5 - remove the folder javelin from your weblogic 10.3 folder

6 - remove weblogic.jar which you copy in step 2 and rename the

weblogic_10.3.jar to its original name

7 - done

mohammed.shalaby wrote:

Quote:

we can add weblogic 10.3 on any netbeans version:

1 - goto your profile folder

C:\Documents and

Settings\username\.netbeans\6.5\config\J2EE\InstalledServers

in this path there is a file called .nbattrs

add these lines in it and restart your netbeans ide

if your weblogic 10.3 is located at C:/bea3/wlserver_10.3

and user name is weblogic

and password is weblogic

add these lines

<fileobject name="instance_2">

<attr name="debuggerPort" stringvalue="8787"/>

<attr name="displayName" stringvalue="BEA WebLogic Server"/>

<attr name="domainRoot"

stringvalue="C:/bea3/wlserver_10.3/samples/domains/wl_server"/>

<attr name="isLocal" stringvalue="true"/>

<attr name="password" stringvalue="weblogic"/>

<attr name="registeredWithoutUI" stringvalue="false"/>

<attr name="serverRoot" stringvalue="C:\bea3\wlserver_10.3"/>

<attr name="url"

stringvalue="deployer:WebLogic:http://localhost:7001:C:\bea3\wlserver_10.3:C:/bea3/wlserver_10.3/samples/domains/wl_server"/>

<attr name="username" stringvalue="weblogic"/>

</fileobject>

krysP wrote:

Quote:

I filed issue #150315.

/krys


--

View this message in context: http://www.nabble.com/Netbeans-6.5-can%27t-add-Weblogic-10.3-server-tp20002675p20646357.html

Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

===================================================

we can add weblogic 10.3 on any netbeans version:

1 - goto your profile folder

C:\Documents and

Settings\username\.netbeans\6.5\config\J2EE\InstalledServers

in this path there is a file called .nbattrs

add these lines in it and restart your netbeans ide

if your weblogic 10.3 is located at C:/bea3/wlserver_10.3

and user name for weblogic is weblogic

and password for weblogic is weblogic

and your weblogic domain is located at

C:/bea3/wlserver_10.3/samples/domains/wl_server/

add these lines

<fileobject name="instance_444">

<attr name="debuggerPort" stringvalue="8787"/>

<attr name="displayName" stringvalue="BEA WebLogic Server"/>

<attr name="domainRoot"

stringvalue="C:/bea3/wlserver_10.3/samples/domains/wl_server"/>

<attr name="isLocal" stringvalue="true"/>

<attr name="password" stringvalue="weblogic"/>

<attr name="registeredWithoutUI" stringvalue="false"/>

<attr name="serverRoot" stringvalue="C:\bea3\wlserver_10.3"/>

<attr name="url"

stringvalue="deployer:WebLogic:http://localhost:7001:C:\bea3\wlserver_10.3:C:/bea3/wlserver_10.3/samples/domains/wl_server"/>

<attr name="username" stringvalue="weblogic"/>

</fileobject>

very important

Also you must create an empty file called instance_444 without any extention

in C:\Documents and

Settings\username\.netbeans\6.5\config\J2EE\InstalledServers\

in general

add the following lines to the file .nbattrs

<fileobject name="any name">

<attr name="debuggerPort" stringvalue="8787"/>

<attr name="displayName" stringvalue="BEA WebLogic Server"/>

<attr name="domainRoot" stringvalue="your weblogic domain"/>

<attr name="isLocal" stringvalue="true"/>

<attr name="password" stringvalue="your weblogic password"/>

<attr name="registeredWithoutUI" stringvalue="false"/>

<attr name="serverRoot" stringvalue="your weblogic server path"/>

<attr name="url"

stringvalue="deployer:WebLogic:http://localhost:7001:your weblogic server

path:your weblogic domain path"/>

<attr name="username" stringvalue="your weblogic user name"/>

</fileobject>

you must create an empty file with name as the name you specify in

<fileobject name="any name">

for ex.

if you specify your fileobject as instance_5

<fileobject name="instance_5">

you must create a file called instance_5 with out any extention in the same

directory of the file .nbattrs

and then restart your netbeans ide

these steps are already tested and they are work fine.

if you have any problems, please reply

thanks,

--

View this message in context: http://www.nabble.com/Netbeans-6.5-can%27t-add-Weblogic-10.3-server-tp20002675p20758198.html

Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

===============================================

I'm a newer to weblogic.

follow you ,i've already add the weblogic 10.3 to netbeans 6.5,and i creat a java web application use weblogic as the server.

then I write a jsp to test , it's works ok.

then I test a servlet, it's can work on the server,and netbeans can depolyed as a war . i checked the war has contained the class file of the servlet.but the editer shows code has error(cant find symbol javax.servet package) . I dont konw what happened about it .

the another strange thing is i compiled single (Servlet file) can success

another question : how to set saved to compiled and saved to deployed.

if edit the jsp file it must be deployed can be seen in browser . the glassfish and tomcat automaticly have this function

who can help me

thans very much[/img]

.jpg

Description:

the editor shows

Filesize:  63.88 KB

Viewed:  2407 Time(s)

===============================================

以上的内容是来自论坛的贴子,哈哈,所以,也有人发贴追问了,当然,还能看到我们熟悉的中文(图片里).

最后付上自己的实例:

WEBLOGIC安装目录:

H:\software\bea

domain目录(既是我项目部署的域):

H:\software\bea\user_projects\domains\test_domain

以下是我的.nbattrs文件:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE attributes PUBLIC "-//NetBeans//DTD DefaultAttributes 1.0//EN" "http://www.netbeans.org/dtds/attributes-1_0.dtd">
<attributes version="1.0">
    <fileobject name="instance_2">
        <attr name="debuggerPort" stringvalue="8787"/>
        <attr name="displayName" stringvalue="BEA WebLogic Server"/>
        <attr name="domainRoot" stringvalue="H:\software\bea\user_projects\domains\test_domain"/>
        <attr name="isLocal" stringvalue="true"/>
        <attr name="password" stringvalue="weblogic"/>
        <attr name="registeredWithoutUI" stringvalue="false"/>
        <attr name="serverRoot" stringvalue="H:\software\bea\"/>
        <attr name="url" stringvalue="deployer:WebLogic:http://localhost:7001:H:\software\bea\:H:\software\bea\user_projects\domains\test_domain"/>
        <attr name="username" stringvalue="weblogic"/>
    </fileobject>
</attributes>

另注:非常得要的一部分.

very important

Also you must create an empty file called instance_444 without any extention in C:\Documents and Settings\username\.netbeans\6.5\config\J2EE\InstalledServers\

in general

add the following lines to the file .nbattrs

<fileobject name="any name">
        <attr name="debuggerPort" stringvalue="8787"/>
        <attr name="displayName" stringvalue="BEA WebLogic Server"/>
        <attr name="domainRoot" stringvalue="your weblogic domain"/>
        <attr name="isLocal" stringvalue="true"/>
        <attr name="password" stringvalue="your weblogic password"/>
        <attr name="registeredWithoutUI" stringvalue="false"/>
        <attr name="serverRoot" stringvalue="your weblogic server path"/>
        <attr name="url" stringvalue="deployer:WebLogic:http://localhost:7001:your weblogic server path:your weblogic domain path"/>
        <attr name="username" stringvalue="your weblogic user name"/>
    </fileobject>

you must create an empty file with name as the name you specify in <fileobject name="any name">

for ex.

if you specify your fileobject as instance_5

<fileobject name="instance_5">

you must create a file called instance_5 with out any extention in the same directory of the file .nbattrs

and then restart your netbeans ide

these steps are already tested and they are work fine.

if you have any problems, please reply

thanks,

相关文章
|
8月前
|
算法 程序员 Apache
Windows下搭建SVN服务器并配置eclipse和idea
Windows下搭建SVN服务器并配置eclipse和idea
173 1
|
缓存 IDE 安全
Tomcat与IDE的整合 - Eclipse(结尾附视频)
Tomcat与IDE的整合 - Eclipse(结尾附视频)
120 0
|
Oracle Java 关系型数据库
【Java】IDEA 配置java开发环境(windows)
【Java】IDEA 配置java开发环境(windows)
12563 0
|
存储 Java 应用服务中间件
Java开发 —— eclipse,myeclipse安装+Tomcat插件
Java开发 —— eclipse,myeclipse安装+Tomcat插件
Java开发 —— eclipse,myeclipse安装+Tomcat插件
|
Oracle 关系型数据库 Java
Eclipse下安装weblogic插件
安装好weblogic dev版本(Windows下安装weblogic dev版本),可以在Eclipse中安装weblogic server tools插件,直接连接到weblogic server,发布、部署、调试都变得简单些。
720 0
Eclipse下安装weblogic插件
|
Java Android开发
搭建Eclipse和MyEclipse的开发环境
主要步骤: 下载并配置Eclipse 建立并运行一个简单的javaSE项目 下载并破解MyEclipse 整合Eclipse和MyEclipse 开发环境和Tomcat结合 关于这个配置也可以参考:https://www.cnblogs.com/kangjianwei101/p/5621730.html,写的不错。
1854 0