Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting Glassfish as an application server with MyEclipse

 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dears,

I am trying to start glassfish from myeclipse but i am getting below error

Error : Error opening zip file or JAR manifest missing : C:\Program Files\glassfish-3.1.1/lib/monitor/btrace-agent.jar
Error occurred during initialization of VM
agent library failed to init: instrument

also below are my configuration for glassfish inside the Myeclipse

Home Directory: C:\Program Files\glassfish-3.1.1
Configuration directory : C:\Program Files\glassfish-3.1.1\glassfish\config
Server name : server
Domain name : domain1
Domain Directory : C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1
Telnet ip : 127.0.0.1
Telnet port :6666
Telnet Maximum connection :1
Felix file install pool :5000

please advise me on this error.

 
Marcos Silvestri
Ranch Hand
Posts: 62
Chrome Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm familiar with neither Glassfish nor with MyEclipse. However, this path looks strange to me:

"C:\Program Files\glassfish-3.1.1/lib/monitor/btrace-agent.jar"

How can a path, on any operating system, contain both forward and back slashes?

Windows works only with "\", Linux and Mac OS X with "/".

That's all I can say for now...
 
Anthony Roberts
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think the mixed slashes are a problem. Java usually sorts that out.

Which version of MyEclipse are you using? All those telnet and felix parameters are unfamiliar to me.

When I installed glassfish it wanted to default the server name to "instance1". Did you change the default to "server"?
 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes its strange for me too but that is the error...
version of myeclipse is 9 and i did not change anything
 
Anthony Roberts
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you left the defaults when you installed glassfish? In that case, I'd expect a server name of "instance" (or "instance1", I can't quite remember). Does the C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\config folder have a subfolder of "server-config"?

Where did you get the Telnet and Felix server configuration parameters from, as they don't appear in my MyEclipse server connector preferences for glassfish?

Actually, the Home DIrectory looks wrong. Try going to the glassfish server connector preferences and changing that to C:\Program Files\glassfish-3.1.1\glassfish instead
 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i left the defaults and about subfolder server-config i should say no also i changed the home directory too but i got the same error...even i downloaded the mentioned jar file and copied into the below path but again got the same error.

path C:\Program Files\glassfish-3.1.1/lib/monitor/btrace-agent.jar

default values are as follows.

Home Directory:
Configuration directory :
Server name : server
Domain name :domain1
Domain Directory :
Telnet ip : 127.0.0.1
Telnet port :6666
Telnet Maximum connection :1
Felix file install pool :5000
 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dears i could start the glassfish through the myeclipse.
there are two option for setting the glassfish first one is GlassFish V3 Final which i was getting that crazy error and the second option is GlassFish V3 Prelude that i could set and start it.
it is starting on the Felix platform does anybody knows what is Felix and is it the correct way to use glassfish? i should mention that i deployed the project and it worked successfully.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic