Hello. I have problem in running EJB Sample3a & Sample4a.
In Sample3a,I get following message after starting "makew standalone" command.
---
Loading sample3a.BalanceHome...
Exception: [14:48:24] Unable to install sample3a.BalanceHome
Loading default.RoleHome...
Loading default.LoginSessionHome...
Loading default.UserHome...
---
In sample4a, according to "JRun Sample Guide",I tried to run following commands.
---
makew jars
makew deploy2
makew start2
--
I open another command prompt,I run following command.
I see login window,and I input "saver1"(useid) and "pass"(password).
In this prompt,following error message.
----
makew run
D:\Program Files\Allaire\JRun\samples\sample4a>java -Djava.security.policy=sample.
pol
icy -classpath "sample4a_client.jar;D:\Program files\allaire\jrun\lib\ejipt_client.
jar
;D:\Program files\allaire\jrun\lib\ext\ejb.jar;D:\Program
files\allaire\jrun\lib\ext\j
ms.jar;D:\Program files\allaire\jrun\lib\ext\jndi.jar;D:\Program
files\allaire\jrun\li
b\ext\jta.jar;D:\Program files\allaire\jrun\lib\ext\jdbc.jar" Client
javax.naming.CommunicationException: Failed to communicate with jade:2323. Root
excep
tion is java.net.ConnectException: Connection refused: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.(Socket.java:269)
at java.net.Socket.(Socket.java:98)
at sun.net.NetworkClient.doConnect(NetworkClient.java:54)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:320)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:431)
at sun.net.www.http.HttpClient.(HttpClient.java:260)
at sun.net.www.http.HttpClient.(HttpClient.java:270)
at sun.net.www.http.HttpClient.New(HttpClient.java:282)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:
372)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnectio
n.java:457)
at allaire.ejipt.ContextFactory.getInitialContext(ContextFactory.java:108)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.(InitialContext.java:194)
at client.EjbClient.login(EjbClient.java:49)
at client.ClientUI.actionPerformed(ClientUI.java:78)
at client.LoginPanel.loginPressed(LoginPanel.java:82)
at client.LoginPanel$1.actionPerformed(LoginPanel.java:56)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButt
on.java:1101)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:
378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListene
r.java:204)
at java.awt.Component.processMouseEvent(Component.java:3166)
at java.awt.Component.processEvent(Component.java, Compiled Code)
at java.awt.Container.processEvent(Container.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2068)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1852)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1755)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Window.dispatchEventImpl(Window.java:749)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java,
Compile
d Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
----
In "deploy.properties","ejipt.classServer.host" is set to
"jade".
in Sample4a's "EjbClient.java",port number is set to "2323".
I use WinNT Server4.0+OP+SP4(IIS4).
I stopped JRun Default Server before running these samples.
When I tried to run Sample4a,I start RMID before running these commands.
I find this error message reference in following URL.
http://www.allaire.com/Handlers/index.cfm?ID=17486&Method=Full
--------------------------------------------------------------------------------
error message:
javax.naming.CommunicationException: Failed to communicate with localhost:9393
[Root exception is
java.net.ConnectException: Connection refused: no further information]
cause:
The client tried to connect to the wrong server or the wrong port.
resolution:
Make sure the client makes it's socket connection to the correct server and port.
Refer to /jrun/samples/sample1a/deploy.properties
ejipt.classServer.host=localhost
Refer to /jrun/samples/sample1a/client/EjbClient.java
properties.setProperty(Context.PROVIDER_URL, "ejipt://" + server + ":2323");
Refer to /jrun/servers/default/local.properties
ejb.javaargs=-Dejipt.classServer.host=127.0.0.1 -Dejipt.classServer.port=2323
-Dejipt.homePort=2333
"-Djava.security.policy={jrun.rootdir}/lib/jrun.policy"
"-Dejipt.home={jrun.rootdir}"
"-Dejipt.ejbDirectory={jrun.server.rootdir}"
--------------------------------------------------------------------------------
Acoording to resolution message,I checked sources, but I don't know error
reasons....
I can't resolve two problems.
Please help me.
I'm very sorry for my poor English and long messages.
Many thanks.
R.Eguchi
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.