实战jbuilder7+weblogic7!一个完整例子!入门必看!

liuxiaowei 2002-10-30 10:10:06
http://www.csdn.net/develop/Read_Article.asp?Id=15250
请大家帮忙顶顶!
...全文
41 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
Leony 2002-11-21
  • 打赏
  • 举报
回复
"Frame1.java": Error #: 300 : class Connection not found in class sqlserverdemo.Frame1 at line 79, column 7
"Frame1.java": Error #: 300 : variable DriverManager not found in class sqlserverdemo.Frame1 at line 79, column 24
"Frame1.java": Error #: 300 : class Statement not found in class sqlserverdemo.Frame1 at line 80, column 7
"Frame1.java": Error #: 300 : class ResultSet not found in class sqlserverdemo.Frame1 at line 82, column 7
"Frame1.java": Error #: 300 : class Hashtable not found in class sqlserverdemo.Frame1 at line 109, column 5
"Frame1.java": Error #: 300 : class Hashtable not found in class sqlserverdemo.Frame1 at line 109, column 24
"Frame1.java": Error #: 300 : variable Context not found in class sqlserverdemo.Frame1 at line 111, column 16
"Frame1.java": Error #: 300 : variable Context not found in class sqlserverdemo.Frame1 at line 113, column 16
"Frame1.java": Error #: 300 : class Context not found in class sqlserverdemo.Frame1 at line 121, column 11
"Frame1.java": Error #: 300 : class InitialContext not found in class sqlserverdemo.Frame1 at line 121, column 29
"Frame1.java": Error #: 300 : class DataSource not found in class sqlserverdemo.Frame1 at line 123, column 11
"Frame1.java": Error #: 300 : class DataSource not found in class sqlserverdemo.Frame1 at line 123, column 28
"Frame1.java": Error #: 300 : class Connection not found in class sqlserverdemo.Frame1 at line 125, column 11
"Frame1.java": Error #: 300 : class Statement not found in class sqlserverdemo.Frame1 at line 128, column 11
"Frame1.java": Error #: 300 : class ResultSet not found in class sqlserverdemo.Frame1 at line 130, column 11
oxey 2002-11-17
  • 打赏
  • 举报
回复
顶!
请继续
猎手 2002-11-16
  • 打赏
  • 举报
回复
还有一些没有写完,还是。。。

yacclex 2002-11-14
  • 打赏
  • 举报
回复
我的问题更搞笑,deploy都没有问题,测试客户端程序时却报错,如下javax.naming.CommunicationException. Root exception is java.net.ConnectException: http://localhost:7001: Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available router to destination

明明我的server已经启动了嘛,而且url也绝对没问题,我还专门在ie中打入http://localhost:7001/console去看过,发现我的jar已经部署成功了的。呵呵,jb7就是烦啊,高手请指点!!!!!!!!!!!!!!!
blackfiles 2002-11-14
  • 打赏
  • 举报
回复
upup
study_body 2002-11-14
  • 打赏
  • 举报
回复
Up
lingjj 2002-11-14
  • 打赏
  • 举报
回复
大家都碰到那么多错啊??
顶顶.
solarwind2000 2002-11-14
  • 打赏
  • 举报
回复
up
chen_2001 2002-11-14
  • 打赏
  • 举报
回复
up
lingjj 2002-11-13
  • 打赏
  • 举报
回复
我出现以下错误啊??

javax.naming.NameNotFoundException: Unable to resolve EmployeesRemote. Resolved: '' Unresolved:'EmployeesRemote' ; remaining name ''
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:253)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:220)-- Failed initializing bean access.

at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy0.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at entitybean.EmployeesTestClient1.<init>(EmployeesTestClient1.java:32)
at entitybean.EmployeesTestClient1.main(EmployeesTestClient1.java:1496)
java.lang.NullPointerException
at entitybean.EmployeesTestClient1.findByPrimaryKey(EmployeesTestClient1.java:128)
at entitybean.EmployeesTestClient1.main(EmployeesTestClient1.java:1497)
-- Calling findByPrimaryKey(1)
-- Failed: findByPrimaryKey(1)
-- Return value from findByPrimaryKey(1): null.
Error in testRemoteCallsWithDefaultArguments(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.

怎么解决??
blue999star 2002-11-13
  • 打赏
  • 举报
回复
up

有机会到javaclub.3322.org

的EJB版看看!!!

兄弟我在哪等你 帮解答问题~~~~~~~~~~
DaimonK 2002-11-13
  • 打赏
  • 举报
回复
to: linuxguoyy(努力前进)

Colud not find the main class ,Program will exit
java.lang.NoClassDefFoundError: http://localhost:7001

Exception in thread "main"
老兄,我跟你的错误差不多,呵呵,都不知道该怎么办了。
mem_fox 2002-11-01
  • 打赏
  • 举报
回复
up
ahead_lin 2002-11-01
  • 打赏
  • 举报
回复
收藏
eyelash 2002-11-01
  • 打赏
  • 举报
回复
hehe 好的:)
linuxguoyy 2002-10-31
  • 打赏
  • 举报
回复
up,,
刚才的错误是自己的配置出问题,已解决
xmvigour 2002-10-30
  • 打赏
  • 举报
回复
呵呵:)
outlier 2002-10-30
  • 打赏
  • 举报
回复
re
xxy802 2002-10-30
  • 打赏
  • 举报
回复
请大家帮忙顶顶
linuxguoyy 2002-10-30
  • 打赏
  • 举报
回复
实战2:Session Bean
单击OK关闭当前对话框,单击OK开始编译运行。运行起来之后在左上角的目录树中右键单击HelloModule选择:Deploy options for “HelloModule.jar”->Deploy来发布Bean

不知道以上这几步是怎么做的,我总是出现如下错误
>编译后,会弹出,如下提示:
>Colud not find the main class ,Program will exit.
>
>错误描述:
>"HelloMoudle.ejbgrpx": D:\j2sdk14\bin\javaw weblogic.ejbc -keepgenerated -compiler D:/JBuilder7/bin/bcjW E:/jbEdit/HelloDemo/HelloMoudle.jar.jar E:/jbEdit/HelloDemo/HelloMoudle.jar
>
>"HelloMoudle.ejbgrpx": java.lang.NoClassDefFoundError: weblogic/ejbc
>"HelloMoudle.ejbgrpx": Exception in thread "main"
>

1,220

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧