We wrote a simple application to verify above steps. This javaee project has
one ejb module and one web module. Ejb module use ejb2.0 and has one local EJB
- HelloEjb.
In web module, I have one ServletContextListener which try to get local ejb
HelloLocal through jndi lookup; it will fail with error in console.
Besides of that, we put a simple jsp file in this module which does the same
thing as listener. After web app startup, access url
http://localhost:8080/MyTestWeb/index.jsp will trigger it. In this case, Jndi
lookup pass without error, invocation on ejb could be found in console, too.
Below is content of jboss console:
anonymous wrote :
| 05:58:41,867 INFO [ServerImpl] Home Dir: C:\jboss-5.0.1.GA
| 05:58:41,867 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.1.GA/
| 05:58:41,867 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.1.GA/lib/
| 05:58:41,867 INFO [ServerImpl] Patch URL: null
| 05:58:41,867 INFO [ServerImpl] Common Base URL:
file:/C:/jboss-5.0.1.GA/common/
| 05:58:41,882 INFO [ServerImpl] Common Library URL:
file:/C:/jboss-5.0.1.GA/common/lib/
| 05:58:41,882 INFO [ServerImpl] Server Name: standard
| 05:58:41,882 INFO [ServerImpl] Server Base Dir: C:\jboss-5.0.1.GA\server
| 05:58:41,882 INFO [ServerImpl] Server Base URL:
file:/C:/jboss-5.0.1.GA/server/
| 05:58:41,882 INFO [ServerImpl] Server Config URL:
file:/C:/jboss-5.0.1.GA/server/standard/conf/
| 05:58:41,882 INFO [ServerImpl] Server Home Dir:
C:\jboss-5.0.1.GA\server\standard
| 05:58:41,882 INFO [ServerImpl] Server Home URL:
file:/C:/jboss-5.0.1.GA/server/standard/
| 05:58:41,882 INFO [ServerImpl] Server Data Dir:
C:\jboss-5.0.1.GA\server\standard\data
| 05:58:41,882 INFO [ServerImpl] Server Library URL:
file:/C:/jboss-5.0.1.GA/server/standard/lib/
| 05:58:41,882 INFO [ServerImpl] Server Log Dir:
C:\jboss-5.0.1.GA\server\standard\log
| 05:58:41,882 INFO [ServerImpl] Server Native Dir:
C:\jboss-5.0.1.GA\server\standard\tmp\native
| 05:58:41,882 INFO [ServerImpl] Server Temp Dir:
C:\jboss-5.0.1.GA\server\standard\tmp
| 05:58:41,882 INFO [ServerImpl] Server Temp Deploy Dir:
C:\jboss-5.0.1.GA\server\standard\tmp\deploy
| 05:58:43,538 INFO [ServerImpl] Starting Microcontainer,
bootstrapURL=file:/C:/jboss-5.0.1.GA/server/standard/conf/bootstrap.xml
| 05:58:46,007 INFO [VFSCacheFactory] Initializing VFSCache
[org.jboss.virtual.plugins.cache.CombinedVFSCache]
| 05:58:46,023 INFO [VFSCacheFactory] Using VFSCache
[CombinedVFSCache[real-cache: null]]
| 05:58:46,835 INFO [CopyMechanism] VFS temp dir:
C:\jboss-5.0.1.GA\server\standard\tmp
| 05:58:46,867 INFO [ZipEntryContext] VFS force nested jars copy-mode is
enabled.
| 05:58:50,492 INFO [ServerInfo] Java version: 1.6.0_07,Sun Microsystems Inc.
| 05:58:50,492 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime
Environment (build 1.6.0_07-b06)
| 05:58:50,492 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM
10.0-b23,Sun Microsystems Inc.
| 05:58:50,492 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 05:58:50,679 INFO [JMXKernel] Legacy JMX core initialized
| 05:58:55,632 INFO [ProfileServiceImpl] Loading profile: standard from:
org.jboss.system.server.profileservice.repository.serializabledeploymentreposit...@1091857(root=C:\jboss-5.0.1.GA\server,
key=org.jboss.profileservice.spi.profile...@664cb3f[domain=default,server=default,name=standard])
| 05:58:55,648 INFO [ProfileImpl] Using
repository:org.jboss.system.server.profileservice.repository.serializabledeploymentreposit...@1091857(root=C:\jboss-5.0.1.GA\server,
key=org.jboss.profileservice.spi.profile...@664cb3f[domain=default,server=default,name=standard])
| 05:58:55,648 INFO [ProfileServiceImpl] Loaded profile:
profilei...@98ebea{key=org.jboss.profileservice.spi.profilekey@664cb3f[domain=default,server=default,name=standard]}
| 05:59:00,242 INFO [WebService] Using RMI server codebase:
http://localhost:8083/
| 05:59:26,914 INFO [NativeServerConfig] JBoss Web Services - Stack Native
Core
| 05:59:26,914 INFO [NativeServerConfig] 3.0.5.GA
| 05:59:45,898 INFO [Ejb3DependenciesDeployer] Encountered deployment
abstractvfsdeploymentcont...@17541938{vfsfile:/C:/jboss-5.0.1.GA/server/standard/deploy/MyTestApplication.ear/MyTestEJB.jar/}
| 05:59:45,898 INFO [Ejb3DependenciesDeployer] Encountered deployment
abstractvfsdeploymentcont...@17541938{vfsfile:/C:/jboss-5.0.1.GA/server/standard/deploy/MyTestApplication.ear/MyTestEJB.jar/}
| 05:59:45,898 INFO [Ejb3DependenciesDeployer] Encountered deployment
abstractvfsdeploymentcont...@17541938{vfsfile:/C:/jboss-5.0.1.GA/server/standard/deploy/MyTestApplication.ear/MyTestEJB.jar/}
| 05:59:51,570 INFO [CorbaNamingService] CORBA Naming Started
| 05:59:55,773 INFO [MailService] Mail Service bound to java:/Mail
| 06:00:00,164 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL
SECURITY RISK. It has been detected that the MessageSucker component which
su