1 2 Previous Next 25 Replies Latest reply: Jun 12, 2012 5:42 AM by jaikiran pai RSS

    JBoss As 7 problem with jndi port

    Pedro Rocha Newbie

      I got a problem with jndi port on Windows Vista 64-Bit using JBoss 7.

      Using the command "netstat -na" the port 1099 doesn't appear and can not connect to it using the telnet.

      Is there any special configuration for this port run on JBoss AS 7?

      Because when I run the code below have the following error: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]

       

          private static final String JNDI_NAME_CALC = "java:global/primeiroejb-0.0.1-SNAPSHOT/SimpleCalculatorBean";
             
          @BeforeClass

          public static void obtainProxyReferences() throws Throwable
          {
         
           //configure appender eclipse
          BasicConfigurator.configure();

       

           Properties props = new Properties();
           props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
           props.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
           props.put(Context.PROVIDER_URL, "jnp://localhost:1099"); // HA-JNDI port.
          
           namingContext = new InitialContext(props);
            

             // Obtain EJB 3.1 Business Reference
             calc = (SimpleCalculatorBean) namingContext.lookup(JNDI_NAME_CALC);
          }

        • 1. Re: JBoss As 7 problem with jndi port
          Peter Johnson Master

          It looks like you are running a client app that is attempting to access JNDI on your local machine.

           

          How did you start the app server? (Full command line, please.)

           

          Is the app server running on your machine? If so, please post the console log for the app server.

          • 2. Re: JBoss As 7 problem with jndi port
            Olaf Flebbe Newbie

            I have exactly the same problem.

             

            Server for instance started bin/standalone.sh or bin/domain.sh.

             

            Deployed in standalone/deployments for standalone or with jboss-admin deploy --all-server-groups --force File.ear

             

            I do not see port 1099 open, connection refused

             

            In Web Console server:9990/console, socket binding group, jndi is announed to have port 1099

            • 3. Re: JBoss As 7 problem with jndi port
              Paulo Feal Newbie

              Hello,

               

              I have the same problem too. Its occurs when starts from console and from eclipse with jboss-tools.

               

              Is there solution about this? Is it possible that have add something to configuration files? Add extension? ...

               

              Thanks in advance

              • 4. Re: JBoss As 7 problem with jndi port
                Paulo Feal Newbie

                The error that is produced to execute line context.lookup("...") is the next:

                 

                 

                javax.naming.CommunicationException: Could not obtain connection to any of these urls: jnp://127.0.0.1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

                    at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1690)

                    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1761)

                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)

                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

                    at javax.naming.InitialContext.lookup(InitialContext.java:392)

                    at com.einsa.fenix.pruebas.jpa2.PruebaEJBCliente.ejecutar(PruebaEJBCliente.java:26)

                    at com.einsa.fenix.pruebas.jpa2.Main.main(Main.java:19)

                Caused by: java.net.SocketTimeoutException: Receive timed out

                    at java.net.PlainDatagramSocketImpl.receive0(Native Method)

                    at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)

                    at java.net.DatagramSocket.receive(DatagramSocket.java:725)

                    at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1659)

                    ... 6 more

                [Root exception is javax.naming.CommunicationException: Failed to connect to server /127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]]]

                    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1780)

                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)

                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

                    at javax.naming.InitialContext.lookup(InitialContext.java:392)

                    at com.einsa.fenix.pruebas.jpa2.PruebaEJBCliente.ejecutar(PruebaEJBCliente.java:26)

                    at com.einsa.fenix.pruebas.jpa2.Main.main(Main.java:19)

                Caused by: javax.naming.CommunicationException: Failed to connect to server /127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]]

                    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:337)

                    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1746)

                    ... 5 more

                Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server /127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]

                    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:307)

                    ... 6 more

                Caused by: java.net.ConnectException: Connection refused

                    at java.net.PlainSocketImpl.socketConnect(Native Method)

                    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

                    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

                    at java.net.Socket.connect(Socket.java:529)

                    at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)

                    at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)

                    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:303)

                    ... 6 more

                 

                 

                 

                 

                 

                 

                This is teh boot.log to run Jboss as 7:

                 

                12:14:11,696 INFO  [org.jboss.modules] JBoss Modules version 1.0.1.GA

                12:14:12,067 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

                12:14:12,125 INFO  [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting

                12:14:12,127 DEBUG [org.jboss.as.config] Configured system properties:

                    file.encoding = UTF-8

                    file.encoding.pkg = sun.io

                    file.separator = /

                    java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment

                    java.awt.printerjob = sun.print.PSPrinterJob

                    java.class.path = /opt/jboss-as-7.0.0.Final/jboss-modules.jar

                    java.class.version = 50.0

                    java.endorsed.dirs = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/endorsed

                    java.ext.dirs = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext:/usr/java/packages/lib/ext

                    java.home = /usr/lib/jvm/java-6-sun-1.6.0.20/jre

                    java.io.tmpdir = /tmp

                    java.library.path = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

                    java.runtime.name = Java(TM) SE Runtime Environment

                    java.runtime.version = 1.6.0_20-b02

                    java.specification.name = Java Platform API Specification

                    java.specification.vendor = Sun Microsystems Inc.

                    java.specification.version = 1.6

                    java.util.logging.manager = org.jboss.logmanager.LogManager

                    java.vendor = Sun Microsystems Inc.

                    java.vendor.url = http://java.sun.com/

                    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi

                    java.version = 1.6.0_20

                    java.vm.info = mixed mode

                    java.vm.name = Java HotSpot(TM) 64-Bit Server VM

                    java.vm.specification.name = Java Virtual Machine Specification

                    java.vm.specification.vendor = Sun Microsystems Inc.

                    java.vm.specification.version = 1.0

                    java.vm.vendor = Sun Microsystems Inc.

                    java.vm.version = 16.3-b01

                    javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory

                    javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory

                    javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory

                    javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory

                    javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory

                    javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory

                    javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory

                    javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory

                    javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory

                    jboss.home.dir = /opt/jboss-as-7.0.0.Final

                    jboss.host.name = pfeal

                    jboss.modules.dir = /opt/jboss-as-7.0.0.Final/modules

                    jboss.node.name = pfeal

                    jboss.qualified.host.name = pfeal

                    jboss.server.base.dir = /opt/jboss-as-7.0.0.Final/standalone

                    jboss.server.config.dir = /opt/jboss-as-7.0.0.Final/standalone/configuration

                    jboss.server.data.dir = /opt/jboss-as-7.0.0.Final/standalone/data

                    jboss.server.deploy.dir = /opt/jboss-as-7.0.0.Final/standalone/data/content

                    jboss.server.log.dir = /opt/jboss-as-7.0.0.Final/standalone/log

                    jboss.server.name = pfeal

                    jboss.server.temp.dir = /opt/jboss-as-7.0.0.Final/standalone/tmp

                    line.separator =

                 

                    logging.configuration = file:/opt/jboss-as-7.0.0.Final/standalone/configuration/logging.properties

                    module.path = /opt/jboss-as-7.0.0.Final/modules

                    org.jboss.boot.log.file = /opt/jboss-as-7.0.0.Final/standalone/log/boot.log

                    org.jboss.resolver.warning = true

                    org.xml.sax.driver = __redirected.__XMLReaderFactory

                    os.arch = amd64

                    os.name = Linux

                    os.version = 2.6.32-33-generic

                    path.separator = :

                    sun.arch.data.model = 64

                    sun.boot.class.path = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/classes

                    sun.boot.library.path = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64

                    sun.cpu.endian = little

                    sun.cpu.isalist =

                    sun.desktop = gnome

                    sun.io.unicode.encoding = UnicodeLittle

                    sun.java.launcher = SUN_STANDARD

                    sun.jnu.encoding = UTF-8

                    sun.management.compiler = HotSpot 64-Bit Server Compiler

                    sun.os.patch.level = unknown

                    sun.rmi.dgc.client.gcInterval = 3600000

                    sun.rmi.dgc.server.gcInterval = 3600000

                    user.country = ES

                    user.dir = /opt/jboss-as-7.0.0.Final/bin

                    user.home = /home/pfeal

                    user.language = es

                    user.name = pfeal

                    user.timezone = Europe/Madrid

                12:14:13,274 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990) securePort (-1)

                12:14:13,287 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

                 

                 

                File standalone.xml:

                 

                <?xml version='1.0' encoding='UTF-8'?>

                 

                <server name="localhost" xmlns="urn:jboss:domain:1.0">

                    <extensions>

                        <extension module="org.jboss.as.clustering.infinispan"/>

                        <extension module="org.jboss.as.connector"/>

                        <extension module="org.jboss.as.deployment-scanner"/>

                        <extension module="org.jboss.as.ee"/>

                        <extension module="org.jboss.as.ejb3"/>

                        <extension module="org.jboss.as.jaxrs"/>

                        <extension module="org.jboss.as.jmx"/>

                        <extension module="org.jboss.as.jpa"/>

                        <extension module="org.jboss.as.logging"/>

                        <extension module="org.jboss.as.naming"/>

                        <extension module="org.jboss.as.osgi"/>

                        <extension module="org.jboss.as.remoting"/>

                        <extension module="org.jboss.as.sar"/>

                        <extension module="org.jboss.as.security"/>

                        <extension module="org.jboss.as.threads"/>

                        <extension module="org.jboss.as.transactions"/>

                        <extension module="org.jboss.as.web"/>

                        <extension module="org.jboss.as.weld"/>

                    </extensions>

                    <management>

                        <security-realms>

                            <security-realm name="PropertiesMgmtSecurityRealm">

                                <authentication>

                                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>

                                </authentication>

                            </security-realm>

                        </security-realms>

                        <management-interfaces>

                            <native-interface interface="management" port="9999"/>

                            <http-interface interface="management" port="9990"/>

                        </management-interfaces>

                    </management>

                    <profile>

                        <subsystem xmlns="urn:jboss:domain:logging:1.0">

                            <console-handler name="CONSOLE" autoflush="true">

                                <level name="INFO"/>

                                <formatter>

                                    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                </formatter>

                            </console-handler>

                            <periodic-rotating-file-handler name="FILE" autoflush="true">

                                <level name="INFO"/>

                                <formatter>

                                    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                </formatter>

                                <file relative-to="jboss.server.log.dir" path="server.log"/>

                                <suffix value=".yyyy-MM-dd"/>

                            </periodic-rotating-file-handler>

                            <logger category="com.arjuna">

                                <level name="WARN"/>

                            </logger>

                            <logger category="org.apache.tomcat.util.modeler">

                                <level name="WARN"/>

                            </logger>

                            <logger category="sun.rmi">

                                <level name="WARN"/>

                            </logger>

                            <root-logger>

                                <level name="INFO"/>

                                <handlers>

                                    <handler name="CONSOLE"/>

                                    <handler name="FILE"/>

                                </handlers>

                            </root-logger>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:datasources:1.0">

                            <datasources>

                                <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="H2DS" enabled="true" jta="true" use-java-context="true" use-ccm="true">

                                    <connection-url>

                                        jdbc:h2:mem:test;DB_CLOSE_DELAY=-1

                                    </connection-url>

                                    <driver>

                                        h2

                                    </driver>

                                    <pool>

                                        <prefill>

                                            false

                                        </prefill>

                                        <use-strict-min>

                                            false

                                        </use-strict-min>

                                        <flush-strategy>

                                            FailingConnectionOnly

                                        </flush-strategy>

                                    </pool>

                                    <security>

                                        <user-name>

                                            sa

                                        </user-name>

                                        <password>

                                            sa

                                        </password>

                                    </security>

                                    <validation>

                                        <validate-on-match>

                                            false

                                        </validate-on-match>

                                        <background-validation>

                                            false

                                        </background-validation>

                                        <useFastFail>

                                            false

                                        </useFastFail>

                                    </validation>

                                </datasource>

                                <drivers>

                                    <driver name="h2" module="com.h2database.h2">

                                        <xa-datasource-class>

                                            org.h2.jdbcx.JdbcDataSource

                                        </xa-datasource-class>

                                    </driver>

                                </drivers>

                            </datasources>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">

                            <deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir" deployment-timeout="60"/>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:ee:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:ejb3:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:infinispan:1.0" default-cache-container="hibernate">

                            <cache-container name="hibernate" default-cache="local-query">

                                <local-cache name="entity">

                                    <eviction strategy="LRU" max-entries="10000"/>

                                    <expiration max-idle="100000"/>

                                </local-cache>

                                <local-cache name="local-query">

                                    <eviction strategy="LRU" max-entries="10000"/>

                                    <expiration max-idle="100000"/>

                                </local-cache>

                                <local-cache name="timestamps">

                                    <eviction strategy="NONE"/>

                                </local-cache>

                            </cache-container>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:jca:1.0">

                            <archive-validation enabled="false"/>

                            <bean-validation enabled="false"/>

                            <default-workmanager>

                                <short-running-threads blocking="true" allow-core-timeout="false">

                                    <core-threads count="10" per-cpu="20"/>

                                    <queue-length count="10" per-cpu="20"/>

                                    <max-threads count="10" per-cpu="20"/>

                                    <keepalive-time time="10" unit="SECONDS"/>

                                </short-running-threads>

                                <long-running-threads blocking="true" allow-core-timeout="false">

                                    <core-threads count="10" per-cpu="20"/>

                                    <queue-length count="10" per-cpu="20"/>

                                    <max-threads count="10" per-cpu="20"/>

                                    <keepalive-time time="10" unit="SECONDS"/>

                                </long-running-threads>

                            </default-workmanager>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:jmx:1.0">

                            <jmx-connector server-binding="jmx-connector-server" registry-binding="jmx-connector-registry"/>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:jpa:1.0">

                            <jpa default-datasource=""/>

                        </subsystem>

                       <subsystem xmlns="urn:jboss:domain:naming:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:osgi:1.0" activation="lazy">

                            <configuration pid="org.apache.felix.webconsole.internal.servlet.OsgiManager">

                                <property name="manager.root">

                                    jboss-osgi

                                </property>

                            </configuration>

                            <properties>

                                <property name="org.jboss.osgi.system.modules">

                                    org.apache.commons.logging,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.apache.log4j,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.as.osgi,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.slf4j,

                                </property>

                                <property name="org.osgi.framework.system.packages.extra">

                                    org.apache.commons.logging;version=1.1.1,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.apache.log4j;version=1.2,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.as.osgi.service;version=7.0,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.osgi.deployment.interceptor;version=1.0,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.osgi.spi.capability;version=1.0,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.osgi.spi.util;version=1.0,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.osgi.testing;version=1.0,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.jboss.osgi.vfs;version=1.0,

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                org.slf4j;version=1.5.10,

                                </property>

                                <property name="org.osgi.framework.startlevel.beginning">

                                    1

                                </property>

                            </properties>

                            <modules>

                                <module identifier="javaee.api"/>

                                <module identifier="org.jboss.logging"/>

                                <module identifier="org.apache.aries.util"/>

                                <module identifier="org.jboss.osgi.webconsole"/>

                                <module identifier="org.osgi.compendium"/>

                                <module identifier="org.apache.felix.log" startlevel="1"/>

                                <module identifier="org.jboss.osgi.logging" startlevel="1"/>

                                <module identifier="org.apache.felix.configadmin" startlevel="1"/>

                                <module identifier="org.jboss.as.osgi.configadmin" startlevel="1"/>

                                <module identifier="org.apache.aries.jmx" startlevel="2"/>

                                <module identifier="org.apache.felix.eventadmin" startlevel="2"/>

                                <module identifier="org.apache.felix.metatype" startlevel="2"/>

                                <module identifier="org.apache.felix.scr" startlevel="2"/>

                                <module identifier="org.apache.felix.webconsole" startlevel="2"/>

                                <module identifier="org.jboss.osgi.jmx" startlevel="2"/>

                                <module identifier="org.jboss.osgi.http" startlevel="2"/>

                                <module identifier="org.jboss.osgi.blueprint" startlevel="3"/>

                                <module identifier="org.jboss.osgi.webapp" startlevel="3"/>

                                <module identifier="org.jboss.osgi.xerces" startlevel="3"/>

                            </modules>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:remoting:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:sar:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:security:1.0">

                            <security-domains>

                                <security-domain name="other" cache-type="default">

                                    <authentication>

                                        <login-module code="UsersRoles" flag="required"/>

                                    </authentication>

                                </security-domain>

                            </security-domains>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:threads:1.0"/>

                        <subsystem xmlns="urn:jboss:domain:transactions:1.0">

                            <core-environment>

                                <process-id>

                                    <uuid/>

                                </process-id>

                            </core-environment>

                            <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

                            <coordinator-environment default-timeout="300"/>

                            <object-store/>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">

                            <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>

                            <virtual-server name="default-host" enable-welcome-root="true">

                                <alias name="localhost"/>

                                <alias name="example.com"/>

                            </virtual-server>

                        </subsystem>

                        <subsystem xmlns="urn:jboss:domain:weld:1.0"/>

                    </profile>

                    <interfaces>

                        <interface name="management">

                            <inet-address value="127.0.0.1"/>

                        </interface>

                        <interface name="public">

                            <any-address/>

                        </interface>

                    </interfaces>

                    <socket-binding-group name="standard-sockets" default-interface="public">

                        <socket-binding name="http" port="8080"/>

                        <socket-binding name="https" port="8443"/>

                        <socket-binding name="jmx-connector-registry" port="1090"/>

                        <socket-binding name="jmx-connector-server" port="1091"/>

                        <socket-binding name="jndi" port="1099"/>

                        <socket-binding name="osgi-http" port="8090"/>

                        <socket-binding name="remoting" port="4447"/>

                        <socket-binding name="txn-recovery-environment" port="4712"/>

                        <socket-binding name="txn-status-manager" port="4713"/>

                    </socket-binding-group>

                </server>

                 

                 

                Any idea?

                • 5. Re: JBoss As 7 problem with jndi port
                  Pedro Rocha Newbie

                  Peter,

                   

                  I'm using the app server in my computer with default configuration in standalone.xml.

                  When I start the server I'm using standalone.bat

                   

                  The strange thing is that the JNDI port 1099 works right on my machine with JBoss 5


                  Boot.log

                   

                  13:45:40,036 INFO  [org.jboss.modules] JBoss Modules version 1.0.1.GA

                  13:45:41,166 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

                  13:45:41,346 INFO  [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting

                  13:45:41,346 DEBUG [org.jboss.as.config] Configured system properties:

                      awt.toolkit = sun.awt.windows.WToolkit

                      file.encoding = Cp1252

                      file.encoding.pkg = sun.io

                      file.separator = \

                      java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment

                      java.awt.printerjob = sun.awt.windows.WPrinterJob

                      java.class.path = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\jboss-modules.jar

                      java.class.version = 50.0

                      java.endorsed.dirs = C:\Program Files\Java\jdk1.6.0_26\jre\lib\endorsed

                      java.ext.dirs = C:\Program Files\Java\jdk1.6.0_26\jre\lib\ext;C:\Windows\Sun\Java\lib\ext

                      java.home = C:\Program Files\Java\jdk1.6.0_26\jre

                      java.io.tmpdir = C:\Users\pedro\AppData\Local\Temp\

                      java.library.path = C:\Program Files\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Oracle\product\11.2.0\client_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PHP\;C:\Program Files (x86)\Borland\Delphi7\Bin;C:\Program Files (x86)\Borland\Delphi7\Projects\Bpl\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CyberLink\Power2Go\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;.;C:\Program Files\Java\jdk1.6.0_26;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.0.3\bin;C:\Program Files\JBoss\jboss-5.1.0.GA\bin;.

                      java.runtime.name = Java(TM) SE Runtime Environment

                      java.runtime.version = 1.6.0_26-b03

                      java.specification.name = Java Platform API Specification

                      java.specification.vendor = Sun Microsystems Inc.

                      java.specification.version = 1.6

                      java.util.logging.manager = org.jboss.logmanager.LogManager

                      java.vendor = Sun Microsystems Inc.

                      java.vendor.url = http://java.sun.com/

                      java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi

                      java.version = 1.6.0_26

                      java.vm.info = mixed mode

                      java.vm.name = Java HotSpot(TM) 64-Bit Server VM

                      java.vm.specification.name = Java Virtual Machine Specification

                      java.vm.specification.vendor = Sun Microsystems Inc.

                      java.vm.specification.version = 1.0

                      java.vm.vendor = Sun Microsystems Inc.

                      java.vm.version = 20.1-b02

                      javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory

                      javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory

                      javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory

                      javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory

                      javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory

                      javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory

                      javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory

                      javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory

                      javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory

                      jboss.home.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final

                      jboss.host.name = pedro-pc

                      jboss.modules.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\modules

                      jboss.modules.system.pkgs = org.jboss.byteman

                      jboss.node.name = pedro-pc

                      jboss.qualified.host.name = pedro-pc

                      jboss.server.base.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone

                      jboss.server.config.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\configuration

                      jboss.server.data.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\data

                      jboss.server.deploy.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\data\content

                      jboss.server.log.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\log

                      jboss.server.name = pedro-pc

                      jboss.server.temp.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\tmp

                      line.separator =

                   

                      logging.configuration = file:C:\Program Files\JBoss\jboss-as-web-7.0.0.Final/standalone/configuration/logging.properties

                      module.path = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\modules

                      org.jboss.boot.log.file = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\log\boot.log

                      org.jboss.resolver.warning = true

                      org.xml.sax.driver = __redirected.__XMLReaderFactory

                      os.arch = amd64

                      os.name = Windows Vista

                      os.version = 6.0

                      path.separator = ;

                      program.name = standalone.bat

                      sun.arch.data.model = 64

                      sun.boot.class.path = C:\Program Files\Java\jdk1.6.0_26\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\modules\jdk.boot.jar;C:\Program Files\Java\jdk1.6.0_26\jre\classes

                      sun.boot.library.path = C:\Program Files\Java\jdk1.6.0_26\jre\bin

                      sun.cpu.endian = little

                      sun.cpu.isalist = amd64

                      sun.desktop = windows

                      sun.io.unicode.encoding = UnicodeLittle

                      sun.java.command = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\jboss-modules.jar -mp C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\modules -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=C:\Program Files\JBoss\jboss-as-web-7.0.0.Final

                      sun.java.launcher = SUN_STANDARD

                      sun.jnu.encoding = Cp1252

                      sun.management.compiler = HotSpot 64-Bit Tiered Compilers

                      sun.os.patch.level = Service Pack 2

                      sun.rmi.dgc.client.gcInterval = 3600000

                      sun.rmi.dgc.server.gcInterval = 3600000

                      user.country = BR

                      user.dir = C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\bin

                      user.home = C:\Users\pedro

                      user.language = pt

                      user.name = pedro

                      user.timezone = GMT-03:00

                      user.variant =

                  13:45:44,726 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990) securePort (-1)

                  13:45:44,776 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

                  13:47:40,558 INFO  [org.jboss.as.logging] Restored bootstrap log handlers

                  13:47:40,628 INFO  [com.arjuna.ats.jbossatx] ARJUNA32018: Destroying TransactionManagerService

                  13:47:40,638 INFO  [com.arjuna.ats.jbossatx] ARJUNA32014: Stopping transaction recovery manager

                  13:47:40,648 INFO  [org.apache.catalina.core.StandardContext] Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started

                  13:47:40,668 INFO  [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" stopped in 143ms

                   

                   

                  Server.log

                   

                  13:45:44,836 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)

                  13:45:44,866 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.

                  13:45:45,266 INFO  [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem

                  13:45:45,306 INFO  [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem

                  13:45:45,356 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem

                  13:45:45,406 INFO  [org.jboss.as.naming] (MSC service thread 1-1) Starting Naming Service

                  13:45:45,436 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.0.Beta2

                  13:45:45,466 INFO  [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.0.Beta3

                  13:45:45,516 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.0.Beta3

                  13:45:46,326 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-1) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Oracle\product\11.2.0\client_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PHP\;C:\Program Files (x86)\Borland\Delphi7\Bin;C:\Program Files (x86)\Borland\Delphi7\Projects\Bpl\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CyberLink\Power2Go\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;.;C:\Program Files\Java\jdk1.6.0_26;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.0.3\bin;C:\Program Files\JBoss\jboss-5.1.0.GA\bin;.

                  13:45:46,416 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

                  13:45:46,416 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) Listening on /127.0.0.1:9999

                  13:45:46,766 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

                  13:45:46,976 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-3) Starting remote JMX connector

                  13:45:47,562 INFO  [org.jboss.as.connector] (MSC service thread 1-1) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.CR2)

                  13:45:47,652 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/ExampleDS]

                  13:45:48,692 INFO  [org.jboss.as.deployment] (MSC service thread 1-1) Started FileSystemDeploymentService for directory C:\Program Files\JBoss\jboss-as-web-7.0.0.Final\standalone\deployments

                  13:45:48,822 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 9646ms - Started 92 of 147 services (55 services are passive or on-demand)

                  • 6. Re: JBoss As 7 problem with jndi port
                    andy han Newbie

                    I test it on Windows 7 x64 and XP x86, Windows 2003 x86, port 1099 never opened.

                    Is it a big bug of JbossAS 7?

                    • 7. Re: JBoss As 7 problem with jndi port
                      jaikiran pai Master

                      Remote JNDI hasn't been implemented yet in AS7. That port isn't used anywhere (probably should just be removed from that xml).

                      • 8. Re: JBoss As 7 problem with jndi port
                        Paulo Feal Newbie

                        jaikiran pai escribió:

                         

                        Remote JNDI hasn't been implemented yet in AS7. That port isn't used anywhere (probably should just be removed from that xml).

                         

                        But I'm running ejb + client in the same server, this is "local", isn't it? I haven't interfaces. Is it necesary the InitialContext to call lookup method?

                         

                        This is my client:

                         

                        public class PruebaEJBCliente {

                         

                             // -> This is the code that produces a NullPointerException

                            @EJB(lookup="java:global/SeguridadEar/SeguridadFenix/SeguridadBean!com.einsa.fenix.seguridad.ejb.SeguridadBean")

                            private SeguridadBean seguridadBean;

                         

                            public void ejecutar() throws Exception

                            {

                         

                        // -> If uncomment this code, the same error like before users is produced.

                        //        Properties properties = new Properties();

                        //       

                        //        properties.put(Context.INITIAL_CONTEXT_FACTORY/*"java.naming.factory.initial"*/,"org.jnp.interfaces.NamingContextFactory");

                        //        properties.put(Context.URL_PKG_PREFIXES /*"java.naming.factory.url.pkgs"*/,"org.jboss.naming:org.jnp.interfaces");

                        //        properties.put(Context.PROVIDER_URL/*"java.naming.provider.url"*/, "jnp://127.0.0.1:1099");

                        //       

                        //        InitialContext ctx = new InitialContext(properties);

                         

                        //        SeguridadBean seguridadBean = (SeguridadBean) ctx.lookup("java:global/SeguridadEar/SeguridadFenix         

                                                                                        /SeguridadBean!com.einsa.fenix.seguridad.ejb.SeguridadBean");

                                seguridadBean.insertarUsuario("pruebaJPA2", "pruebaJPA2", "prueba", "prueba", "AC");           

                            }

                        }

                         

                        Is the client ok?

                         

                        Thanks in advance

                         

                        Sorry for my bad english xD.

                        • 9. Re: JBoss As 7 problem with jndi port
                          Jan Snelders Newbie

                          So is there another way of doing remote method invocation for EJBs in the meantime or will this just not work? Shouldn't AS7 have been labeled beta without JNDI?

                          • 10. Re: JBoss As 7 problem with jndi port
                            Darran Lofthouse Master

                            It is labeled Web Profile which means EJB3 lite which excludes remote EJB invocations.

                             

                            You could use the preview configuration and expose the EJB as a web service.

                            • 11. Re: JBoss As 7 problem with jndi port
                              Jan Snelders Newbie

                              I think that's not fully clear to a lot of users. I didn't download the version which is labeled "Web Profile" but the one labeled "Everything". Since the product has "Application Server" in it's name a lot of users (like me) automatically expect this to be a fully featured J2EE application server.

                               

                              I will just wait for the full J2EE 6 version (will this be 7.1?). Judging from this web profile version the JBoss 7 project looks very promising, great work!

                              • 12. Re: JBoss As 7 problem with jndi port
                                andy han Newbie

                                how to visit hornetQ jms queue using jndi lookup?

                                • 13. Re: JBoss As 7 problem with jndi port
                                  Kabir Khan Master

                                  Jan Snelders wrote:

                                   

                                  So is there another way of doing remote method invocation for EJBs in the meantime or will this just not work? Shouldn't AS7 have been labeled beta without JNDI?

                                  A hack is described here: http://community.jboss.org/wiki/RemoteEJBLookupAndInvocationInJBossAS700

                                  • 14. Re: JBoss As 7 problem with jndi port
                                    Paulo Feal Newbie

                                    Hello

                                     

                                    With EJB injection must work fine? This is, without do lookup. Like I wrote in my last post?

                                     

                                    Thanks in advance

                                    1 2 Previous Next