This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81403 - When starting 8.1 UR2 EE server, got "Java DB location is not set correctly" error
Summary: When starting 8.1 UR2 EE server, got "Java DB location is not set correctly" ...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-29 01:43 UTC by judytang
Modified: 2006-08-24 23:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
zip file for config directory under userdir (44.23 KB, application/octet-stream)
2006-08-01 02:16 UTC, liwang
Details
log file under userdir\var\log (88.36 KB, application/octet-stream)
2006-08-01 02:16 UTC, liwang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description judytang 2006-07-29 01:43:00 UTC
I am using 7/26 IDE dialy build with JDK 5.0, Appserver 8.1 UR2 build 11 on Win XP

When starting 8.1 UR2 EE server, got "Java DB location is not set correctly"
error, may be the DB location is different in 8.1 EE than in 8.2 EE.
Comment 1 judytang 2006-07-29 01:45:16 UTC
Also the 8.1 UR2 EE server could not be started which is reported in 80660.

I was albe to start the server using the CLI command.
Comment 2 _ ludo 2006-07-29 02:21:22 UTC
so 8.1 UR2 EE has Java DB now?
Comment 3 judytang 2006-07-29 02:34:38 UTC
8.1 UR2 EE still use pointbase. Following is the pointbase location.  I guess
the NB 5.5 plugin may need to put in the logic to look for different DB location
for different app server releases ? 

D:\AppServer Install\8.1 UR2 EE\pointbase>

D:\AppServer Install\8.2 EE\derby>
Comment 4 _ ludo 2006-07-29 17:21:53 UTC
need a test to check if derby is installed before starting it.
simple.
Testing now.
Comment 5 _ ludo 2006-07-30 22:39:41 UTC
Fixed
Checking in appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/StartSunServer.java;
/cvs/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/StartSunServer.java,v
 <--  StartSunServer.java
new revision: 1.4.4.6.2.14; previous revision: 1.4.4.6.2.13
done
Checking in appsrv/src/org/netbeans/modules/j2ee/sun/api/ServerLocationManager.java;
/cvs/serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/api/ServerLocationManager.java,v
 <--  ServerLocationManager.java
new revision: 1.1.6.3.2.4; previous revision: 1.1.6.3.2.3
done
Comment 6 liwang 2006-08-01 01:29:17 UTC
Tested 2006-07-31 daily build on Winxp. Add a 8.2EE server. Got the same error
message "The Java DB location is not set correctly" when start the server. The
server cannot be started. 

Reopen the issue
Comment 7 _ ludo 2006-08-01 01:43:35 UTC
"Which server" cannot start? Java DB?
Do you have a correct D:\AppServer Install\8.2 EE\derby> content?
Would be nice if you could attach a zip containing the netbeans userdirectory/config
or using tools->options->advance options button, check and attach all the values
for the node:
IDE configuration->server and...->Java DB database properties
It is possible that the build you are using did not get the change. Not sure,
but worth checking by attaching the ide log file as well.
Comment 8 liwang 2006-08-01 02:16:00 UTC
Created attachment 32390 [details]
zip file for config directory under userdir
Comment 9 liwang 2006-08-01 02:16:46 UTC
Created attachment 32391 [details]
log file under userdir\var\log
Comment 10 liwang 2006-08-01 02:21:30 UTC
I can start 8.2 EE domain from CLI. But 8.2 EE server cannot be started from
Netbeans. Derby is bundled with 8.2 EE installation and is under
<8.2EE_install_root>\derby. I can successfully start Derby database by call CLI
(asadmin start-database).
Comment 11 _ ludo 2006-08-01 02:31:16 UTC
I am confused with the attachments:
Did you clean up the user dir after nb installation?

I see a db driver using:
<url value="file:/C:/Program%20Files/sun/appserver8ee/derby/lib/derbyclient.jar"/>

But the registered server is under:
C:\Sun\AppServer >

Which server contains C:\Sun\AppServer?
Do you are 2 server nodes?
Comment 12 _ ludo 2006-08-01 02:32:31 UTC
Maybe you did import the settings from a previous installation of nb?
Comment 13 liwang 2006-08-01 17:38:52 UTC
Sorry I forgot to clean userdir between different installations. I'll try again
on another Win XP machine and provide config again.
Actually both DB and server failed to be started up. This is a OS specific
issue. Both Judy and I found it on Window XP. I tried yesterday on a Solaris 10
X86 machine. It worked fine.
Comment 14 liwang 2006-08-01 19:48:36 UTC
My fault of having messed up my environment by using the same userdir and
without clean it up between different installations. Reverse the status back
Comment 15 judytang 2006-08-24 23:06:56 UTC
8.1 EE server stated fine in 8/21 build.