Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Testing Java EE

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    25
    My Mood
    Fine
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Smile Testing Java EE

    hello !
    I created simple Java ee application using File >>New Project >> Java EE >>Enterprise Application in Netbeans 7.0 using Glassfish server 3.x but when i tried to run application I had this exception
    pre-init:
    init-private:
    init-userdir:
    init-user:
    init-project:
    do-init:
    post-init:
    init-check:
    init:
    deps-jar:
    deps-j2ee-archive:
    EnterTest-ejb.init:
    EnterTest-ejb.deps-jar:
    EnterTest-ejb.compile:
    EnterTest-ejb.library-inclusion-in-manifest:
    EnterTest-ejb.dist-ear:
    EnterTest-war.init:
    EnterTest-war.deps-module-jar:
    EnterTest-war.deps-ear-jar:
    EnterTest-ejb.init:
    EnterTest-ejb.deps-jar:
    EnterTest-ejb.compile:
    EnterTest-ejb.library-inclusion-in-manifest:
    EnterTest-ejb.dist-ear:
    EnterTest-war.deps-jar:
    EnterTest-war.library-inclusion-in-archive:
    EnterTest-war.library-inclusion-in-manifest:
    EnterTest-war.compile:
    EnterTest-war.compile-jsps:
    EnterTest-war.do-ear-dist:
    Building jar: C:\Users\user\EnterTest\EnterTest-war\dist\EnterTest-war.war
    EnterTest-war.dist-ear:
    pre-pre-compile:
    pre-compile:
    Copying 1 file to C:\Users\user\EnterTest\build
    do-compile:
    post-compile:
    compile:
    pre-dist:
    post-dist:
    dist-directory-deploy:
    pre-run-deploy:
    C:\Users\user\EnterTest\nbproject\build-impl.xml:284: 
    Deployment error:
    port out of range:453645456
    See the server log for details.
    	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:209)
    	at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    	at sun.reflect.GeneratedMethodAccessor438.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    	at org.apache.tools.ant.Task.perform(Task.java:348)
    	at org.apache.tools.ant.Target.execute(Target.java:390)
    	at org.apache.tools.ant.Target.performTasks(Target.java:411)
    	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
    	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
    	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
    Caused by: java.lang.IllegalArgumentException: port out of range:453645456
    	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
    	at org.netbeans.core.NbProxySelector.select(NbProxySelector.java:160)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:358)
    	at java.net.Socket.connect(Socket.java:519)
    	at org.netbeans.modules.glassfish.spi.Utils.isSecurePort(Utils.java:272)
    	at org.netbeans.modules.glassfish.spi.Utils.isSecurePort(Utils.java:264)
    	at org.netbeans.modules.glassfish.spi.Utils.getHttpListenerProtocol(Utils.java:229)
    	at org.netbeans.modules.glassfish.spi.Utils.getHttpListenerProtocol(Utils.java:215)
    	at org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager.constructServerUri(Hk2DeploymentManager.java:598)
    	at org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager.getTargets(Hk2DeploymentManager.java:531)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:558)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:516)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._retrieveTarget(ServerInstance.java:1808)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDebugger(ServerInstance.java:973)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isSuspended(ServerInstance.java:1022)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1346)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1210)
    	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:1087)
    	at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:512)
    	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:164)
    	... 16 more
    BUILD FAILED (total time: 0 seconds)

    thanks.


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: Testing Java EE

    netbeans "port out of range" - Google Search
    NetBeans Forums - NetBeans 6.5 stopped to work in Ubuntu 8.10

Similar Threads

  1. Testing whether a list of URLs are active or not in java?
    By aybeeryu in forum Java Networking
    Replies: 1
    Last Post: June 3rd, 2011, 09:17 AM
  2. Need Help on testing Code
    By indidude89 in forum Java Theory & Questions
    Replies: 2
    Last Post: May 9th, 2011, 12:53 PM
  3. testing Java jsp/servlets
    By cgodfrey in forum JavaServer Pages: JSP & JSTL
    Replies: 2
    Last Post: March 30th, 2011, 03:44 PM
  4. SMS Encryption Testing
    By ants_dj07 in forum Java ME (Mobile Edition)
    Replies: 5
    Last Post: March 27th, 2011, 11:14 AM
  5. Testing if dates are real or not.
    By cardsfan33 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 22nd, 2011, 07:46 PM