Java Error when trying to start server

Sorry…having issue trying to start server on my Mac OS X 10.11.1

In CommandBox, start --rewritesEnable results in an error

lucee.commons.cli.CommandException: objc[823]: Class JavaLaunchHelper is implemented in both /Users//Downloads/commandbox-jre-darwin64-2/jre/bin/java and /Users/*/Downloads/commandbox-jre-darwin64-2/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

at lucee.commons.cli.Command.execute(Command.java:69)

at lucee.runtime.tag._Execute._run(_Execute.java:81)

at lucee.runtime.tag._Execute.run(_Execute.java:72)

Class JavaLaunchHelper is implemented in both

Anyone can help???

Thanks in Advance

Can you tell me how you installed CommandBox and which version you installed?
Also, what version of Java do you have installed, or was this the JRE-included version of CommandBox?

Also note, we have a specific CommandBox google group as well:

https://groups.google.com/a/ortussolutions.com/forum/#!forum/commandbox

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad…The problem resolved itself after a reboot. I don’t know what it was that caused the issue but I now have a new one.

Using CommandBox I created a new Coldbox app, “my app” installed in “/Users/******/myapp” directory. When I start the server it starts fine but I get an error page:

Lucee 4.5.2.005 Error (expression)

invalid component definition, can’t find component [coldbox.system.Bootstrap]

The Error Occurred in

/Users/*******/myapp/Application.cfc: line 28
28: application.cbBootstrap = new coldbox.system.Bootstrap( COLDBOX_CONFIG_FILE, COLDBOX_APP_ROOT_PATH, COLDBOX_APP_KEY, COLDBOX_APP_MAPPING );

Any help is great…Thanks

Have you installed ColdBox?

install coldbox

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Yes, ColdBox was installed using CommandBox

‘coldbox create app myApp --installColdBox’

in my “myapp” directory all files and directories were installed

verified such using the ‘ls’ command

Is your myapp directory IN the web root, or is IT the web root? The error says that the coldbox framework can’t be found.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

the “myapp” is NOT in the web root it is the web root. The built in Lucee server that fired up when I started it in CommandBox while in the “myapp” directory doesn’t see “myapp” as the web root? Do I need to go into the admin of Lucee and map the directory?

Nope, that should work. If the coldbox folder is in your web root, Lucee should resolve the ColdBox CFCs just fine. The embedded CommandBox server works just like a ‘real’ sever, so you’ll need to troubleshoot why your CFC paths aren’t resolving.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad. I looked in the the app folder and there was no coldbox directory. I must have misread the install application instructions where it I thought it would install coldbox. I simply copied the directory over from the my applications folder and all worked properly. Thanks again.