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

相关文章
|
1天前
|
数据采集 人工智能 自然语言处理
3分钟采集134篇AI文章!深度解析如何通过云无影AgentBay实现25倍并发 + LlamaIndex智能推荐
结合阿里云无影 AgentBay 云端并发采集与 LlamaIndex 智能分析,3分钟高效抓取134篇 AI Agent 文章,实现 AI 推荐、智能问答与知识沉淀,打造从数据获取到价值提炼的完整闭环。
282 90
|
9天前
|
机器人 API 调度
基于 DMS Dify+Notebook+Airflow 实现 Agent 的一站式开发
本文提出“DMS Dify + Notebook + Airflow”三位一体架构,解决 Dify 在代码执行与定时调度上的局限。通过 Notebook 扩展 Python 环境,Airflow实现任务调度,构建可扩展、可运维的企业级智能 Agent 系统,提升大模型应用的工程化能力。
|
人工智能 前端开发 API
前端接入通义千问(Qwen)API:5 分钟实现你的 AI 问答助手
本文介绍如何在5分钟内通过前端接入通义千问(Qwen)API,快速打造一个AI问答助手。涵盖API配置、界面设计、流式响应、历史管理、错误重试等核心功能,并提供安全与性能优化建议,助你轻松集成智能对话能力到前端应用中。
719 154
|
15天前
|
人工智能 数据可视化 Java
Spring AI Alibaba、Dify、LangGraph 与 LangChain 综合对比分析报告
本报告对比Spring AI Alibaba、Dify、LangGraph与LangChain四大AI开发框架,涵盖架构、性能、生态及适用场景。数据截至2025年10月,基于公开资料分析,实际发展可能随技术演进调整。
971 152
|
2天前
|
域名解析 人工智能
【实操攻略】手把手教学,免费领取.CN域名
即日起至2025年12月31日,购买万小智AI建站或云·企业官网,每单可免费领1个.CN域名首年!跟我了解领取攻略吧~
|
1天前
|
数据采集 人工智能 搜索推荐
别再“调教”ChatGPT了!用Qwen2.5打造24小时在线数字分身
在AI时代,专属“数字分身”正从科幻走向现实。依托Qwen2.5-14B大模型、LoRA微调技术及LLaMA-Factory Online平台,仅需四步即可打造会说话、懂风格、能办事的个性化AI助手,让每个人拥有自己的“贾维斯”。
200 152