[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,

相关文章
|
人工智能 自然语言处理 搜索推荐
6个好用的AI写作工具合集,各种AI写作软件类型超全整理!
AI生成营销文案、生成文章标题、改写润色内容、写作素材搜集...好用的AI写作工具有哪些?
6个好用的AI写作工具合集,各种AI写作软件类型超全整理!
|
Android开发
autojs用ConnectivityManager实现网络监听
autojs用ConnectivityManager实现网络监听
1764 0
|
消息中间件 缓存 NoSQL
Redis + Java 架构实战:从锁机制到消息队列的整合
本文深入解析Redis与Java的整合实践,涵盖分布式锁、消息队列、缓存策略、高性能数据结构及容错机制。结合电商场景,助力构建高并发、高可用的分布式系统。
520 8
|
12月前
|
存储 缓存 监控
临时邮箱地址获取服务器邮件工作流程与实现
本系统实现临时邮箱生成与邮件监控功能,支持随机邮箱创建、IMAP增量拉取、并发解析及过期清理。通过内存缓存与连接池提升性能,提供接口用于获取、查询和删除临时邮箱邮件,适用于需临时收信的场景,保障安全与高效。
762 0
|
传感器 人工智能 机器人
|
Web App开发 JavaScript 前端开发
JavaScript 技术篇-navigator.permissions读取chrome剪切板权限获取不生效原因:只有在https协议下使用有效。手动设置chrome页面剪切板读取权限方法
JavaScript 技术篇-navigator.permissions读取chrome剪切板权限获取不生效原因:只有在https协议下使用有效。手动设置chrome页面剪切板读取权限方法
2791 0
JavaScript 技术篇-navigator.permissions读取chrome剪切板权限获取不生效原因:只有在https协议下使用有效。手动设置chrome页面剪切板读取权限方法
|
存储 JSON 前端开发
node使用token来实现前端验证码和登录功能详细流程[供参考]=‘很值得‘
本文介绍了在Node.js中使用token实现前端验证码和登录功能的详细流程,包括生成验证码、账号密码验证以及token验证和过期处理。
796 0
node使用token来实现前端验证码和登录功能详细流程[供参考]=‘很值得‘
|
机器学习/深度学习 编解码 测试技术
【YOLOv8改进-SPPF】 Focal Modulation :使用焦点调制模块替代SPPF
YOLOv8专栏介绍了FocalNets,一种取代自注意力的新型模块,提升模型在图像分类、检测和分割任务中的性能。Focal Modulation包括局部聚焦、全局调制和多尺度处理,通过融合CNN和自注意力优点。代码展示了FocalModulation模块的实现。论文和代码已开源。在多个基准测试中,FocalNets超越了Swin等先进模型。
|
机器学习/深度学习 自然语言处理 算法
深度学习如何入门?
深度学习入门的指南,包括准备基础知识、学习深度学习理论、实践操作、进阶学习、参与社区和不断实践与反思等步骤。
921 0