NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Error when running enterprise application client on Netbeans 6.7.1

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
obinnahenree



Joined: 17 Mar 2009
Posts: 6
Location: Nigeria

PostPosted: Mon Nov 30, 2009 1:14 pm    Post subject: Error when running enterprise application client on Netbeans 6.7.1 Reply with quote

hi, i always get this exception, each time i try to run an enterprise application client from netbeans.i use Netbeans 6.7.1

[init:
init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
deps-jar:
build-common:
compile:
library-inclusion-in-archive:
dist:
pre-run-deploy:
Distributing C:\javaeetutorial5\examples\ejb\order\order-app-client\dist\order-app-client.jar to [localhost:4848_server]
Start registering the project's server resources
Finished registering server resources
deployment started : 0%
deployment finished : 100%
Deploying application in domain completed successfully
Trying to create reference for application in target server completed successfully
Trying to start application in target server completed successfully
Deployment of application order-app-client completed successfully
Enable of order-app-client in target server completed successfully
Enable of application in all targets completed successfully
All operations completed successfully
post-run-deploy:
run-deploy:
Copying 1 file to C:\javaeetutorial5\examples\ejb\order\order-app-client\dist
run-tool:
Nov 30, 2009 5:24:45 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: mohican.mshome.net; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:134)
at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:259)
at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:204)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:159)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.util.Utility.lookupObject(Utility.java:145)
at com.sun.enterprise.ServerConfiguration.<init>(ServerConfiguration.java:96)]

please , what can i do.[/code]
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Tue Dec 01, 2009 5:32 am    Post subject: Re: Error when running enterprise application client on Netbeans 6.7.1 Reply with quote

It's not just that your ALWAYS get the error. For your specific case, your application can't just connect to the remote server. I would recommend you try to debug it to find out what's wrong. Here's how to use the debugger in NB: http://netbeans.org/kb/55/using-netbeans/debug.html


From: obinnahenree <address-removed>
To: address-removed
Sent: Mon, November 30, 2009 7:14:25 AM
Subject: [nbj2ee] Error when running enterprise application client on Netbeans 6.7.1

hi, i always get this exception, each time i try to run an enterprise application client from netbeans.i use Netbeans 6.7.1

[init:
init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
deps-jar:
build-common:
compile:
library-inclusion-in-archive:
dist:
pre-run-deploy:
Distributing C:\javaeetutorial5\examples\ejb\order\order-app-client\dist\order-app-client.jar to [localhost:4848_server]
Start registering the project's server resources
Finished registering server resources
deployment started : 0%
deployment finished : 100%
Deploying application in domain completed successfully
Trying to create reference for application in target server completed successfully
Trying to start application in target server completed successfully
Deployment of application order-app-client completed successfully
Enable of order-app-client in target server completed successfully
Enable of application in all targets completed successfully
All operations completed successfully
post-run-deploy:
run-deploy:
Copying 1 file to C:\javaeetutorial5\examples\ejb\order\order-app-client\dist
run-tool:
Nov 30, 2009 5:24:45 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: mohican.mshome.net; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:134)
at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:259)
at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:204)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:159)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.util.Utility.lookupObject(Utility.java:145)
at com.sun.enterprise.ServerConfiguration.<init>(ServerConfiguration.java:96)]

please , what can i do.[/code]

------------------------
obyno
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 605
Location: Simpsonville, SC

PostPosted: Wed Dec 02, 2009 4:36 pm    Post subject: Re: Error when running enterprise application client on Netbeans 6.7.1 Reply with quote

Is your application set to use the correct hostnames? In one case I see localhost and the error is connecting to mohican.mshome.net. Check the server configuration for the correct hostnames.

On Mon, Nov 30, 2009 at 8:14 AM, obinnahenree <address-removed ([email]address-removed[/email])> wrote:
Quote:
hi, i always get this exception, each time i try to run an enterprise application client from netbeans.i use Netbeans 6.7.1

[init:
init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
deps-jar:
build-common:
compile:
library-inclusion-in-archive:
dist:
pre-run-deploy:
Distributing C:\javaeetutorial5\examples\ejb\order\order-app-client\dist\order-app-client.jar to [localhost:4848_server]
Start registering the project's server resources
Finished registering server resources
deployment started : 0%
deployment finished : 100%
Deploying application in domain completed successfully
Trying to create reference for application in target server
Back to top
obinnahenree



Joined: 17 Mar 2009
Posts: 6
Location: Nigeria

PostPosted: Sun Dec 13, 2009 11:00 am    Post subject: how ca i set the application to use correct hostnames Reply with quote

hi jyeary, thanks for your reply. how can i set correct hostnames for my application. is it not supposed to pick localhost by default.i cant say where mohican.mshome.net came from.

thanks.
Back to top
Kenneth Ganfield
Posted via mailing list.





PostPosted: Sun Dec 13, 2009 9:30 pm    Post subject: Re: Error when running enterprise application client on Netbeans 6.7.1 Reply with quote

Hi,
You can try looking at the target server specified in
glassfish/domains/domain1/config/sun-acc.xml.


obinnahenree wrote:
Quote:
hi jyeary, thanks for your reply. how can i set correct hostnames for my application. is it not supposed to pick localhost by default.i cant say where mohican.mshome.net came from.

thanks.

------------------------
obyno



Back to top
mackkaif



Joined: 12 Nov 2009
Posts: 6

PostPosted: Tue Dec 15, 2009 12:46 pm    Post subject: re: Reply with quote

thanks for sharing Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo