my dog learned polymorphism*
The moose likes JSF and the fly likes Starting Glassfish as an application server with MyEclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Starting Glassfish as an application server with MyEclipse" Watch "Starting Glassfish as an application server with MyEclipse" New topic
Author

Starting Glassfish as an application server with MyEclipse

peter aerts
Ranch Hand

Joined: Jan 22, 2009
Posts: 32

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

Joined: Dec 06, 2009
Posts: 62

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...


DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
Anthony Roberts
Greenhorn

Joined: Aug 29, 2011
Posts: 14
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

Joined: Jan 22, 2009
Posts: 32

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

Joined: Aug 29, 2011
Posts: 14
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

Joined: Jan 22, 2009
Posts: 32

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

Joined: Jan 22, 2009
Posts: 32

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.


 
 
subject: Starting Glassfish as an application server with MyEclipse