<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Kevin&#039;s Life</title>
	<atom:link href="http://blog.lckymn.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lckymn.com</link>
	<description>IT, Java, Ubuntu, Linux</description>
	<lastBuildDate>Wed, 03 Mar 2010 16:09:45 +1100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by anthony</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1511</link>
		<dc:creator>anthony</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1511</guid>
		<description>No solution, tried to recover all the files back to original setting via usb boot system, still can&#039;t login...
can&#039;t login even changed my password manually from file... viewed the log and I think it is a pam issue... I don&#039;t know it is a bug of Ubuntu 8.04 or not...
please tell me what is the problem if anyone know, although I planned to reintall the OS to 9.10 already...
anyway, thanks Kevin</description>
		<content:encoded><![CDATA[<p>No solution, tried to recover all the files back to original setting via usb boot system, still can&#8217;t login&#8230;<br />
can&#8217;t login even changed my password manually from file&#8230; viewed the log and I think it is a pam issue&#8230; I don&#8217;t know it is a bug of Ubuntu 8.04 or not&#8230;<br />
please tell me what is the problem if anyone know, although I planned to reintall the OS to 9.10 already&#8230;<br />
anyway, thanks Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by Kevin</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1510</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 03 Mar 2010 04:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1510</guid>
		<description>No, I don&#039;t believe that had anything to do with your problem. &#039;gksudo&#039; is simply &#039;sudo&#039; for the GUI environment. You&#039;d better use &#039;gksudo&#039; when you want to open any GUI based desktop applications, yet using &#039;sudo&#039; causes the problem like that just doesn&#039;t make any sense.

The description of your problem indeed reminds me of the same problem I had before. I think I probably had the same one when I used the 8.x version but don&#039;t remember the exact version number. In my case, it, of course had nothing to do with the instruction above. It just happened one day when I turned on my PC. I didn&#039;t do anything special that time nor did I have any idea how to solve it so re-installed the Ubuntu.

I obviously didn&#039;t want to lose the important data so used Ubuntu Live CD to boot then copied the data to another partition and finally re-installed it.  If your problem keeps happening and you can&#039;t find any solution, I suggest using Live CD and restore the settings you have changed. Then you can see if the changes you made caused the problem. Good luck!</description>
		<content:encoded><![CDATA[<p>No, I don&#8217;t believe that had anything to do with your problem. &#8216;gksudo&#8217; is simply &#8217;sudo&#8217; for the GUI environment. You&#8217;d better use &#8216;gksudo&#8217; when you want to open any GUI based desktop applications, yet using &#8217;sudo&#8217; causes the problem like that just doesn&#8217;t make any sense.</p>
<p>The description of your problem indeed reminds me of the same problem I had before. I think I probably had the same one when I used the 8.x version but don&#8217;t remember the exact version number. In my case, it, of course had nothing to do with the instruction above. It just happened one day when I turned on my PC. I didn&#8217;t do anything special that time nor did I have any idea how to solve it so re-installed the Ubuntu.</p>
<p>I obviously didn&#8217;t want to lose the important data so used Ubuntu Live CD to boot then copied the data to another partition and finally re-installed it.  If your problem keeps happening and you can&#8217;t find any solution, I suggest using Live CD and restore the settings you have changed. Then you can see if the changes you made caused the problem. Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by anthony</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1509</link>
		<dc:creator>anthony</dc:creator>
		<pubDate>Tue, 02 Mar 2010 15:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1509</guid>
		<description>Yes, I have tried. but seems no go...
It doesn&#039;t display the login request...
just display a flashing line and go back to the auto login screen....
when I type the command, I use sudo instead of gksudo, do you think it is possible caused by this?
thx anyway</description>
		<content:encoded><![CDATA[<p>Yes, I have tried. but seems no go&#8230;<br />
It doesn&#8217;t display the login request&#8230;<br />
just display a flashing line and go back to the auto login screen&#8230;.<br />
when I type the command, I use sudo instead of gksudo, do you think it is possible caused by this?<br />
thx anyway</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by Kevin</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1508</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 02 Mar 2010 15:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1508</guid>
		<description>Hello, Anthony
I&#039;m sorry but I have no idea. Unfortunately (or fortunately) I have never seen anyone had that kind of problem after following the instruction above.
have you tried using a console?
If you haven&#039;t, try it by pressing Ctrl+Alt+F1 keys.</description>
		<content:encoded><![CDATA[<p>Hello, Anthony<br />
I&#8217;m sorry but I have no idea. Unfortunately (or fortunately) I have never seen anyone had that kind of problem after following the instruction above.<br />
have you tried using a console?<br />
If you haven&#8217;t, try it by pressing Ctrl+Alt+F1 keys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by anthony</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1507</link>
		<dc:creator>anthony</dc:creator>
		<pubDate>Tue, 02 Mar 2010 14:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1507</guid>
		<description>what I mean crashed is, it keep saying authentication fail even I input a correct password...just keep refreshing the autologin screen...
cannot boot into the system...</description>
		<content:encoded><![CDATA[<p>what I mean crashed is, it keep saying authentication fail even I input a correct password&#8230;just keep refreshing the autologin screen&#8230;<br />
cannot boot into the system&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by anthony</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1506</link>
		<dc:creator>anthony</dc:creator>
		<pubDate>Tue, 02 Mar 2010 14:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1506</guid>
		<description>I have changed all the files as you said... 
and it crashed my autologin... :(
I am using ubuntu 8.04
any idea of it?...thx</description>
		<content:encoded><![CDATA[<p>I have changed all the files as you said&#8230;<br />
and it crashed my autologin&#8230; <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
I am using ubuntu 8.04<br />
any idea of it?&#8230;thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1495</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 18 Feb 2010 16:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1495</guid>
		<description>Thank you so much Ariel.  You&#039;re very generous with your compliments.
And it&#039;s really good to hear that you got it working. :)</description>
		<content:encoded><![CDATA[<p>Thank you so much Ariel.  You&#8217;re very generous with your compliments.<br />
And it&#8217;s really good to hear that you got it working. <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Ariel Jakobovits</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1493</link>
		<dc:creator>Ariel Jakobovits</dc:creator>
		<pubDate>Thu, 18 Feb 2010 08:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1493</guid>
		<description>Seriously, G-d bless you. You have a talent for writing tutorials and it is so nice to be able to finally follow a tutorial from beginning to end and have something running that I can examine. You the man.</description>
		<content:encoded><![CDATA[<p>Seriously, G-d bless you. You have a talent for writing tutorials and it is so nice to be able to finally follow a tutorial from beginning to end and have something running that I can examine. You the man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing 64bit Flash Player in Ubuntu Linux by linuxer</title>
		<link>http://blog.lckymn.com/2009/06/07/installing-64bit-flash-player-in-ubuntu-linux/comment-page-1/#comment-1484</link>
		<dc:creator>linuxer</dc:creator>
		<pubDate>Mon, 08 Feb 2010 15:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=341#comment-1484</guid>
		<description>To make it work for me I needed to put the flash file in the firefox-3.5.7 plugins folder, there were 2 firefox folders and the first one didnt work. Also google chrome beta doesnt seam to need a flash player installed to play flash videos. never-the-less good directions, thanks.</description>
		<content:encoded><![CDATA[<p>To make it work for me I needed to put the flash file in the firefox-3.5.7 plugins folder, there were 2 firefox folders and the first one didnt work. Also google chrome beta doesnt seam to need a flash player installed to play flash videos. never-the-less good directions, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1468</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 08 Jan 2010 07:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1468</guid>
		<description>Hello, Jeff

It seems the EntityManager injection has failed due to some problem in the DAO.
Since I don&#039;t have your source code, can&#039;t tell exactly what causes the problem. If it&#039;s OK with you and if you want me to have a look, could you put your code of AbstractGenericDao and CommuneDaoImpl?

You can use &#91;code lang=&quot;java&quot;&#93;Put your code here&#91;/code&#93; to get the code syntax highlighted.

Regards,
Kevin</description>
		<content:encoded><![CDATA[<p>Hello, Jeff</p>
<p>It seems the EntityManager injection has failed due to some problem in the DAO.<br />
Since I don&#8217;t have your source code, can&#8217;t tell exactly what causes the problem. If it&#8217;s OK with you and if you want me to have a look, could you put your code of AbstractGenericDao and CommuneDaoImpl?</p>
<p>You can use &#91;code lang=&#8221;java&#8221;&#93;Put your code here&#91;/code&#93; to get the code syntax highlighted.</p>
<p>Regards,<br />
Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Jeff</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1466</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 06 Jan 2010 10:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1466</guid>
		<description>Thanks for the documentation.

But i have a problem I get java.lang.IllegalStateException: EntityManager is not injected.
WARN - Injection: No such property &#039;ejbtest.AbstractGenericDao/entityManager&#039; in class ejbtest.CommuneDaoImpl

Jeff</description>
		<content:encoded><![CDATA[<p>Thanks for the documentation.</p>
<p>But i have a problem I get java.lang.IllegalStateException: EntityManager is not injected.<br />
WARN &#8211; Injection: No such property &#8216;ejbtest.AbstractGenericDao/entityManager&#8217; in class ejbtest.CommuneDaoImpl</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by Kevin</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1463</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 23 Dec 2009 02:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1463</guid>
		<description>Thanks for your comment and I&#039;m glad to hear that you solved it. I had the same problem so I can understand what you felt when you had that problem. :)</description>
		<content:encoded><![CDATA[<p>Thanks for your comment and I&#8217;m glad to hear that you solved it. I had the same problem so I can understand what you felt when you had that problem. <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse &#8211; &#8220;Too many open files&#8221; Problem by eclipse_usr</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/comment-page-1/#comment-1462</link>
		<dc:creator>eclipse_usr</dc:creator>
		<pubDate>Tue, 22 Dec 2009 21:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=365#comment-1462</guid>
		<description>Thank you very much. This problem was causing me nothing but headaches after installing some very useful (but heavy) company plug-ins... it&#039;s always nice to find clear, effective help like yours!</description>
		<content:encoded><![CDATA[<p>Thank you very much. This problem was causing me nothing but headaches after installing some very useful (but heavy) company plug-ins&#8230; it&#8217;s always nice to find clear, effective help like yours!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web Service Development using Tomcat and OpenEJB by Kevin</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1460</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 11 Dec 2009 11:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1460</guid>
		<description>The web service I explained here uses JSR-181. It was introduced to JCP by BEA Systems, which is now acquired by Oracle, and Java EE 5 includes it but not J2EE 1.4.
http://jcp.org/en/jsr/detail?id=244

JSR-181 uses annotations which were introduced in J2SE 5.0 so with just J2EE 1.4, you cannot use JSR-181.

I don&#039;t know why you put that comment, which is completely irrelevant to the post, here. Well, your comment has nothing to do with my blog entry although it has the word, &#039;web service&#039;.  I believe you are probably a spam bot as I found that your homepage URI linked to some product list in some on-line shopping mall. Thus I removed it.</description>
		<content:encoded><![CDATA[<p>The web service I explained here uses JSR-181. It was introduced to JCP by BEA Systems, which is now acquired by Oracle, and Java EE 5 includes it but not J2EE 1.4.<br />
<a href="http://jcp.org/en/jsr/detail?id=244" rel="nofollow">http://jcp.org/en/jsr/detail?id=244</a></p>
<p>JSR-181 uses annotations which were introduced in J2SE 5.0 so with just J2EE 1.4, you cannot use JSR-181.</p>
<p>I don&#8217;t know why you put that comment, which is completely irrelevant to the post, here. Well, your comment has nothing to do with my blog entry although it has the word, &#8216;web service&#8217;.  I believe you are probably a spam bot as I found that your homepage URI linked to some product list in some on-line shopping mall. Thus I removed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web Service Development using Tomcat and OpenEJB by heilpflanzen</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1459</link>
		<dc:creator>heilpflanzen</dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1459</guid>
		<description>The Web service features in J2EE 1.4 address both the server and client sides of Web services. The features extend J2EE to allow existing server-side enterprise Java components to become Web services and specify how a J2EE client container can invoke Web services.</description>
		<content:encoded><![CDATA[<p>The Web service features in J2EE 1.4 address both the server and client sides of Web services. The features extend J2EE to allow existing server-side enterprise Java components to become Web services and specify how a J2EE client container can invoke Web services.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1458</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sun, 15 Nov 2009 11:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1458</guid>
		<description>You&#039;re welcome, and it&#039;s good to hear that your problem is solved.
So you are using an MS SQL server, aren&#039;t you?
</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome, and it&#8217;s good to hear that your problem is solved.<br />
So you are using an MS SQL server, aren&#8217;t you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by mami</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1457</link>
		<dc:creator>mami</dc:creator>
		<pubDate>Sun, 15 Nov 2009 11:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1457</guid>
		<description>Thanks for quick answer!
I found the problem, in persistence.xml I had to add following (have removed &#039;&#039; in this post because they will be automaticly removed 

properties
property name=&quot;hibernate.dialect&quot; value=&quot;org.hibernate.dialect.SQLServerDialect&quot; /
/properties

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for quick answer!<br />
I found the problem, in persistence.xml I had to add following (have removed &#8221; in this post because they will be automaticly removed </p>
<p>properties<br />
property name=&#8221;hibernate.dialect&#8221; value=&#8221;org.hibernate.dialect.SQLServerDialect&#8221; /<br />
/properties</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1456</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 14 Nov 2009 12:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1456</guid>
		<description>Hello, mami

If you have an error like ‘Name MyServlet is not bound in this Context’, you normally need to check if the servlet is correctly set in the web.xml, the deployment descriptor.

Yet your case seems different. That error may also be caused by the failure in EJB injection if you use EJB. So the problem is not in the servlet yet in the EJB you try to inject in the servlet.

Let me explain with an example.

You have an EJB, named TestService and your servlet that is MyServlet has TestService as a member field.

So it would be like:
@EJB
private TestService testService;

When the application is deployed, the EJB container that is in this post, OpenEJB instantiates the TestService EJB then tries to inject it into the TestService field in the servlet. However, if the TestService EJB has any problem so OpenEJB fails to instantiate it then the TestService EJB cannot be injected into the member field in the servlet.  So it also causes the problem in instantiation of the servlet.  Thus after all, you can get that error message saying &#039;Servlet is not bound in this Context&#039; yet the actual problem lies in the EJB.  That&#039;s why your servlet has no problem when you comment out the @EJB annotation.  Although the servlet is fine without the @EJB annotation, as you said, you don&#039;t have EJBs without it.  Therefore you need to check your EJBs to solve the problem. If the EJBs injected in the servlet use other EJBs then you should make sure all the EJBs have no problems.

For instance, let&#039;s assume that your stateless EJBs use a DAO which is also a stateless EJB and the DAO has the EntityManager field which is annotated with the @PersistenceContext annotation. When the application is deployed, the OpenEJB tries to inject the EntityManager object into the field.  In this step, if your persistence.xml has any problems or any other problems occur, the OpenEJB fails to inject EntityManager in the DAO and therefore, the DAO cannot be instantiated which consecutively causes the failures in the EJB injections of other EJBs which use the DAO.

So as I already mentioned, you need to carefully check the EJBs.
I hope it might help you.

Regards,
Kevin</description>
		<content:encoded><![CDATA[<p>Hello, mami</p>
<p>If you have an error like ‘Name MyServlet is not bound in this Context’, you normally need to check if the servlet is correctly set in the web.xml, the deployment descriptor.</p>
<p>Yet your case seems different. That error may also be caused by the failure in EJB injection if you use EJB. So the problem is not in the servlet yet in the EJB you try to inject in the servlet.</p>
<p>Let me explain with an example.</p>
<p>You have an EJB, named TestService and your servlet that is MyServlet has TestService as a member field.</p>
<p>So it would be like:<br />
@EJB<br />
private TestService testService;</p>
<p>When the application is deployed, the EJB container that is in this post, OpenEJB instantiates the TestService EJB then tries to inject it into the TestService field in the servlet. However, if the TestService EJB has any problem so OpenEJB fails to instantiate it then the TestService EJB cannot be injected into the member field in the servlet.  So it also causes the problem in instantiation of the servlet.  Thus after all, you can get that error message saying &#8216;Servlet is not bound in this Context&#8217; yet the actual problem lies in the EJB.  That&#8217;s why your servlet has no problem when you comment out the @EJB annotation.  Although the servlet is fine without the @EJB annotation, as you said, you don&#8217;t have EJBs without it.  Therefore you need to check your EJBs to solve the problem. If the EJBs injected in the servlet use other EJBs then you should make sure all the EJBs have no problems.</p>
<p>For instance, let&#8217;s assume that your stateless EJBs use a DAO which is also a stateless EJB and the DAO has the EntityManager field which is annotated with the @PersistenceContext annotation. When the application is deployed, the OpenEJB tries to inject the EntityManager object into the field.  In this step, if your persistence.xml has any problems or any other problems occur, the OpenEJB fails to inject EntityManager in the DAO and therefore, the DAO cannot be instantiated which consecutively causes the failures in the EJB injections of other EJBs which use the DAO.</p>
<p>So as I already mentioned, you need to carefully check the EJBs.<br />
I hope it might help you.</p>
<p>Regards,<br />
Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by mami</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1455</link>
		<dc:creator>mami</dc:creator>
		<pubDate>Sat, 14 Nov 2009 09:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1455</guid>
		<description>If i comment: @EJB  like //@EJB and corresponding User code in my MyServlet everything works and I get dispatched to index.jsp but then I dont have an EJB application I guess :)</description>
		<content:encoded><![CDATA[<p>If i comment: @EJB  like //@EJB and corresponding User code in my MyServlet everything works and I get dispatched to index.jsp but then I dont have an EJB application I guess <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by mami</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1454</link>
		<dc:creator>mami</dc:creator>
		<pubDate>Sat, 14 Nov 2009 09:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1454</guid>
		<description>Some tags where erased so here is the post again....

Thanks for a good &quot;how-to&quot;!
I have followed your instructions but when I try to go to the Servlet I get this error : 
1) Error instantiating servlet class MyServlet
2) &#039;Name MyServlet is not bound in this Context&#039; 

where MyServlet is like your TestServlet in current example.... I realy cant figure it out and would be very glad if anyone could point me in right direction.

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Some tags where erased so here is the post again&#8230;.</p>
<p>Thanks for a good &#8220;how-to&#8221;!<br />
I have followed your instructions but when I try to go to the Servlet I get this error :<br />
1) Error instantiating servlet class MyServlet<br />
2) &#8216;Name MyServlet is not bound in this Context&#8217; </p>
<p>where MyServlet is like your TestServlet in current example&#8230;. I realy cant figure it out and would be very glad if anyone could point me in right direction.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
