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