注:本文转自:
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:
==========================================
also we can add weblogic 10.3 to netbeans id by another two ways if you have
===================================================
we can add weblogic 10.3 on any netbeans version: |
===============================================
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: |
|
|
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,