<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
@font-face
        {font-family:"Courier New CYR";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=RU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>Hi all.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>i’m some new to jboss. I am considering
examples from <a href="http://www.jbossatwork.com/downloads.html">http://www.jbossatwork.com/downloads.html</a>,
with Have jboss-4.0.1. But now stopped on 5<sup>th</sup> example, because of hibernate.
On forum <a
href="http://forum.java.sun.com/thread.jspa?threadID=5198182&start=0">http://forum.java.sun.com/thread.jspa?threadID=5198182&start=0</a>
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? <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>--------------------------This code is from
jboss-web.xml<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>…<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><resource-ref><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>
<res-ref-name>hibernate/SessionFactory</res-ref-name><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <jndi-name>java:/hibernate/SessionFactory</jndi-name><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> </span></font><font size=2
face="Courier New CYR"><span style='font-size:10.0pt;font-family:"Courier New CYR"'></resource-ref><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>--------------------------and this from web.xml<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>…<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><resource-ref><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>
<res-ref-name>hibernate/SessionFactory</res-ref-name><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <jndi-name>java:/hibernate/SessionFactory</jndi-name><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> </span></font><font size=2
face="Courier New CYR"><span style='font-size:10.0pt;font-family:"Courier New CYR"'></resource-ref><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>-----------------------------</span></font><span
lang=EN-US>MBean service configuration file for Hibernate hibernate-service.xml<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><server> <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <mbean
code="org.jboss.hibernate.jmx.Hibernate" <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>
name="jboss.har:service=Hibernate"> <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <attribute
name="DatasourceName">java:/JBossAtWorkDS</attribute> <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <attribute name="Dialect"></span></font><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New"'>org</span></font><font size=2 face="Courier New CYR"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New CYR"'>.hibernate.dialect.HSQLDialect</attribute>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <attribute
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> <attribute
name="CacheProviderClass"></span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>org</span></font><font
size=2 face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New CYR"'>.hibernate.cache.HashtableCacheProvider</attribute>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> </span></font><font size=2
face="Courier New CYR"><span style='font-size:10.0pt;font-family:"Courier New CYR"'></mbean>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span style='font-size:10.0pt;font-family:"Courier New CYR"'></server>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>-------------------------------------here
is the Exception message<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>14:14:42,843 INFO [STDOUT]
com.jbossatwork.util.ServiceLocatorException: com.jb<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>ossatwork.util.ServiceLocatorException:
javax.naming.NamingException: Could not<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>dereference object [Root exception is
javax.naming.NameNotFoundException: hibern<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span style='font-size:10.0pt;font-family:"Courier New CYR"'>ate
not bound]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=gray face="Book Antiqua"><span
lang=EN-US style='font-size:10.0pt;font-family:"Book Antiqua";color:gray'>Thanks
for attention.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=gray face="Book Antiqua"><span
lang=EN-US style='font-size:10.0pt;font-family:"Book Antiqua";color:gray'>lema<o:p></o:p></span></font></p>
</div>
<br>****************************************************************************************<br>
This e-mail and any files transmitted with it are confidential and<br>
intended solely for the use of the individual or entity to whom they are<br>
addressed. If you are not the intended recipient you are hereby notified<br>
that any dissemination, forwarding, copying or use of any of the<br>
information is strictly prohibited, and the e-mail should immediately be<br>
deleted.<br>
KCELL makes no warranty as to the accuracy or completeness of any<br>
information contained in this message and hereby excludes any liability<br>
of any kind for the information contained therein or for the information<br>
transmission, reception, storage or use of such in any way<br>
whatsoever.The opinions expressed in this message belong to sender alone<br>
and may not necessarily reflect the opinions of KCELL.<br>
This e-mail has been scanned for all known computer viruses.<br>
****************************************************************************************<br>
---MAGIC-KEY-01C39F93.6D81728E---</body>
</html>