English 中文(简体)
Error test ejb 3.1 (netbeans-glassifish-junit4)
原标题:Error testing ejb 3.1 (netbeans-glassifish-junit4)

I m试图将EJB与实体创建业务合并测试。 我已经能够测试它只是管理我的网络应用(和所有工作),但我要与日本特尼特合作。

So, my environment is Netbeans 7, Glassfish 3.1 (JavaDB, EclipseLink), JUnit4.

当我为我的欧洲法院所在地点设立一个测试组时,该代码模板使用以下编码线,在我管理该守则时,该行文 exception成例外:

EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();  

例外情况是:

java.lang.RuntimeException: Invalid resource : jdbc/mine__pm
Exception while preparing the app : Invalid resource : jdbc/mine__pm 

我的欧洲黄麻和黄麻业协会已注入了<代码>EntityManager,这表明我一直坚持不懈。 这一持久性单位指的是由Netbeans为我的玻璃鱼创建的I JNDI命名的数据来源:jdbc/mine。 它运行,我可以把它放在我的服务器上。 我尝试使用<条码>glassfish-resource.xml做同样的事情。

为什么不工作?

问题回答

暂无回答




相关问题
Webspehere 6.1 and JNDI for something other than a Datasource

I was wondering: how does one go about configuring WAS if they want to store some confidential information that is not datasource, JMS or Mail related? I m looking more for an adhoc JNDI resource (a ...

JBoss JNDI Binding Manager - maximum length of value?

I m using the technique described here to register string values on the JNDI tree via an XML file deployed to JBoss. This is working fine for my system constants (URLs and the like). However I am ...

How to configure JPA to use JNDI?

I have a working persistence definition that works on java level tests. Now I want to incorporate that into a web application which defines the database connection as JNDI in the context.xml. What do ...

Jetty JNDI Java Mail

I am using Jetty 7 with JBoss Seam and have 2 Java Mail Sessions configured, one for support notifications and another for general notifications. The problem I am having appears to be from JBoss Seam ...

Using JNDI for Database connections

This might sound like a noob question but this is the first time I m treading into Database territory. From here I got the info that The most efficient way to implement communication between the ...

JNDI Names -- Is Prefix "jdbc/" needed?

What s up with JNDI names? I m trying to get a javax.sql.DataSource using the new annotations feature of Java 5. It s not working for me, so I want to ask... I have a in my web.xml, inside of it is ...

热门标签