初学EJB,在JBuilderX中配置weblogic总是出错,希望高手能将配置的整个流程说说!不胜感激
E:\bea\jdk142_05\bin\javaw -classpath E:\bea\weblogic81\server\lib\weblogic_sp.jar;E:\bea\weblogic81\server\lib\weblogic.jar;E:\bea\weblogic81\server\lib\webservices.jar;E:\bea\jdk142_05\lib\tools.jar; weblogic.Deployer -user weblogic -adminurl http://localhost:7001 -password weblogic -activate -name EJBDemo -upload -source "C:/Documents and Settings/mingming/jbproject/EJBPrj/EJBDemo.jar" -targets myserver
Unable to connect to server t3://localhost:7001 as user weblogic.
Reason: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:47)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:636)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:306)
at weblogic.jndi.Environment.getContext(Environment.java:166)
at weblogic.jndi.Environment.getInitialContext(Environment.java:145)
at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(MBeanHomeTool.java:172)
at weblogic.Deployer.runBody(Deployer.java:721)
at weblogic.utils.compiler.Tool.run(Tool.java:192)
at weblogic.utils.compiler.Tool.run(Tool.java:147)
at weblogic.Deployer.runMain(Deployer.java:574)
at weblogic.Deployer.main(Deployer.java:557)
Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:199)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:296)
... 8 more
Check option -adminurl, -username and -password
配置时,总是报如下错误!!