You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by wlad <vv...@yahoo.com> on 2013/09/26 22:37:27 UTC
JNDI_LOOKUP error=Cannot open input stream to server
I'm new to JEE. I use Eclipse IDE, OpenEJB as persistence provider, TomEE app
server. TomEE runs fine with Eclipse (http://localhost:8080/).
I have simple example (that is valid), but can't make it run. The log
message I'm getting is:
<Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
runClient1:
[java] Sep 26, 2013 9:51:50 PM org.apache.openejb.client.EventLogger
log
[java] INFO:
RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
[java] Sep 26, 2013 9:51:50 PM org.apache.openejb.client.EventLogger
log
[java] WARNING: RequestFailed{server=http://127.0.0.1:8080/tomee/ejb}
JNDI_LOOKUPnull:/HelloBeanRemote {error=Cannot open input stream to server:
}
[java] Exception in thread "main"
org.apache.openejb.client.ClientRuntimeException: Invalid response from
server: -1
[java] at
org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:297)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:411)
[java] at
rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second
jndi.properties file content:
java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
java.naming.provider.url=http://127.0.0.1:8080/tomee/ejb
What could be cause of this error?
Appreciate any help
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: OpenWebBeans configuration exception when running Maven TomEE plugin
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Can you try with our snapshot please? 1.6.0-SNAPSHOT
If it fails maybe share a sample to let us dig into it
Le 27 sept. 2013 00:04, "Pascal Gillet" <pa...@ymail.com> a écrit :
> Hi Folks,
>
> I attempt to execute mvn tomee:start on my webapp using the Maven TomEE
> plugin, and I am getting the following exception:
>
> INFO: Initializing Mojarra 2.2.0 ( 20130502-2118
> https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930) for context '/glue'
> Sep 25, 2013 7:18:08 PM com.sun.faces.config.ConfigureListener
> contextInitialized
> SEVERE: Critical error during deployment:
> com.sun.faces.config.ConfigurationException: Factory
> 'javax.faces.application.ApplicationFactory' was not configured properly.
> at
> com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:330)
> at
> com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)
> at
> com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:435)
> at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> Caused by: javax.faces.FacesException:
> org.apache.webbeans.jsf.OwbApplicationFactory
> at
> javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:710)
> at
> javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:572)
> at javax.faces.FactoryFinder.access$500(FactoryFinder.java:140)
> at
> javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1120)
> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
> at
> com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)
> ... 16 more
> Caused by: com.sun.faces.spi.InjectionProviderException:
> org.apache.webbeans.exception.WebBeansConfigurationException: No
> constructor is found for the class :
> org.apache.webbeans.jsf.OwbApplicationFactory
> at
> org.apache.tomee.mojarra.TomEEInjectionProvider.inject(TomEEInjectionProvider.java:41)
> at
> javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:695)
> ... 21 more
> Caused by: org.apache.webbeans.exception.WebBeansConfigurationException:
> No constructor is found for the class :
> org.apache.webbeans.jsf.OwbApplicationFactory
> at
> org.apache.webbeans.util.WebBeansUtil.defineConstructor(WebBeansUtil.java:489)
> at
> org.apache.webbeans.util.WebBeansUtil.defineConstructor(WebBeansUtil.java:457)
> at
> org.apache.openejb.cdi.ConstructorInjectionBean.<init>(ConstructorInjectionBean.java:47)
> at org.apache.openejb.core.WebContext.inject(WebContext.java:151)
> at
> org.apache.tomee.catalina.JavaeeInstanceManager.inject(JavaeeInstanceManager.java:84)
> at
> org.apache.tomee.mojarra.TomEEInjectionProvider.inject(TomEEInjectionProvider.java:39)
> ... 22 more
>
> Sep 25, 2013 7:18:09 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: Error listenerStart
> Sep 25, 2013 7:18:09 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: Context [/glue] startup failed due to previous errors
> Sep 25, 2013 7:18:09 PM javax.faces.FactoryFinder$FactoryManager getFactory
> SEVERE: Application was not properly initialized at startup, could not
> find Factory: javax.faces.application.ApplicationFactory. Attempting to
> find backup.
> Sep 25, 2013 7:18:09 PM com.sun.faces.config.ConfigureListener
> contextDestroyed
> SEVERE: Unexpected exception when attempting to tear down the Mojarra
> runtime
> java.lang.IllegalStateException: Could not find backup for factory
> javax.faces.application.ApplicationFactory.
> at
> javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1135)
> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
> at
> com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:140)
> at
> com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:310)
> at
> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4837)
> at
> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5483)
> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
>
> Sep 25, 2013 7:18:09 PM org.apache.openejb.assembler.classic.Assembler
> destroyApplication
>
>
>
> ...and then my application is immediately undeployed from the container.
> Note that I don't have any problem when I start TomEE from Eclipse, and my
> webapp just works fine.
>
> Here is my POM:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <artifactId>foo-webapp</artifactId>
> <packaging>war</packaging>
>
> <parent>
> <groupId>com.foo</groupId>
> <artifactId>foo-parent</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <relativePath>../pom.xml</relativePath>
> </parent>
>
> <build>
> <finalName>foo</finalName>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.3</version>
> <configuration>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>1.0.1</version>
> <configuration>
> <tomeeVersion>1.5.2</tomeeVersion>
> <tomeeClassifier>webprofile</tomeeClassifier>
>
> <config>${project.basedir}/src/main/webapp/META-INF/conf</config>
> <libs>
>
> <lib>mysql:mysql-connector-java:${mysql.version}</lib>
> </libs>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> <properties>
> <jersey.version>1.17</jersey.version>
> <mysql.version>5.1.26</mysql.version>
> </properties>
>
> <dependencies>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-api</artifactId>
> <version>6.0</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>com.foo</groupId>
> <artifactId>foo-data-model</artifactId>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>${mysql.version}</version>
> </dependency>
> <dependency>
> <groupId>commons-codec</groupId>
> <artifactId>commons-codec</artifactId>
> <version>1.6</version>
> </dependency>
> <dependency>
> <groupId>com.google.code.gson</groupId>
> <artifactId>gson</artifactId>
> <version>2.2.4</version>
> </dependency>
> <dependency>
> <groupId>ch.qos.logback</groupId>
> <artifactId>logback-classic</artifactId>
> <version>1.0.13</version>
> </dependency>
> <!-- RESTful Web Services -->
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-server</artifactId>
> <version>${jersey.version}</version>
> </dependency>
> <!-- JSON support -->
> <!-- Use GsonMessageBodyHandler instead -->
> <!-- <dependency> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-json</artifactId>
> <version>${jersey.version}</version> </dependency> -->
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-servlet</artifactId>
> <version>${jersey.version}</version>
> </dependency>
> </dependencies>
>
> </project>
>
> I don't actually use CDI yet, and my beans.xml is empty under the WEB-INF/
> directory:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" />
>
> So, am I missing something somewhere?
OpenWebBeans configuration exception when running Maven TomEE plugin
Posted by Pascal Gillet <pa...@ymail.com>.
Hi Folks,
I attempt to execute mvn tomee:start on my webapp using the Maven TomEE plugin, and I am getting the following exception:
INFO: Initializing Mojarra 2.2.0 ( 20130502-2118 https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930) for context '/glue'
Sep 25, 2013 7:18:08 PM com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
com.sun.faces.config.ConfigurationException: Factory 'javax.faces.application.ApplicationFactory' was not configured properly.
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:330)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:435)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: javax.faces.FacesException: org.apache.webbeans.jsf.OwbApplicationFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:710)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:572)
at javax.faces.FactoryFinder.access$500(FactoryFinder.java:140)
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1120)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)
... 16 more
Caused by: com.sun.faces.spi.InjectionProviderException: org.apache.webbeans.exception.WebBeansConfigurationException: No constructor is found for the class : org.apache.webbeans.jsf.OwbApplicationFactory
at org.apache.tomee.mojarra.TomEEInjectionProvider.inject(TomEEInjectionProvider.java:41)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:695)
... 21 more
Caused by: org.apache.webbeans.exception.WebBeansConfigurationException: No constructor is found for the class : org.apache.webbeans.jsf.OwbApplicationFactory
at org.apache.webbeans.util.WebBeansUtil.defineConstructor(WebBeansUtil.java:489)
at org.apache.webbeans.util.WebBeansUtil.defineConstructor(WebBeansUtil.java:457)
at org.apache.openejb.cdi.ConstructorInjectionBean.<init>(ConstructorInjectionBean.java:47)
at org.apache.openejb.core.WebContext.inject(WebContext.java:151)
at org.apache.tomee.catalina.JavaeeInstanceManager.inject(JavaeeInstanceManager.java:84)
at org.apache.tomee.mojarra.TomEEInjectionProvider.inject(TomEEInjectionProvider.java:39)
... 22 more
Sep 25, 2013 7:18:09 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Sep 25, 2013 7:18:09 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/glue] startup failed due to previous errors
Sep 25, 2013 7:18:09 PM javax.faces.FactoryFinder$FactoryManager getFactory
SEVERE: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
Sep 25, 2013 7:18:09 PM com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1135)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:140)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:310)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4837)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5483)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Sep 25, 2013 7:18:09 PM org.apache.openejb.assembler.classic.Assembler destroyApplication
...and then my application is immediately undeployed from the container. Note that I don't have any problem when I start TomEE from Eclipse, and my webapp just works fine.
Here is my POM:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>foo-webapp</artifactId>
<packaging>war</packaging>
<parent>
<groupId>com.foo</groupId>
<artifactId>foo-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<build>
<finalName>foo</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
<tomeeVersion>1.5.2</tomeeVersion>
<tomeeClassifier>webprofile</tomeeClassifier>
<config>${project.basedir}/src/main/webapp/META-INF/conf</config>
<libs>
<lib>mysql:mysql-connector-java:${mysql.version}</lib>
</libs>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<jersey.version>1.17</jersey.version>
<mysql.version>5.1.26</mysql.version>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.foo</groupId>
<artifactId>foo-data-model</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.13</version>
</dependency>
<!-- RESTful Web Services -->
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>${jersey.version}</version>
</dependency>
<!-- JSON support -->
<!-- Use GsonMessageBodyHandler instead -->
<!-- <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-json</artifactId>
<version>${jersey.version}</version> </dependency> -->
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
<version>${jersey.version}</version>
</dependency>
</dependencies>
</project>
I don't actually use CDI yet, and my beans.xml is empty under the WEB-INF/ directory:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" />
So, am I missing something somewhere?
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Wanting to see if some other examples work, I have deployed/added to Tomee
one simple exercise that is of Dynamic Web Project type ( this one
<http://ge.tt/11QTPOt/v/0> ), and this example works fine. It's simple
example that demonstrates adding cookies to response headers, just simple
servlet that handles http requests (from html form) and generates
appropriate html content as response.
At least I know that TomEE is handling servlets properly, I guess this is
shortening list of possible problems.
(I really appreciate your help)
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665356.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> tomee-admin is the needed role so:
> <role rolename="tomee-admin" />
>
> <user username="wlad" password="123" roles="tomee-admin,manager-gui" />
> would work
Thanks a lot.
Good to know I can see JNDI names of deployed beans.
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665379.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
tomee-admin is the needed role so:
<role rolename="tomee-admin" />
<user username="wlad" password="123" roles="tomee-admin,manager-gui" />
would work
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/30 wlad <vv...@yahoo.com>
> Romain Manni-Bucau wrote
> > Did you sign in?
> >
> > depending the version you can need to activate tomee user in
> > tomcat-users.xml -folder conf of tomee)
>
> Thanks for these tips, it is explained in "tomcat-users.xml" how to
> register
> a user, but I need advice.
> This is sample (wrapped in comments) user from "tomcat-users.xml":
>
>
> <role rolename="tomcat"/>
> <role rolename="role1"/>
> <user username="tomcat" password="tomcat" roles="tomcat"/>
> <user username="both" password="tomcat" roles="tomcat,role1"/>
> <user username="role1" password="tomcat" roles="role1"/>
>
> Activate those lines to get access to TomEE GUI
>
> <role rolename="tomee-admin" />
> <user username="tomee" password="tomee" roles="tomee-admin,manager-gui"
> />
>
> Now, I'm not sure about role tags. What should I put there? Lets say, that
> my username is "wlad" and password is "123", how can I register as user?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665374.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> Did you sign in?
>
> depending the version you can need to activate tomee user in
> tomcat-users.xml -folder conf of tomee)
Thanks for these tips, it is explained in "tomcat-users.xml" how to register
a user, but I need advice.
This is sample (wrapped in comments) user from "tomcat-users.xml":
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
Activate those lines to get access to TomEE GUI
<role rolename="tomee-admin" />
<user username="tomee" password="tomee" roles="tomee-admin,manager-gui" />
Now, I'm not sure about role tags. What should I put there? Lets say, that
my username is "wlad" and password is "123", how can I register as user?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665374.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Did you sign in?
depending the version you can need to activate tomee user in
tomcat-users.xml -folder conf of tomee)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/30 wlad <vv...@yahoo.com>
> Romain Manni-Bucau wrote
> > did you try http://localhost:8080/tomee/?
>
> Yes, I did, and I am getting just blank white page with black header at the
> top of the page. Header that has caption (links) "Apache TomEE" and "Home"
> on the left corner, and "Sign In" link on the right corner.
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665370.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> did you try http://localhost:8080/tomee/?
Yes, I did, and I am getting just blank white page with black header at the
top of the page. Header that has caption (links) "Apache TomEE" and "Home"
on the left corner, and "Sign In" link on the right corner.
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665370.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
did you try http://localhost:8080/tomee/?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/30 wlad <vv...@yahoo.com>
> I have finally(!!!) made this example run.
> Server wasn't deploying jars from its webapps folder because in server
> settings, selected option was "Use workspace metadata (does not modify
> Tomcat installation)". After selecting option "Use Tomcat installation
> (takes control of Tomcat installation)" this project is being deployed on
> server startup. Also, now I can see log messages in Console window about
> deploying this project, and registering EJB components from deployed jar.
> This video <http://www.youtube.com/watch?v=xmcajUixCaw> helped me a lot.
>
> About TomEE and OpenEJB integration:
> The guy from the video, says that he has downloaded and added openejb.jar
> file to tomee/webapps folder. And then he goes to localhost:8080/openejb
> (OpenEJB and Tomcat integration page), which is I suppose openejb webapp. I
> like the option JNDI Browser he uses.
>
> I thought that OpenEJB is EJB container that comes prebundled with TomEE.
> Do
> I need to download OpenEJB jar, and put it to TomEE/webapps folder? I'm not
> quite sure now is it usual when setting TomEE server, that OpenEJB should
> be
> downloaded separately and added to tomee/webapps folder?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665367.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
I have finally(!!!) made this example run.
Server wasn't deploying jars from its webapps folder because in server
settings, selected option was "Use workspace metadata (does not modify
Tomcat installation)". After selecting option "Use Tomcat installation
(takes control of Tomcat installation)" this project is being deployed on
server startup. Also, now I can see log messages in Console window about
deploying this project, and registering EJB components from deployed jar.
This video <http://www.youtube.com/watch?v=xmcajUixCaw> helped me a lot.
About TomEE and OpenEJB integration:
The guy from the video, says that he has downloaded and added openejb.jar
file to tomee/webapps folder. And then he goes to localhost:8080/openejb
(OpenEJB and Tomcat integration page), which is I suppose openejb webapp. I
like the option JNDI Browser he uses.
I thought that OpenEJB is EJB container that comes prebundled with TomEE. Do
I need to download OpenEJB jar, and put it to TomEE/webapps folder? I'm not
quite sure now is it usual when setting TomEE server, that OpenEJB should be
downloaded separately and added to tomee/webapps folder?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665367.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi put jars in tomee/apps (folder to create) and wars in tomee/webapps
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/29 wlad <vv...@yahoo.com>
> Romain Manni-Bucau wrote
> > To compile versions can be different but not at runtime.
>
> Hi
> I have copied "openejb-client-4.5.2.jar" from tomee's lib folder and put it
> in runtime-libs folder of my project so it uses same version. Still same.
> I can see that in apache-tomee-webprofile-1.5.2/webapps folder is
> Vezbe03.jar file, so app is being deployed on server.
>
> Question:
>
> 1. Do i need to have environment variables, (probably in bash.bashrc) like
> are JAVA_HOME, ANT_HOME or TOMEE_HOME exported to PATH?
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665355.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> To compile versions can be different but not at runtime.
Hi
I have copied "openejb-client-4.5.2.jar" from tomee's lib folder and put it
in runtime-libs folder of my project so it uses same version. Still same.
I can see that in apache-tomee-webprofile-1.5.2/webapps folder is
Vezbe03.jar file, so app is being deployed on server.
Question:
1. Do i need to have environment variables, (probably in bash.bashrc) like
are JAVA_HOME, ANT_HOME or TOMEE_HOME exported to PATH?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665355.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> Maybe start from an empty/clean environment.
Yes, it sounds like only solution.
I will remove current Eclipse IDE, and install fresh one, and try everything
from beginning.
I will post the results here.
Thanks for help.
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665332.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
To compile versions can be different but not at runtime.
Le 29 sept. 2013 08:18, "wlad" <vv...@yahoo.com> a écrit :
> Romain Manni-Bucau wrote
> > Im pretty sure you have an environment issues since we use since the
> first
> > release of tomee ejbd to be certified. Maybe start from an empty/clean
> > environment.
>
> OK, I have unistalled Eclipse IDE I had (Indigo version), and installed
> newest Eclipse IDE for Java EE Developers (Kepler). Tried same example and
> getting same error.
>
> I'm not really experienced with Eclipse and have limited understanding of
> using and including libraries in eclipse project. I see there are
> compile-libs, runtime-libs and JRE System Library folder (that contains
> many
> other jars), but I don't really know which libs serve what purposes.
> We know that this example is valid. But it is probably coded on different
> eclipse version than mine, use different versions of some of jar libraries
> and probably tested with different version of tomcat server. Maybe even on
> different version of java runtime environment.
>
> I am using java version "1.7.0_25", OpenJDK Runtime Environment, Eclipse
> IDE -version: Kepler Service Release 1, and apache-tomee-webprofile-1.5.2.
>
> Now, about different jar versions:
> I can see that under projects compile-libs folder is
> "javaee-api-6.0-4-tomcat.jar", and in the lib folder of mine tomee server
> is
> "javaee-api-6.0-5-tomcat.jar" (not the same version).
> Also, under projects runtime-libs folder is "openejb-client-4.5.0.jar" and
> in tomme's lib folder is "openejb-client-4.5.2.jar" (again different
> version).
>
> My question is: Do libraries included in imported eclipse project have to
> be
> same as those in the installed tomee/lib folder? Could that be the cause of
> EJB deploying and JNDI lookup issues?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665349.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> Im pretty sure you have an environment issues since we use since the first
> release of tomee ejbd to be certified. Maybe start from an empty/clean
> environment.
OK, I have unistalled Eclipse IDE I had (Indigo version), and installed
newest Eclipse IDE for Java EE Developers (Kepler). Tried same example and
getting same error.
I'm not really experienced with Eclipse and have limited understanding of
using and including libraries in eclipse project. I see there are
compile-libs, runtime-libs and JRE System Library folder (that contains many
other jars), but I don't really know which libs serve what purposes.
We know that this example is valid. But it is probably coded on different
eclipse version than mine, use different versions of some of jar libraries
and probably tested with different version of tomcat server. Maybe even on
different version of java runtime environment.
I am using java version "1.7.0_25", OpenJDK Runtime Environment, Eclipse
IDE -version: Kepler Service Release 1, and apache-tomee-webprofile-1.5.2.
Now, about different jar versions:
I can see that under projects compile-libs folder is
"javaee-api-6.0-4-tomcat.jar", and in the lib folder of mine tomee server is
"javaee-api-6.0-5-tomcat.jar" (not the same version).
Also, under projects runtime-libs folder is "openejb-client-4.5.0.jar" and
in tomme's lib folder is "openejb-client-4.5.2.jar" (again different
version).
My question is: Do libraries included in imported eclipse project have to be
same as those in the installed tomee/lib folder? Could that be the cause of
EJB deploying and JNDI lookup issues?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665349.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Im pretty sure you have an environment issues since we use since the first
release of tomee ejbd to be certified. Maybe start from an empty/clean
environment.
Le 27 sept. 2013 18:35, "wlad" <vv...@yahoo.com> a écrit :
> This is what I've just tried(update from openejb-client-4.5.0 to
> openejb-client-4.5.2):
>
> - copy ...tomee-1.5.2/lib/openejb-client-4.5.2.jar
> - paste in runtime-libs folder of my example
> - removed openejb-client-4.5.0.jar that was there
>
> Eclipse recognized openejb-client-4.5.2.jar under runtime-libs.
> But now I'm getting error:
>
> Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
> runClient1:
> [java] javax.naming.NoInitialContextException: Cannot instantiate
> class: org.apache.openejb.client.RemoteInitialContextFactory [Root
> exception
> is java.lang.ClassNotFoundException:
> org.apache.openejb.client.RemoteInitialContextFactory]
> [java] at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
> [java] at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
> [java] at
> javax.naming.InitialContext.init(InitialContext.java:242)
> [java] at
> javax.naming.InitialContext.<init>(InitialContext.java:216)
> [java] at
>
> rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
> Source)
> [java] Caused by: java.lang.ClassNotFoundException:
> org.apache.openejb.client.RemoteInitialContextFactory
> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> [java] at java.security.AccessController.doPrivileged(Native
> Method)
> [java] at
> java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> [java] at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> [java] at java.lang.Class.forName0(Native Method)
> [java] at java.lang.Class.forName(Class.java:270)
> [java] at
> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:63)
> [java] at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
> [java] ... 4 more
> BUILD SUCCESSFUL
> Total time: 1 second
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665330.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
This is what I've just tried(update from openejb-client-4.5.0 to
openejb-client-4.5.2):
- copy ...tomee-1.5.2/lib/openejb-client-4.5.2.jar
- paste in runtime-libs folder of my example
- removed openejb-client-4.5.0.jar that was there
Eclipse recognized openejb-client-4.5.2.jar under runtime-libs.
But now I'm getting error:
Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
runClient1:
[java] javax.naming.NoInitialContextException: Cannot instantiate
class: org.apache.openejb.client.RemoteInitialContextFactory [Root exception
is java.lang.ClassNotFoundException:
org.apache.openejb.client.RemoteInitialContextFactory]
[java] at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
[java] at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
[java] at javax.naming.InitialContext.init(InitialContext.java:242)
[java] at javax.naming.InitialContext.<init>(InitialContext.java:216)
[java] at
rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
Source)
[java] Caused by: java.lang.ClassNotFoundException:
org.apache.openejb.client.RemoteInitialContextFactory
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:270)
[java] at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:63)
[java] at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
[java] ... 4 more
BUILD SUCCESSFUL
Total time: 1 second
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665330.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> Your script was referring 1.5.2, are you sure you updated it to use 1.5.0
I am using tomee 1.5.2.
I have only tried to run this example with 1.5.0, but didn't help, so I've
switched back to 1.5.2.
Romain Manni-Bucau wrote
> (or update openejb-client to 4.5.2)?
(May sound dumb but I'm new to these things)
How should I update openejb-client to 4.5.2?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665329.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Your script was referring 1.5.2, are you sure you updated it to use 1.5.0
(or update openejb-client to 4.5.2)?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/27 wlad <vv...@yahoo.com>
> You made it, nice to see it running.
> I'm still struggling with it, still getting error:
>
> Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
> runClient1:
> [java] Sep 27, 2013 4:34:26 PM org.apache.openejb.client.EventLogger
> log
> [java] INFO:
> RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
> [java] javax.naming.NameNotFoundException: /HelloBeanRemote does not
> exist in the system. Check that the app was successfully deployed.
> [java] at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:281)
> [java] at
> javax.naming.InitialContext.lookup(InitialContext.java:411)
> [java] at
>
> rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
> Source)
> BUILD SUCCESSFUL
> Total time: 1 second
>
>
> Its becoming frustrating.
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665324.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
You made it, nice to see it running.
I'm still struggling with it, still getting error:
Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
runClient1:
[java] Sep 27, 2013 4:34:26 PM org.apache.openejb.client.EventLogger
log
[java] INFO:
RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
[java] javax.naming.NameNotFoundException: /HelloBeanRemote does not
exist in the system. Check that the app was successfully deployed.
[java] at
org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:281)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:411)
[java] at
rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
Source)
BUILD SUCCESSFUL
Total time: 1 second
Its becoming frustrating.
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665324.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
tested on trunk (I don't have 1.5 anymore locally and not the time to setup
it through ant):
┌( rmannibucau @ ubuntu )─( 1.7.0_40 -:- 3.1.0 )
└( /tmp/Vezbe03 )·> ant runClient1
Buildfile: /tmp/Vezbe03/build.xml
runClient1:
[java] Sep 27, 2013 3:45:02 PM org.apache.openejb.client.EventLogger
log
[java] INFO: RemoteInitialContextCreated{providerUri=
http://127.0.0.1:8080/tomee/ejb}
[java] Response: Hello, Pera
BUILD SUCCESSFUL
Total time: 1 second
┌( rmannibucau @ ubuntu )─( 1.7.0_40 -:- 3.1.0 )
└( /tmp/Vezbe03 )·> ant runClient2
Buildfile: /tmp/Vezbe03/build.xml
runClient2:
[java] Sep 27, 2013 3:45:05 PM org.apache.openejb.client.EventLogger
log
[java] INFO: RemoteInitialContextCreated{providerUri=
http://127.0.0.1:8080/tomee/ejb}
[java] Response: Hello, Pera
BUILD SUCCESSFUL
Total time: 1 second
┌( rmannibucau @ ubuntu )─( 1.7.0_40 -:- 3.1.0 )
└( /tmp/Vezbe03 )·> ant runClient3
Buildfile: /tmp/Vezbe03/build.xml
runClient3:
[java] Thread Thread2 started.
[java] Thread Thread1 started.
[java] Thread Thread3 started.
[java] Sep 27, 2013 3:45:08 PM org.apache.openejb.client.EventLogger
log
[java] INFO: RemoteInitialContextCreated{providerUri=
http://127.0.0.1:8080/tomee/ejb}
[java] Thread Thread1 created EJB component.
[java] Thread Thread3 created EJB component.
[java] Thread Thread2 created EJB component.
[java] Thread Thread3 executed remote method (count: 1).
[java] Thread Thread1 executed remote method (count: 1).
[java] Thread Thread2 executed remote method (count: 1).
[java] Thread Thread2 executed remote method (count: 2).
[java] Thread Thread1 executed remote method (count: 2).
[java] Thread Thread3 executed remote method (count: 2).
[java] Thread Thread2 executed remote method (count: 3).
[java] Thread Thread3 executed remote method (count: 3).
[java] Thread Thread1 executed remote method (count: 3).
[java] Thread Thread2 executed remote method (count: 4).
[java] Thread Thread1 executed remote method (count: 4).
[java] Thread Thread2 executed remote method (count: 5).
[java] Thread Thread1 executed remote method (count: 5).
[java] Thread Thread3 executed remote method (count: 4).
[java] Thread Thread3 executed remote method (count: 5).
[java] Thread Thread1 removed EJB component.
[java] Thread Thread1 stopped.
[java] Thread Thread2 removed EJB component.
[java] Thread Thread2 stopped.
[java] Thread Thread3 removed EJB component.
[java] Thread Thread3 stopped.
BUILD SUCCESSFUL
Total time: 1 second
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/27 wlad <vv...@yahoo.com>
> I did use tomee 1.5.2 at first, but then when you mentioned version
> aligning
> I tried with 1.5.0, but nothing.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665320.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
I did use tomee 1.5.2 at first, but then when you mentioned version aligning
I tried with 1.5.0, but nothing.
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665320.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
i thought you used tomee 1.5.2
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/27 wlad <vv...@yahoo.com>
> Romain Manni-Bucau wrote
> > the client version is different from the server one it seems. Please
> align
> > it
>
> I have downloaded another Tomcat/EE version: "apache-tomee-plus-1.5.0" and
> set it up with Eclipse. But still, I am not able to run this example. Log
> message I am getting now is:
>
> Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
> runClient1:
> [java] Sep 27, 2013 3:09:30 PM org.apache.openejb.client.EventLogger
> log
> [java] INFO:
> RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
> [java] javax.naming.NameNotFoundException: /HelloBeanRemote does not
> exist in the system. Check that the app was successfully deployed.
> [java] at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:281)
> [java] at
> javax.naming.InitialContext.lookup(InitialContext.java:411)
> [java] at
>
> rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
> Source)
> BUILD SUCCESSFUL
> Total time: 1 second
>
> I am not sure what you mean by aligning client and server versions? I
> assume
> that server version is version of Tomcat/EE I use(at the moment
> apache-tomee-plus-1.5.0), but what do you mean by client version, and how
> can I align these versions?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665318.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> the client version is different from the server one it seems. Please align
> it
I have downloaded another Tomcat/EE version: "apache-tomee-plus-1.5.0" and
set it up with Eclipse. But still, I am not able to run this example. Log
message I am getting now is:
Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
runClient1:
[java] Sep 27, 2013 3:09:30 PM org.apache.openejb.client.EventLogger
log
[java] INFO:
RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
[java] javax.naming.NameNotFoundException: /HelloBeanRemote does not
exist in the system. Check that the app was successfully deployed.
[java] at
org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:281)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:411)
[java] at
rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
Source)
BUILD SUCCESSFUL
Total time: 1 second
I am not sure what you mean by aligning client and server versions? I assume
that server version is version of Tomcat/EE I use(at the moment
apache-tomee-plus-1.5.0), but what do you mean by client version, and how
can I align these versions?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665318.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
the client version is different from the server one it seems. Please align
it
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/27 wlad <vv...@yahoo.com>
> Romain Manni-Bucau wrote
> > is your client using the same version as the server?
>
> It's a simple client, just plain "public static void main" method, that
> should demonstrate using of JNDI service for EJB bean lookup, and calling
> bean method.
>
> Here is the zipped eclipse project, so you can try to run it:
> http://ge.tt/9ucslAt/v/0
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665316.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> is your client using the same version as the server?
It's a simple client, just plain "public static void main" method, that
should demonstrate using of JNDI service for EJB bean lookup, and calling
bean method.
Here is the zipped eclipse project, so you can try to run it:
http://ge.tt/9ucslAt/v/0
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665316.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
HI
is your client using the same version as the server?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/9/27 wlad <vv...@yahoo.com>
> Romain Manni-Bucau wrote
> > Are you sure it is tomee which runs on port 8080?
>
> I have downloaded and set up "apache-tomee-webprofile-1.5.2" in Eclipse
> (setting done following this
> <
> http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html
> >
> tutorial, but using TomEE, not Tomcat7).
>
> In the server Runtime Environments setting, Tomcat Installation directory
> is
> set to "apache-tomee-webprofile-1.5.2" path. When I start server in Eclipse
> and got to http://localhost:8080/ it shows "Apache Tomcat (TomEE)/7.0.37"
> home page (with message If you're seeing this, you've successfully
> installed
> Tomcat. Congratulations!).
>
> These are messages from Console window during TomEE start:
>
> Sep 27, 2013 3:17:39 AM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
>
> /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/server:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-7-openjdk-i386/jre/../lib/i386:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
> Sep 27, 2013 3:17:40 AM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Sep 27, 2013 3:17:40 AM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
> INFO: Using
>
> 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
> Sep 27, 2013 3:17:41 AM org.apache.tomee.catalina.TomcatLoader
> optionalService
> INFO: Optional service not installed:
> org.apache.tomee.webservices.TomeeJaxRsService
> Sep 27, 2013 3:17:41 AM org.apache.tomee.catalina.TomcatLoader
> optionalService
> INFO: Optional service not installed:
> org.apache.tomee.webservices.TomeeJaxWsService
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO:
>
> ********************************************************************************
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: OpenEJB http://openejb.apache.org/
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Startup: Fri Sep 27 03:17:41 CEST 2013
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Copyright 1999-2012 (C) Apache OpenEJB Project, All Rights Reserved.
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Version: 4.5.2
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Build date: 20130320
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Build time: 03:56
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO:
>
> ********************************************************************************
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: openejb.home = /home/vladimir/javatools/apache-tomee-webprofile-1.5.2
> Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
> INFO: openejb.base =
>
> /home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
> Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
> INFO: Created new singletonService
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@17a5c01
> Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
> INFO: Succeeded in installing singleton service
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory init
> INFO: openejb configuration file is
>
> '/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/openejb.xml'
> Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
> INFO: Using 'openejb.provider.default=org.apache.tomee'
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=Tomcat Security Service, type=SecurityService,
> provider-id=Tomcat Security Service)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=Default Transaction Manager,
> type=TransactionManager, provider-id=Default Transaction Manager)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My DataSource, type=Resource,
> provider-id=Default JDBC Database)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Unmanaged DataSource, type=Resource,
> provider-id=Default JDBC Database)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Singleton Container, type=Container,
> provider-id=Default Singleton Container)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Stateful Container, type=Container,
> provider-id=Default Stateful Container)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Stateless Container, type=Container,
> provider-id=Default Stateless Container)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.DeploymentsResolver
> loadFrom
> WARNING: <Deployments dir="null"> - Does not exist:
>
> /home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/apps
> Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
> INFO: Using 'openejb.system.apps=true'
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
> configureApplication
> INFO: Configuring enterprise application: openejb
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Using openejb.deploymentId.format '{ejbName}'
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb openejb/User:
> EjbDeployment(deployment-id=openejb/User)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb openejb/Deployer:
> EjbDeployment(deployment-id=openejb/Deployer)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb openejb/ConfigurationInfo:
> EjbDeployment(deployment-id=openejb/ConfigurationInfo)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJB)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.config.AppInfoBuilder build
> INFO: Enterprise application "openejb" loaded.
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating TransactionManager(id=Default Transaction Manager)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating SecurityService(id=Tomcat Security Service)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Resource(id=My DataSource)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Resource(id=My Unmanaged DataSource)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=My Singleton Container)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=My Stateful Container)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.core.stateful.SimplePassivater
> init
> INFO: Using directory /tmp for stateful session passivation
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=My Stateless Container)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Assembling app: openejb
> Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
> INFO: Using
> 'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=openejb/UserBusinessRemote) -->
> Ejb(deployment-id=openejb/User)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
>
> Jndi(name=global/openejb/openejb/User!org.apache.openejb.assembler.util.User)
> --> Ejb(deployment-id=openejb/User)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/openejb/User) -->
> Ejb(deployment-id=openejb/User)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=openejb/DeployerBusinessRemote) -->
> Ejb(deployment-id=openejb/Deployer)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
>
> Jndi(name=global/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
> --> Ejb(deployment-id=openejb/Deployer)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/openejb/Deployer) -->
> Ejb(deployment-id=openejb/Deployer)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
> Ejb(deployment-id=openejb/ConfigurationInfo)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
>
> Jndi(name=global/openejb/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
> --> Ejb(deployment-id=openejb/ConfigurationInfo)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/openejb/ConfigurationInfo) -->
> Ejb(deployment-id=openejb/ConfigurationInfo)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/MEJB!javax.management.j2ee.ManagementHome)
> --> Ejb(deployment-id=MEJB)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/MEJB) --> Ejb(deployment-id=MEJB)
> Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.CdiBuilder initSingleton
> INFO: Existing thread singleton service in SystemInstance():
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@17a5c01
> Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container is starting...
> Sep 27, 2013 3:17:41 AM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> Sep 27, 2013 3:17:41 AM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.BeansDeployer
> validateInjectionPoints
> INFO: All injection points are validated successfully.
> Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container has started, it took 103 ms.
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Created Ejb(deployment-id=openejb/Deployer,
> ejb-name=openejb/Deployer,
> container=My Stateless Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
> Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Created Ejb(deployment-id=openejb/ConfigurationInfo,
> ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Created Ejb(deployment-id=openejb/User, ejb-name=openejb/User,
> container=My Stateless Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Started Ejb(deployment-id=openejb/Deployer,
> ejb-name=openejb/Deployer,
> container=My Stateless Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
> Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Started Ejb(deployment-id=openejb/ConfigurationInfo,
> ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> startEjbs
> INFO: Started Ejb(deployment-id=openejb/User, ejb-name=openejb/User,
> container=My Stateless Container)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> deployMBean
> INFO: Deployed
>
> MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Deployed Application(path=openejb)
> Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager
> start
> INFO: ** Bound Services **
> Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager
> printRow
> INFO: NAME IP PORT
> Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager
> start
> INFO: -------
> Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager
> start
> INFO: Ready!
> Sep 27, 2013 3:17:42 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 2763 ms
> Sep 27, 2013 3:17:42 AM
> org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
> INFO: Importing a Tomcat Resource with id 'UserDatabase' of type
> 'org.apache.catalina.UserDatabase'.
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Resource(id=UserDatabase)
> Sep 27, 2013 3:17:42 AM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Sep 27, 2013 3:17:42 AM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat (TomEE)/7.0.37
> Sep 27, 2013 3:17:42 AM org.apache.tomee.catalina.TomcatWebAppBuilder init
> INFO: ------------------------- localhost ->
> Sep 27, 2013 3:17:42 AM org.apache.openejb.config.ConfigurationFactory
> configureApplication
> INFO: Configuring enterprise application:
>
> /home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT
> Sep 27, 2013 3:17:42 AM org.apache.openejb.config.AppInfoBuilder build
> INFO: Enterprise application
>
> "/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT"
> loaded.
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Assembling app:
>
> /home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT
> Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.CdiBuilder initSingleton
> INFO: Existing thread singleton service in SystemInstance():
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@17a5c01
> Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container is starting...
> Sep 27, 2013 3:17:42 AM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> Sep 27, 2013 3:17:42 AM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.BeansDeployer
> validateInjectionPoints
> INFO: All injection points are validated successfully.
> Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container has started, it took 3 ms.
> Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Deployed
>
> Application(path=/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT)
> Sep 27, 2013 3:17:43 AM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["http-bio-8080"]
> Sep 27, 2013 3:17:43 AM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> Sep 27, 2013 3:17:43 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1256 ms
>
> ----------------------------------------------------------------------------------
>
> So, it should be installed properly, wright?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665309.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by wlad <vv...@yahoo.com>.
Romain Manni-Bucau wrote
> Are you sure it is tomee which runs on port 8080?
I have downloaded and set up "apache-tomee-webprofile-1.5.2" in Eclipse
(setting done following this
<http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html>
tutorial, but using TomEE, not Tomcat7).
In the server Runtime Environments setting, Tomcat Installation directory is
set to "apache-tomee-webprofile-1.5.2" path. When I start server in Eclipse
and got to http://localhost:8080/ it shows "Apache Tomcat (TomEE)/7.0.37"
home page (with message If you're seeing this, you've successfully installed
Tomcat. Congratulations!).
These are messages from Console window during TomEE start:
Sep 27, 2013 3:17:39 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/server:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-7-openjdk-i386/jre/../lib/i386:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
Sep 27, 2013 3:17:40 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Sep 27, 2013 3:17:40 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
INFO: Using
'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
Sep 27, 2013 3:17:41 AM org.apache.tomee.catalina.TomcatLoader
optionalService
INFO: Optional service not installed:
org.apache.tomee.webservices.TomeeJaxRsService
Sep 27, 2013 3:17:41 AM org.apache.tomee.catalina.TomcatLoader
optionalService
INFO: Optional service not installed:
org.apache.tomee.webservices.TomeeJaxWsService
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO:
********************************************************************************
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: OpenEJB http://openejb.apache.org/
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: Startup: Fri Sep 27 03:17:41 CEST 2013
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: Copyright 1999-2012 (C) Apache OpenEJB Project, All Rights Reserved.
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: Version: 4.5.2
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build date: 20130320
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build time: 03:56
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO:
********************************************************************************
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.home = /home/vladimir/javatools/apache-tomee-webprofile-1.5.2
Sep 27, 2013 3:17:41 AM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.base =
/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Created new singletonService
org.apache.openejb.cdi.ThreadSingletonServiceImpl@17a5c01
Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Succeeded in installing singleton service
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory init
INFO: openejb configuration file is
'/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/openejb.xml'
Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.provider.default=org.apache.tomee'
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Tomcat Security Service, type=SecurityService,
provider-id=Tomcat Security Service)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My DataSource, type=Resource,
provider-id=Default JDBC Database)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Unmanaged DataSource, type=Resource,
provider-id=Default JDBC Database)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Singleton Container, type=Container,
provider-id=Default Singleton Container)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Stateful Container, type=Container,
provider-id=Default Stateful Container)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Stateless Container, type=Container,
provider-id=Default Stateless Container)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.DeploymentsResolver
loadFrom
WARNING: <Deployments dir="null"> - Does not exist:
/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/apps
Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.system.apps=true'
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application: openejb
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Using openejb.deploymentId.format '{ejbName}'
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/User:
EjbDeployment(deployment-id=openejb/User)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/Deployer:
EjbDeployment(deployment-id=openejb/Deployer)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/ConfigurationInfo:
EjbDeployment(deployment-id=openejb/ConfigurationInfo)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJB)
Sep 27, 2013 3:17:41 AM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application "openejb" loaded.
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating TransactionManager(id=Default Transaction Manager)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating SecurityService(id=Tomcat Security Service)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=My DataSource)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=My Unmanaged DataSource)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Singleton Container)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Stateful Container)
Sep 27, 2013 3:17:41 AM org.apache.openejb.core.stateful.SimplePassivater
init
INFO: Using directory /tmp for stateful session passivation
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Stateless Container)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: openejb
Sep 27, 2013 3:17:41 AM org.apache.openejb.util.OptionsLog info
INFO: Using
'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/UserBusinessRemote) -->
Ejb(deployment-id=openejb/User)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/User!org.apache.openejb.assembler.util.User)
--> Ejb(deployment-id=openejb/User)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/User) -->
Ejb(deployment-id=openejb/User)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/DeployerBusinessRemote) -->
Ejb(deployment-id=openejb/Deployer)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
--> Ejb(deployment-id=openejb/Deployer)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/Deployer) -->
Ejb(deployment-id=openejb/Deployer)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
--> Ejb(deployment-id=openejb/ConfigurationInfo)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/ConfigurationInfo) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/MEJB!javax.management.j2ee.ManagementHome)
--> Ejb(deployment-id=MEJB)
Sep 27, 2013 3:17:41 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/MEJB) --> Ejb(deployment-id=MEJB)
Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance():
org.apache.openejb.cdi.ThreadSingletonServiceImpl@17a5c01
Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Sep 27, 2013 3:17:41 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Sep 27, 2013 3:17:41 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Sep 27, 2013 3:17:41 AM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 103 ms.
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Created Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
container=My Stateless Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Created Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Created Ejb(deployment-id=openejb/User, ejb-name=openejb/User,
container=My Stateless Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Started Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
container=My Stateless Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Started Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
startEjbs
INFO: Started Ejb(deployment-id=openejb/User, ejb-name=openejb/User,
container=My Stateless Container)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
deployMBean
INFO: Deployed
MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed Application(path=openejb)
Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager start
INFO: ** Bound Services **
Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager
printRow
INFO: NAME IP PORT
Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager start
INFO: -------
Sep 27, 2013 3:17:42 AM org.apache.openejb.server.SimpleServiceManager start
INFO: Ready!
Sep 27, 2013 3:17:42 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2763 ms
Sep 27, 2013 3:17:42 AM
org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
INFO: Importing a Tomcat Resource with id 'UserDatabase' of type
'org.apache.catalina.UserDatabase'.
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=UserDatabase)
Sep 27, 2013 3:17:42 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Sep 27, 2013 3:17:42 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat (TomEE)/7.0.37
Sep 27, 2013 3:17:42 AM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: ------------------------- localhost ->
Sep 27, 2013 3:17:42 AM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT
Sep 27, 2013 3:17:42 AM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT"
loaded.
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app:
/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT
Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance():
org.apache.openejb.cdi.ThreadSingletonServiceImpl@17a5c01
Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Sep 27, 2013 3:17:42 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Sep 27, 2013 3:17:42 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points are validated successfully.
Sep 27, 2013 3:17:42 AM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took 3 ms.
Sep 27, 2013 3:17:42 AM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=/home/vladimir/workspace/MBS-Vezbe/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT)
Sep 27, 2013 3:17:43 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Sep 27, 2013 3:17:43 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Sep 27, 2013 3:17:43 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1256 ms
----------------------------------------------------------------------------------
So, it should be installed properly, wright?
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665309.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI_LOOKUP error=Cannot open input stream to server
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Are you sure it is tomee which runs on port 8080?
Le 26 sept. 2013 22:45, "wlad" <vv...@yahoo.com> a écrit :
> I'm new to JEE. I use Eclipse IDE, OpenEJB as persistence provider, TomEE
> app
> server. TomEE runs fine with Eclipse (http://localhost:8080/).
>
> I have simple example (that is valid), but can't make it run. The log
> message I'm getting is:
>
> <Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
> runClient1:
> [java] Sep 26, 2013 9:51:50 PM org.apache.openejb.client.EventLogger
> log
> [java] INFO:
> RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
> [java] Sep 26, 2013 9:51:50 PM org.apache.openejb.client.EventLogger
> log
> [java] WARNING: RequestFailed{server=http://127.0.0.1:8080/tomee/ejb}
> JNDI_LOOKUPnull:/HelloBeanRemote {error=Cannot open input stream to server:
> }
> [java] Exception in thread "main"
> org.apache.openejb.client.ClientRuntimeException: Invalid response from
> server: -1
> [java] at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:297)
> [java] at
> javax.naming.InitialContext.lookup(InitialContext.java:411)
> [java] at
>
> rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
> Source)
> [java] Java Result: 1
> BUILD SUCCESSFUL
> Total time: 1 second
>
> jndi.properties file content:
>
>
> java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
> java.naming.provider.url=http://127.0.0.1:8080/tomee/ejb
>
> What could be cause of this error?
> Appreciate any help
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>