On Jan 19, 6:41 am, bambang teleinfocom
<bambang.teleinfocomproj...@gmail.com> wrote:
> Hi,
>
> Just confuse and encounter this message whenever trying to run the
> automatic-timer
>
> of EJB3.1 example :
> *
> Created dir: C:\Program
> Files\server\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer\automati c-timer-client\build\classes
> Compiling 1 source file to C:\Program
> Files\server\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer\automati c-timer-client\build\classes
>
> C:\Program
> Files\server\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer\build.xm l:13:
> The following error occurred while executing this line:
> C:\Program
> Files\server\sges-v3\glassfish\samples\bp-project\command-line-ant-tasks.xm l:81:
> C:\glassfishv3\glassfish not found.
>
> BUILD FAILED (total time: 5 seconds)
1 - Check the build.properties file inside bp-project folder. It
should
have in line 2 the location of the GlassFish installation directory
2 - If step 1 does not solve the problem you may try the same sample
from java.dev cvs (as explained in first lab - examples). This one
works if I remember well (not sure at all, my memory fails me).
--
You received this message because you are subscribed to the Google Groups "javaee6-codecamp" group.
To post to this group, send email to javaee6-...@googlegroups.com.
To unsubscribe from this group, send email to javaee6-codeca...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaee6-codecamp?hl=en.
Waiting for the timer to expire
Logged timeouts :
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx
(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
enterprise.automatic_timer_client.AutomaticTimerJavaClient.getRecords
(AutomaticTimerJavaClient.java:59)
at
enterprise.automatic_timer_client.AutomaticTimerJavaClient.main
(AutomaticTimerJavaClient.java:48)
Exception in thread "main" java.lang.NullPointerException
at
enterprise.automatic_timer_client.AutomaticTimerJavaClient.main
(AutomaticTimerJavaClient.java:49)
C:\glassfish\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer
\build.xml:13: The following error occurred while executing this line:
C:\glassfish\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer
\automatic-timer-client\build.xml:14: The following error occurred
while executing this line:
C:\glassfish\sges-v3\glassfish\samples\bp-project\java-client-ant.xml:
40: Java returned: 1
BUILD FAILED (total time: 8 seconds)
I think I need some extra configuration, but don't know what.
Benny
On 30 jan, 05:40, Richard Grin <g...@unice.fr> wrote:
> The same exception for me (under Vista). Did you solve the problem?
>
> Richard
>
> Le 19/01/2010 07:24, bambang teleinfocom a �crit :
>
>
>
> > HI,
>
> > another exception ( DO WE NEED SPECIFIC PORT ? ) :
>
> > Jan 19, 2010 2:15:09 PM
> > */com.sun.enterprise.transaction.JavaEETransactionManagerSimplified
> > initDelegates
> > INFO: Using
> > com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate
> > as the delegate
> > org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
> > at
> > com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:3431)
> > at
> > com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:3452)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:256)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:269)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:125)
> > at
> > com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:188)
> > at
> > com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:186)
> > at
> > com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:352)
> > 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.impl.SerialContext.narrowProvider(SerialContext.java:355)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:327)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
> > at javax.naming.InitialContext.lookup(InitialContext.java:392)
> > at
> > enterprise.automatic_timer_client.AutomaticTimerJavaClient.getRecords(AutomaticTimerJavaClient.java:59)
> > at
> > enterprise.automatic_timer_client.AutomaticTimerJavaClient.main(AutomaticTimerJavaClient.java:48)
> > Caused by: java.lang.RuntimeException: java.net.ConnectException:
> > Connection refused: connect
> > at
> > org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:340)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:239)
> > ... 14 more
> > Caused by: java.net.ConnectException: Connection refused: connect
> > at sun.nio.ch.Net.connect(Native Method)
> > at
> > sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
> > at
> > com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:106)
> > at
> > org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:325)
> > ... 15 more
> > javax.naming.NamingException: Lookup failed for
> > 'java:global/automatic-timer-ejb/StatelessSessionBean' in
> > SerialContext ,orb'sInitialHost=localhost,orb'sInitialPort=3700 [Root
> > exception is javax.naming.NamingException: Unable to acquire
> > SerialContextProvider for SerialContext
> > ,orb'sInitialHost=localhost,orb'sInitialPort=3700 [Root exception is
> > org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]]
> > at
> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
> > at javax.naming.InitialContext.lookup(InitialContext.java:392)
> > at
> > enterprise.automatic_timer_client.AutomaticTimerJavaClient.getRecords(AutomaticTimerJavaClient.java:59)
> > at
> > enterprise.automatic_timer_client.AutomaticTimerJavaClient.main(AutomaticTimerJavaClient.java:48)
> > Caused by: javax.naming.NamingException: Unable to acquire
> > SerialContextProvider for SerialContext
> > ,orb'sInitialHost=localhost,orb'sInitialPort=3700 [Root exception is
> > org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]
> > at
> > com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:276)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
> > ... 3 more
> > Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201
> > completed: No
> > at
> > com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:3431)
> > at
> > com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:3452)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:256)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:269)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:125)
> > at
> > com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:188)
> > at
> > com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:186)
> > at
> > com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:352)
> > 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.impl.SerialContext.narrowProvider(SerialContext.java:355)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:327)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
> > ... 4 more
> > Caused by: java.lang.RuntimeException: java.net.ConnectException:
> > Connection refused: connect
> > at
> > org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:340)
> > at
> > com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:239)
> > ... 14 more
> > Caused by: java.net.ConnectException: Connection refused: connect
> > at sun.nio.ch.Net.connect(Native Method)
> > at
> > sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
> > at
> > com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:106)
> > at
> > org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:325)
> > ... 15 more
> > Exception in thread "main" java.lang.NullPointerException
> > at
> > enterprise.automatic_timer_client.AutomaticTimerJavaClient.main(AutomaticTimerJavaClient.java:49)
> > C:\Program
> > Files\server\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer\build.xml:13:
> > The following error occurred while executing this line:
> > C:\Program
> > Files\server\sges-v3\glassfish\samples\javaee6\ejb\automatic-timer\automatic-timer-client\build.xml:14:
> > The following error occurred while executing this line:
> > C:\Program
> > Files\server\sges-v3\glassfish\samples\bp-project\java-client-ant.xml:40:
> > Java returned: 1
> > BUILD FAILED (total time: 2 minutes 57 seconds)
> > /*
>
> > thx
>
> > bb
>
> > On Tue, Jan 19, 2010 at 2:05 PM, bambang teleinfocom
> > <bambang.teleinfocomproj...@gmail.com
> > <mailto:bambang.teleinfocomproj...@gmail.com>> wrote:
>
> > Hello,
>
> > My mistakes, its build.properties file of BP project and yes, it
> > has path to glassfish
>
> > that i need to cater for my environment.
>
> > So, netbean application does not change the path automatically for
> > us ?
>
> > cheers
>
> > bb
>
> > On Tue, Jan 19, 2010 at 2:01 PM, bambang teleinfocom
> > <bambang.teleinfocomproj...@gmail.com
> > <mailto:bambang.teleinfocomproj...@gmail.com>> wrote:
>
> > Hi Miga :
>
> > You are right, seems like that i need to check out again from
> > the dev cvs.
>
> > as my build.xml of automatic timer does not contain the the
> > glassfish path
>
> > tq
>
> > bb
> > On Tue, Jan 19, 2010 at 1:48 PM, miga <migat...@gmail.com
> > <mailto:migat...@gmail.com>> wrote:
>
> > On Jan 19, 6:41 am, bambang teleinfocom
> > <bambang.teleinfocomproj...@gmail.com
> ...
>
> meer lezen »
I did not do any configuration for the timer. Just added the @schedule
annotation in front of a class method (what is yours?) and added
"import javax.ejb.Schedule;" and it worked. Note that if your
@Schedule syntax is flawed, you probably will not hear about it at
build time, it just won't work.
Are you using the Glassfishv3 library on your project as well as the
Glassfishv3 web server? Not the prelude or any other Glassfish build,
the official release called Glassfishv3? That is what I'm using as
well as the latest NB 6.8 and I haven't been having the problems you
guys are having.
> ...
>
> read more »