Hibernate Books

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
Author Message
 Post subject: Couldn't get HelloWorld To Work For EJB 3
PostPosted: Fri Mar 16, 2007 9:19 pm 
Beginner
Beginner

Joined: Mon Feb 27, 2006 11:16 am
Posts: 25
Hi:

I am using MyEclipse 5.1.1 and Microsoft SQL 2000.
I was able to get the HelloWorld with the Hibernate Core on page 46 to work and the HelloWorld to work with the annotations page 69 to work.
I was not able to get the HelloWorld to work on page 85.
This is the error:

Exception:MessageHandlerBean not bound

I used the jar files from the CaveatTemptor JPA/EJB 3.0 project on the url:
http://www.hibernate.org/400.html.

I get the following exception:
e NameNotFoundException (id=94)
cause NameNotFoundException (id=94)
detailMessage "MessageHandlerBean not bound"
remainingName null
resolvedName null
resolvedObj null
rootException null
stackTrace null

when it execute the following line:
MessageHandler msgHandler = (MessageHandler) initialContext.lookup("MessageHandlerBean/local");

Here is my HelloWorld.java:
package hello;

import org.jboss.ejb3.embedded.EJB3StandaloneBootstrap;
import javax.naming.InitialContext;

public class HelloWorld {

public static void main(String[] args)
{
// Bott the JBoss Microcontainer with EJB3 settings, automaticall
// loads ejb3-interceptors-aop.xml and embedded-jboss-beans.xml
EJB3StandaloneBootstrap.boot(null);

// Deploy custom stateless beans (datasource, mostly)
EJB3StandaloneBootstrap
.deployXmlResource("META-INF/helloworld-beans.xml");

// Deploy all EJBs found on classpath (slow, scans all)
// EJB3StandaloneBootstrap.scanClasspath();

// Deploy all EJBs found on classpath (fast, scans build directory)
// This is a relative location, matching the substring end of one
// of java.class.path locations. Print out the value of
// System.getProperty("java.class.path") to see all paths
EJB3StandaloneBootstrap.scanClasspath("HelloWorldEJB3/bin");
try
{
// Create InitialContext from jdni.properties
InitialContext initialContext = new InitialContext();

// Look up the stateless MessageHandler EJB
MessageHandler msgHandler = (MessageHandler) initialContext.lookup("MessageHandlerBean/local");
// Call the stateless EJB
msgHandler.saveMessages();
msgHandler.showMessages();

}
catch(Exception e)
{
System.out.println("Exception:"+e.getMessage());
}

// Shut down EJB container
EJB3StandaloneBootstrap.shutdown();
}
}

Here is my persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/ ... ce_1_0.xsd"
version="1.0">
<persistence-unit name="helloworld">
<jta-data-source>java:/HelloWorldDS</jta-data-source>
<properties>

<!-- SQL to stdout logging -->
<property name="show_sql" value="true"/>
<property name="format_sql" value="true"/>
<property name="dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create"/>
</properties>
</persistence-unit>
</persistence>

Here is my helloworld-beans.xml:

<?xml version="1.0" encoding="UTF-8"?>

<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
xmlns="urn:jboss:bean-deployer:2.0">

<!-- Enable a JCA datasource available through JNDI -->
<bean name="helloWorldDatasourceFactory"
class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
<property name="jndiName">java:/HelloWorldDS</property>

<!-- HSQL DB -->
<property name="driverClass">net.sourceforge.jtds.jdbc.Driver</property>
<property name="connectionURL">jdbc:jtds:sqlserver://albertlam:1433/Hibernate</property>
<property name="userName">sa</property>
<property name="password">mychau1</property>
<property name="minSize">0</property>
<property name="maxSize">10</property>
<property name="blockingTimeout">1000</property>
<property name="idleTimeout">100000</property>

<property name="transactionManager"><inject bean="TransactionManager"/></property>
<property name="cachedConnectionManager"><inject bean="CachedConnectionManager"/></property>
<property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
</bean>

<bean name="HelloWorldDS" class="java.lang.Object">
<constructor factoryMethod="getDatasource">
<factory bean="helloWorldDatasourceFactory"/>
</constructor>
</bean>

</deployment>


Any help would be greatly appreciated!!!!

Yours,

Curious


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 3:13 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It would be great if you could use the Preview feature of this forum and format your code properly with code tags in the future. Nobody can read what you write.

Did you type in the code from the book or did you download and execute the ready-made examples? If you did not download the examples, please do so, run them (there shouldn't be any problem), and then compare them to what you did.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 3:17 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
These are the two lines that scan, deploy, and bind beans:

Code:
// Deploy all EJBs found on classpath (slow, scans all)
// EJB3StandaloneBootstrap.scanClasspath();

// Deploy all EJBs found on classpath (fast, scans build directory)
// This is a relative location, matching the substring end of one
// of java.class.path locations. Print out the value of
// System.getProperty("java.class.path") to see all paths
EJB3StandaloneBootstrap.scanClasspath("HelloWorldEJB3/bin");


The second line looks for the "HelloWorldEJB3/bin" directory. If nothing is deployed, you probably have given your directory a different name or it isn't in the classpath of the test-run in your build.xml. Comment out this line and use the first line to scan every location in your classpath (slower).

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 4:21 pm 
Beginner
Beginner

Joined: Mon Feb 27, 2006 11:16 am
Posts: 25
christian wrote:
These are the two lines that scan, deploy, and bind beans:

Code:
// Deploy all EJBs found on classpath (slow, scans all)
// EJB3StandaloneBootstrap.scanClasspath();

// Deploy all EJBs found on classpath (fast, scans build directory)
// This is a relative location, matching the substring end of one
// of java.class.path locations. Print out the value of
// System.getProperty("java.class.path") to see all paths
EJB3StandaloneBootstrap.scanClasspath("HelloWorldEJB3/bin");


The second line looks for the "HelloWorldEJB3/bin" directory. If nothing is deployed, you probably have given your directory a different name or it isn't in the classpath of the test-run in your build.xml. Comment out this line and use the first line to scan every location in your classpath (slower).


Hi:

I tried the above suggestions it gave me the same error.
I typed in the code instead of using the one from download.
I changed to HelloWorldEJB3/bin because my project was called HelloWorldEJB3.

I followed your suggestions and use the download code for helloworld-ejb3.

I ran it in MyEclipse 5.1 and I get the following error:
Name Not Found Exception

on the line 30:
(MessageHandler) initialContext.lookup("MessageHandlerBean/local");

When I ran the ant command:Ant run
compile:
[javac] Compiling 4 source files to C:\helloworld-ejb3\build
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:5: illegal character: \64
[javac] @Entity
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:6: illegal character: \64
[javac] @Table(name = "MESSAGES")
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:9: illegal character: \64
[javac] @Id @GeneratedValue
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:9: illegal character: \64
[javac] @Id @GeneratedValue
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:10: illegal character: \64
[javac] @Column(name = "MESSAGE_ID")
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:11: <identifier> expected
[javac] private Long id;
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:13: illegal character: \64
[javac] @Column(name = "MESSAGE_TEXT")
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:14: <identifier> expected
[javac] private String text;
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:16: illegal character: \64
[javac] @ManyToOne(cascade = CascadeType.ALL)
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:17: illegal character: \64
[javac] @JoinColumn(name = "NEXT_MESSAGE_ID")
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\Message.java:18: <identifier> expected
[javac] private Message nextMessage;
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\MessageHandlerBean.java:7: illegal character: \64
[javac] @Stateless
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\MessageHandlerBean.java:10: illegal character: \64
[javac] @PersistenceContext
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\MessageHandlerBean.java:11: <identifier> expected
[javac] EntityManager em;
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\MessageHandlerBean.java:25: ';' expected
[javac] for (Object m : messages) {
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\MessageHandlerBean.java:30: illegal start of expression
[javac] }
[javac] ^
[javac] C:\helloworld-ejb3\src\java\hello\MessageHandlerBean.java:29: ';' expected
[javac] ^
[javac] 17 errors

When I ran the command: javac -version

C:\helloworld-ejb3>javac -version
javac 1.5.0_11
javac: no source files
Usage: javac <options> <source files>
where possible options include:

It shows it is using jdk 1.5. Is there something I have to set to run the Ant file successfully for jdk 1.5. The error looks like it didn't recognize the anntotations syntax as if it is not using jdk 1.5 even though it is.

Yours,

Curios.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 5:38 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
If 'ant run' complains about illegal characters in the source, you are not using JDK 1.5. As far as I know, Ant picks up the JDK to use from the JDK_HOME variable. This is probably set to a different JDK than the one you get when you call 'javac -version'. Your system configuration should be checked.

Try to compile any class with an annotation and a very simple Ant script before you try other peoples code. Make sure your Ant setup works first.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 9:52 pm 
Beginner
Beginner

Joined: Mon Feb 27, 2006 11:16 am
Posts: 25
christian wrote:
If 'ant run' complains about illegal characters in the source, you are not using JDK 1.5. As far as I know, Ant picks up the JDK to use from the JDK_HOME variable. This is probably set to a different JDK than the one you get when you call 'javac -version'. Your system configuration should be checked.

Try to compile any class with an annotation and a very simple Ant script before you try other peoples code. Make sure your Ant setup works first.


Hi:

You're right!!!. My JAVA_HOME variable was pointing to jdk 1.4. I changed it to point to JDK 1.5.

I ran the following ant command in dos-prompt but I get the same error as before when I run at MyEclipse 5.1.1:

C:\helloworld-ejb3>ant
Buildfile: build.xml

compile:
[javac] Compiling 4 source files to C:\helloworld-ejb3\build

BUILD SUCCESSFUL
Total time: 9 seconds
C:\helloworld-ejb3>ant run
Buildfile: build.xml

compile:

copymetafiles:
[copy] Copying 7 files to C:\helloworld-ejb3\build

run:
[java] 21:53:54,171 INFO LocalTxDataSource:117 - Bound datasource to JNDI name 'java:/HelloWorldDS'
[java] Exception in thread "main" javax.naming.NameNotFoundException: MessageHandlerBean not bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
[java] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
[java] at hello.HelloWorld.main(Unknown Source)
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 4 seconds
C:\helloworld-ejb3>




I seemed having problem finding the MessageHandlerBean.

Any other suggestions would be greatly appreciated!!

Yours,

Curios


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 18, 2007 5:46 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It works fine here, can't help you.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 09, 2007 8:12 am 
Newbie

Joined: Mon Jul 09, 2007 8:04 am
Posts: 12
Location: England
I too am very new and am currently working through that chapter.

Now you have your code compiling with the correct JDK, have you tried what Christian suggested about getting it to scan the whole class path.

Like you, I had the same issue.
So, as Christian said, I used the full classpath scan and it started working, so I knew where the problem lay.
Finally, I printed out the result of System.getProperty("java.class.path") and saw that the require paths began with the project name already, so
Code:
EJB3StandaloneBootstrap.scanClasspath("bin");

was all I needed.

Hope that helps in some way, as this thread certainly helped me.

_________________
MG


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 7:11 pm 
Newbie

Joined: Tue Dec 18, 2007 7:42 am
Posts: 19
christian wrote:
It works fine here, can't help you.



Old problem, but the problem still exists in the book and in the source code on the web.

The problem is caused by this code in HelloWorld.java:
Code:
EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/build".replace("/", File.separator));

or in the book:
Code:
EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/bin");


which should be changed to:
Code:
EJB3StandaloneBootstrap.scanClasspath("build");


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 2:19 am 
Newbie

Joined: Tue Aug 05, 2008 2:01 pm
Posts: 5
Location: Portland OR
I am facing this error and i have tried every possible thing in this world that includes whatever has been suggested in this thread but it just does'nt work..
here is the stack terace

Code:

java.class.path:C:\hibernate\HelloWorldEJB3\lib\hibernate-all.jar;C:\hibernate\HelloWorldEJB3\lib\jboss-ejb3-all.jar;C:\hibernate\HelloWorldEJB3\lib\thirdparty-all.jar;C:\hibernate\HelloWorldEJB3\bin
     [java] 23:11:45,369ERROR AbstractKernelController:440 - Error installing to Described: name=helloWorldDatasourceFactory state=Not Installed
     [java] java.lang.ClassNotFoundException: org.jboss.resource.adaptor.jdbc.local.LocalTxDataSource
     [java]    at java.net.URLClassLoader$1.run(Unknown Source)
     [java] Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:
     [java]    at java.security.AccessController.doPrivileged(Native Method)
     [java]    at java.net.URLClassLoader.findClass(Unknown Source)
     [java] *** DEPLOYMENTS IN ERROR: Name -> Error
     [java]    at java.lang.ClassLoader.loadClass(Unknown Source)
     [java]    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     [java] helloWorldDatasourceFactory -> java.lang.ClassNotFoundException: org.jboss.resource.adaptor.jdbc.local.LocalTxDataSource
     [java]    at java.lang.ClassLoader.loadClass(Unknown Source)
     [java] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
     [java]    at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:244)
     [java] HelloWorldDS -> helloWorldDatasourceFactory{Instantiated:**ERROR**}
     [java]    at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:103)
     [java]    at hello.HelloWorld.main(Unknown Source)
     [java] Caused by: java.lang.IllegalStateException: Incompletely deployed:
     [java]    at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:47)
     [java] *** DEPLOYMENTS IN ERROR: Name -> Error
     [java]    at org.jboss.classadapter.plugins.BasicClassAdapterFactory.getClassAdapter(BasicClassAdapterFactory.java:61)
     [java] helloWorldDatasourceFactory -> java.lang.ClassNotFoundException: org.jboss.resource.adaptor.jdbc.local.LocalTxDataSource
     [java]    at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:72)
     [java]    at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:55)
     [java] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
     [java]    at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:65)
     [java] HelloWorldDS -> helloWorldDatasourceFactory{Instantiated:**ERROR**}
     [java]    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241)
     [java]    at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:84)
     [java]    at org.jboss.kernel.plugins.dependency.DescribeAction.installAction(DescribeAction.java:60)
     [java]    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
     [java]    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
     [java]    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
     [java]    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
     [java]    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
     [java]    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
     [java]    at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:99)
     [java]    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
     [java]    ... 1 more
     [java]    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
     [java]    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
     [java]    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
     [java]    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
     [java]    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
     [java]    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
     [java]    at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
     [java]    at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:97)
     [java]    at hello.HelloWorld.main(Unknown Source)
     [java] Java Result: 1



here is the source code
Code:

package hello;

import org.jboss.ejb3.embedded.EJB3StandaloneBootstrap;
import javax.naming.InitialContext;
import java.io.File;

public class HelloWorld {

    public static void main(String[] args) throws Exception {

        // Boot the JBoss Microcontainer with EJB3 settings, automatically
        // loads ejb3-interceptors-aop.xml and embedded-jboss-beans.xml
        EJB3StandaloneBootstrap.boot(null);
//        String classpath = System.getProperty("java.class.path");
//        System.out.println("java.class.path"+System.getProperty(classpath));
        EJB3StandaloneBootstrap.scanClasspath(classpath);
        // Deploy custom stateless beans (datasource, mostly)
        EJB3StandaloneBootstrap.deployXmlResource("META-INF/helloworld-beans.xml");

        // Deploy all EJBs found on classpath (slow, scans all)
//        EJB3StandaloneBootstrap.scanClasspath("bin");

        // Deploy all EJBs found on classpath (fast, scans only build directory)
        // This is a relative location, matching the substring end of one of java.class.path locations!
        // Print out System.getProperty("java.class.path") to understand this...
        EJB3StandaloneBootstrap.scanClasspath();

        // Create InitialContext from jndi.properties
        InitialContext initialContext = new InitialContext();

        // Lookup MessageHandler EJB
        MessageHandler msgHandler =
                (MessageHandler) initialContext.lookup("MessageHandlerBean/local");

        // Call EJB
        msgHandler.saveMessages();
        msgHandler.showMessages();

        // Shutdown EJB container
        EJB3StandaloneBootstrap.shutdown();
    }

}


CAN SOMEONE HELP!!!???[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 02, 2008 1:06 pm 
Newbie

Joined: Tue Dec 02, 2008 12:52 pm
Posts: 1
Hi gaurav,

have you resolved your problem ?
I'm still stuck with it, but maybe I can help you a little :)
Your problem is in "naming".. you typed "adaptor" insted of "adapter"!
The correct name for LocalTxDataSource is:

org.jboss.resource.adapter.jdbc.local.LocalTxDataSource

Check your xml.
If, after making the correction, you find yourself stuck with the same error, then check your classpath and be sure you have added all the jars from the "embedded" version of jboss ejb3 container ( jboss-EJB-3.0_Embeddable_ALPHA.zip archive downloaded from labs.jboss.org site).

After that, you'll find yourself stuck again where I am at the moment:

Exception in thread "main" javax.naming.NameNotFoundException: MessageHandlerBean/Local not bound

:((

The problem is that using EJB3 embedded container the method "scanClasspath()" is no longer available.. How can I register my EJB ??


Top
 Profile  
 
 Post subject: Re: Couldn't get HelloWorld To Work For EJB 3
PostPosted: Sat Feb 06, 2010 2:54 pm 
Newbie

Joined: Tue Feb 02, 2010 9:18 am
Posts: 2
People.
A frend in this very forum resolv the problem.
The error happen to me becouse I a netbeans user not a command line user.
then.
(MessageHandler) initialContext.lookup(); is not a correct line.

I tryed

(MessageHandler) initialContext.lookup();

An work propely.

Anderson.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.