Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Glassfish 4 won't deploy project

2894392Feb 28 2015 — edited Mar 1 2015

Hello everyone,

first of all, let me tell you that i am a totally J2EE beginner.

I programmed JAVA SE for some years, now i have to learn J2EE.

1. i downloaded Eclipse Luna, the pre-configured J2EE-version. Java JDK 8 x64

2. downloaded and unzipped the Glassfish4 to "C:\glassfish4"

3. i added the "glassfish4 server adapter" to eclipse and connected the server with root-dir: C:\glassfish4\glassfish

4. creation of my first "hello-world" servlets and JSPs

--> Deply / "run-on-server" works great. i can use my projects in the browser

now i had to start a new project: java server faces.

so i startet a new "dynamic web project" in eclipse, added the JSF-Framework and created some *.xhtml-sites and java-classes.

but when i try to deplay the application, an "malformedUrlException: bad url path" occurs.

Header 1

java.net.MalformedURLException: Bad URL path: _W_921V_1_36_000:8686/jndi/rmi://Sunshine.Speedport_W_921V_1_36_000:8686/jmxrmi

  at javax.management.remote.JMXServiceURL.validate(Unknown Source)

  at javax.management.remote.JMXServiceURL.validate(Unknown Source)

  at javax.management.remote.JMXServiceURL.<init>(Unknown Source)

  at org.glassfish.admin.mbeanserver.RMIConnectorStarter.start(RMIConnectorStarter.java:306)

  at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.startConnector(JMXStartupService.java:313)

  at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.run(JMXStartupService.java:350)

well, i see whats the problem: a hostname with underscores is not valid.

BUT "speedport_w_912V" is my router... my PC is "sunshine" (no underscores)

why does this error occur?

i wonder what my router has to do with Glassfish...

the server runs on the same machine on which i'm programming... no need to call the server via router.

a command to "localhost" should not contact my router...

under glassfish 3.1 you could choose between these 2 installation-modes:

- create a new domain-configuration

- start a local instance

Isn't it possible to start GF4 as a local instance without the creation of a new domain?

when i call the "help" of "asadmin.bat", there is a command named "[create/start]-local-instance"

but i could not get it running...

i still wonder about the exception, caused by my router's invalid hostname..

could someone pls help me?

thanks a lot.

mac

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2015
Added on Feb 28 2015
0 comments
1,339 views