Skip to main content

GlassFish V3 Prelude with NetBeans IDE 6.5 Cannot start

4 replies [Last post]
samfu
Offline
Joined: 2009-03-10

Hello.

I'm getting the error showed below when I try to start GlassFish V3 Prelude, Has anybody an idea why and how can I solve it?

Warning: Cannot open log file: C:\Program Files (x86)\glassfish-v3-prelude\glassfish\domains\domain1/logs/jvm.log
Warning: Forcing option -XX:LogFile=C:\Users\Papa\AppData\Local\Temp\\hs_pid3680.log
INFO: Launching GlassFish on Apache Felix OSGi platform
Welcome to Felix.
=================
ERROR: org.apache.felix.framework.cache.BundleCache: Unable to create directory: C:\Program Files (x86)\glassfish-v3-prelude\glassfish\domains\domain1\.felix\gf
INFO: Cannot create record of lastModified file
Error creating bundle cache:
java.lang.RuntimeException: Unable to create profile directory.
at org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:353)
at org.apache.felix.framework.cache.BundleCache.(BundleCache.java:95)
at org.apache.felix.framework.Felix.(Felix.java:248)
at org.apache.felix.framework.Felix.(Felix.java:125)
at org.apache.felix.main.Main.main(Main.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.glassfish.bootstrap.ASMainFelix$1.run(ASMainFelix.java:101)
at java.lang.Thread.run(Thread.java:619)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
samfu
Offline
Joined: 2009-03-10

Sahoo
it worked, what I did was unistall Glasshfish V3 from Contol Panel- Programs unistall and reinstall it choosing C:\glassfish-v3-prelude folder location for the server.

the weird thing is that I've appache too and using this location
C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.18

and I could started without issues-

thanks Sahoo

samfu
Offline
Joined: 2009-03-10

Thanks Sahoo

I think I cannot create a domain in other folder than where the server installation is, in that case I wonder what is the best way to remove the spaces by just renaming the folder, or unistall and reinstall the glassfish in a new one without spaces, I think that the last one is better but how can I do that?, could u tell me pls?

vbkraemer
Offline
Joined: 2003-09-03

Hi,

you may want to try the following...

Start to register a new v3 domain in NB.

enter the path to the server install on the second page of the wizard.

Click next.

The combo box on the third page (which probably says domain1) is editable.

Enter the name of a directory in this editable combo box....
like C:\a\b\c

This will create a 'personal domain' in that directory.

Are you running on Vista?

Vista is very picky about the day-to-day use of stuff in C:\Pogram Files... I think you can turn off this behavior...

vbk

Sahoo

As the message says it is failing to access

C:\Program Files (x86)\glassfish-v3-prelude\glassfish\domains\domain1

First of all, is that dir name looking OK to you? If yes, do you have
write permission to that dir? I suggest you use a directory with no
space char in the name and try.

Sahoo
glassfish@javadesktop.org wrote:
> Hello.
>
> I'm getting the error showed below when I try to start GlassFish V3 Prelude, Has anybody an idea why and how can I solve it?
>
> Warning: Cannot open log file: C:\Program Files (x86)\glassfish-v3-prelude\glassfish\domains\domain1/logs/jvm.log
> Warning: Forcing option -XX:LogFile=C:\Users\Papa\AppData\Local\Temp\\hs_pid3680.log
> INFO: Launching GlassFish on Apache Felix OSGi platform
> Welcome to Felix.
> =================
> ERROR: org.apache.felix.framework.cache.BundleCache: Unable to create directory: C:\Program Files (x86)\glassfish-v3-prelude\glassfish\domains\domain1\.felix\gf
> INFO: Cannot create record of lastModified file
> Error creating bundle cache:
> java.lang.RuntimeException: Unable to create profile directory.
> at org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:353)
> at org.apache.felix.framework.cache.BundleCache.(BundleCache.java:95)
> at org.apache.felix.framework.Felix.(Felix.java:248)
> at org.apache.felix.framework.Felix.(Felix.java:125)
> at org.apache.felix.main.Main.main(Main.java:235)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.sun.enterprise.glassfish.bootstrap.ASMainFelix$1.run(ASMainFelix.java:101)
> at java.lang.Thread.run(Thread.java:619)
> [Message sent by forum member 'samfu' (samfu)]
>
> http://forums.java.net/jive/thread.jspa?messageID=336089
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net