error - hibernate not bound in JBOSS
by Moldir.Baynazarovaï¼ kcell.kz
Hi all.
i'm some new to jboss. I am considering examples from
http://www.jbossatwork.com/downloads.html, with Have jboss-4.0.1. But
now stopped on 5th example, because of hibernate. On forum
http://forum.java.sun.com/thread.jspa?threadID=5198182&start=0 I got no
exact answer unfortunately, but I guess the error comes because of the
JNDI which it cannot find. Say please, what should I try to change to
solve my problem, or how you think what am I doing wrong?
--------------------------This code is from jboss-web.xml
...
<resource-ref>
<res-ref-name>hibernate/SessionFactory</res-ref-name>
<jndi-name>java:/hibernate/SessionFactory</jndi-name>
</resource-ref>
...
--------------------------and this from web.xml
...
<resource-ref>
<res-ref-name>hibernate/SessionFactory</res-ref-name>
<jndi-name>java:/hibernate/SessionFactory</jndi-name>
</resource-ref>
...
-----------------------------MBean service configuration file for
Hibernate hibernate-service.xml
<server>
<mbean code="org.jboss.hibernate.jmx.Hibernate"
name="jboss.har:service=Hibernate">
<attribute name="DatasourceName">java:/JBossAtWorkDS</attribute>
<attribute
name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>
<attribute
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute
name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</at
tribute>
</mbean>
</server>
-------------------------------------here is the Exception message
14:14:42,843 INFO [STDOUT]
com.jbossatwork.util.ServiceLocatorException: com.jb
ossatwork.util.ServiceLocatorException: javax.naming.NamingException:
Could not
dereference object [Root exception is
javax.naming.NameNotFoundException: hibern
ate not bound]
Thanks for attention.
lema
****************************************************************************************
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient you are hereby notified
that any dissemination, forwarding, copying or use of any of the
information is strictly prohibited, and the e-mail should immediately be
deleted.
KCELL makes no warranty as to the accuracy or completeness of any
information contained in this message and hereby excludes any liability
of any kind for the information contained therein or for the information
transmission, reception, storage or use of such in any way
whatsoever.The opinions expressed in this message belong to sender alone
and may not necessarily reflect the opinions of KCELL.
This e-mail has been scanned for all known computer viruses.
****************************************************************************************
---MAGIC-KEY-01C39F93.6D81728E---
18Â years, 9Â months
[JBoss Messaging] - Re: Clustered post office exception
by twistah
To elaborate, this exception also appears together with the one mentioned in the previous post:
| 2007-07-26 11:56:34,862 ERROR [org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice] Caught Exception in Receiver
| java.lang.ClassCastException: org.jboss.messaging.core.local.PagingFilteredQueue
| at org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice.updateQueueStats(DefaultClusteredPostOffice.java:857)
| at org.jboss.messaging.core.plugin.postoffice.cluster.QueueStatsRequest.execute(QueueStatsRequest.java:61)
| at org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice$DataReceiver.receive(DefaultClusteredPostOffice.java:2469)
| at org.jgroups.JChannel.up(JChannel.java:1102)
| at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:382)
| at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:398)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.pbcast.GMS.up(GMS.java:768)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.protocols.pbcast.GMS.receiveUpEvent(GMS.java:788)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.VIEW_SYNC.up(VIEW_SYNC.java:154)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.FRAG.up(FRAG.java:168)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:258)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.UNICAST.up(UNICAST.java:259)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:685)
| at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:517)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:170)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.FD.up(FD.java:300)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:301)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.MERGE2.up(MERGE2.java:162)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.Discovery.up(Discovery.java:225)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.stack.Protocol.up(Protocol.java:547)
| at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:470)
| at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
| at org.jgroups.protocols.TP.handleIncomingMessage(TP.java:908)
| at org.jgroups.protocols.TP.access$900(TP.java:45)
| at org.jgroups.protocols.TP$IncomingMessageHandler.run(TP.java:1344)
| at java.lang.Thread.run(Thread.java:595)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067743#4067743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067743
18Â years, 9Â months
[JBoss Seam] - Component configuration with complex types
by jbuechel
I'm trying to configure a component (which should provide a menu structure to the view) with complex types via components.xml file.
So would it be possible to configure the hole menu stucture in the components.xml file?
Code such following should be replaced:
anonymous wrote :
| @Out
| List htmlDropDownMenuList;
|
| @Factory("htmlDropDownMenuList")
| public void buildMenu() {
| log.info("buildMenu called");
|
| htmlDropDownMenuList = new ArrayList();
|
| /*************** Menu 1 ***************/
| HtmlDropDownMenu htmlDropDownMenu = new HtmlDropDownMenu();
| htmlDropDownMenu.setValue(messages.get("dropDownMenu1"));
|
| /**** MenuItem 1 ****/
| HtmlMenuItem htmlMenuItem = new HtmlMenuItem();
| htmlMenuItem.setValue(messages.get("dropDownMenu1.menuItem1"));
| htmlMenuItem.setActionExpression(
| Expressions.instance().createMethodExpression("modules/queryCatalog/queryCatalog.xhtml").toUnifiedMethodExpression());
|
| htmlDropDownMenu.getChildren().add(htmlMenuItem);
|
| htmlDropDownMenuList.add(htmlDropDownMenu);
|
I couldn't find something similar in the reference or this forum.
Any ideas would be very appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067741#4067741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067741
18Â years, 9Â months
[EJB/JBoss] - Re: how to destroy connection to jboss app server
by hquang
Sorry, i want to re-post my question:
hi,
i am getting java.lang.OutOfMemoryError: unable to create new native thread in server.log, these are some causes that I can think of, pls give your comment and advise how to resolve this problem:
1. The java.lang.OutOfMemoryError is caused by excessive threads being created. If it is, then how to destroy threads or connections created by client but not in use.
2. Caused by the server run out of memory. If it is, then what is the best setting for -Xms, -Xmx, -XXMaxPermSize etc...
3. Client does not close connection properly after using. If it is, what is the best way to close the connection to jboss server leaving no active thread on jboss server?
I am looking forward to hearing from your response.
Best Regards,
Quang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067737#4067737
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067737
18Â years, 9Â months
[JBoss Seam] - Seam and Richclient
by welser
Hello,
i got a little bit confused how to use my EJB 3.0 based application for WEB via Seam)and also use a RichClient. Because of seam i have to intruduce additional methods (without paramteters) in my session beans and also add @In @ out tagged Entities. This additional methos will only work in seam because the DI will do its work to get my @in@out annotated Objects filled. But this also means that i have to write seperate methofs for my richclient. Is there a best prectice for this ? Split up Session beans for Seam and Richclient? Or wirte Session beans for Seam and use within them the Session beans for the Richclient and fill in the parameters ?
thx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067734#4067734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067734
18Â years, 9Â months