由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 新手请教netbean的问题
相关主题
今天一天时间把tomcat 调明白了现在哪种java开发环境比较流行呀?
用惯了glassfish,突然要我用tomcat,真实不习惯。netbean vs. eclipse
简单的问题,搞不懂了, 帮忙netbean and eclipse
any clone of netbeans of look&feel?Java Swing Application都用哪些Framework
[转载] 有人在用NetBeans IDE么?netbeans 6.9了
中文XP突然装不上NetBeans怪事Java 6和Java 8的问题
NetBeans 的初级问题请大牛指条明路
Java5 compatibility issue土人问个J2EE的弱问题 *_<
相关话题的讨论汇总
话题: glassfish话题: netbean话题: 问题话题: netbeans话题: hosts
进入Java版参与讨论
1 (共1页)
k*********e
发帖数: 2039
1
在家用netbean写的ejb的作业,跑得好好的
跑到学校去给老师演示,结果就报错
仔细一看,glassfish认定的主机host是我的电脑名xxx.2wire.net:8686,也就是说把
我们家的路由器的名字给加上了,在家跑没问题
跑到学校去,因为换了个网络,就找不到host了,电脑名没有自动跟新,还是用的
xxxx.2wire.net。
把我的程序down到同学电脑上run,也是没问题的。
很头疼,以后总不能每次交作业,把老师请到家里来演示吧
到底是netbean设置的问题,还是我电脑自己设置的问题?
恳请大牛指点
k*********e
发帖数: 2039
2
自己先顶起来
A**o
发帖数: 1550
3
改成localhost不久可以了吗?这个跟netbeans没有关系啦。
k*********e
发帖数: 2039
4

在哪里改呢?glassfish里面?

【在 A**o 的大作中提到】
: 改成localhost不久可以了吗?这个跟netbeans没有关系啦。
k*********e
发帖数: 2039
5
如果用webapplication是可以在学校run的
出问题的是client application,就是直接run程序的。 错误位置大概就是在 call
rmi的地方,找不到主机。
我一直都不明白,电脑不是自动获取ip地址跟dsn么,怎么到了学校,还显示是xxxx.
2wire.net。
别的同学都没出现这个问题,真郁闷
A**o
发帖数: 1550
6
很抱歉,既不用netbeans也不用glassfish,帮不上忙。
k*********e
发帖数: 2039
7
The OTS office and the professor can not solve the problem either.
It turns out that JMS connection URL is wrong. It should be automatically
created.
So sad.

【在 A**o 的大作中提到】
: 很抱歉,既不用netbeans也不用glassfish,帮不上忙。
c*c
发帖数: 447
8
改你的hosts file: %SYSTEMROOT%\system32\drivers\etc\hosts
127.0.0.1 localhost xxx.2wire.net
A**o
发帖数: 1550
9
they are not glassfish and/or ejb experts...

【在 k*********e 的大作中提到】
: The OTS office and the professor can not solve the problem either.
: It turns out that JMS connection URL is wrong. It should be automatically
: created.
: So sad.

k*********e
发帖数: 2039
10

Actually the guy from OTS suggest to change the hosts file too.
But he does not know how to change.
Thanks,
I'll try it in the lab, hope it works.

【在 c*c 的大作中提到】
: 改你的hosts file: %SYSTEMROOT%\system32\drivers\etc\hosts
: 127.0.0.1 localhost xxx.2wire.net

c*c
发帖数: 447
11
8686 is JMX port。netbeans talks to Glassfish thru JMX to do admin stuff
like deploying apps. In the netbeans you should be able to change the
glassfish instance property by updating its hostname/ip to your localhost.

【在 k*********e 的大作中提到】
: The OTS office and the professor can not solve the problem either.
: It turns out that JMS connection URL is wrong. It should be automatically
: created.
: So sad.

z****e
发帖数: 54598
12
这跟NETBEAN一点关系都没有吧?
这是appserver的问题
也就是glassfish的问题

【在 k*********e 的大作中提到】
: 在家用netbean写的ejb的作业,跑得好好的
: 跑到学校去给老师演示,结果就报错
: 仔细一看,glassfish认定的主机host是我的电脑名xxx.2wire.net:8686,也就是说把
: 我们家的路由器的名字给加上了,在家跑没问题
: 跑到学校去,因为换了个网络,就找不到host了,电脑名没有自动跟新,还是用的
: xxxx.2wire.net。
: 把我的程序down到同学电脑上run,也是没问题的。
: 很头疼,以后总不能每次交作业,把老师请到家里来演示吧
: 到底是netbean设置的问题,还是我电脑自己设置的问题?
: 恳请大牛指点

1 (共1页)
进入Java版参与讨论
相关主题
土人问个J2EE的弱问题 *_<[转载] 有人在用NetBeans IDE么?
trick to use JMX on EC2中文XP突然装不上NetBeans怪事
Re: Java Tip: ConstantNetBeans 的初级问题
Forte/NetbeansJava5 compatibility issue
今天一天时间把tomcat 调明白了现在哪种java开发环境比较流行呀?
用惯了glassfish,突然要我用tomcat,真实不习惯。netbean vs. eclipse
简单的问题,搞不懂了, 帮忙netbean and eclipse
any clone of netbeans of look&feel?Java Swing Application都用哪些Framework
相关话题的讨论汇总
话题: glassfish话题: netbean话题: 问题话题: netbeans话题: hosts