-
1. Re: missing /lib directory in server/default confiog dir on
jaikiran Dec 6, 2008 5:29 AM (in response to wiggy)Since you mention you downloaded the "next AS5", i am assuming you are talking about JBoss-5 GA :)
In the GA version of JBoss-5, there have been changes in the folder structure, especially the lib folders. The lib folder under each server profile (default, all etc...) is now empty and all the jar files are now moved to a %JBOSS_HOME%/common/lib folder. This common/lib will act as a parent to all server/< serverName>/lib folders. If you want to add any jar for a specific server profile, then you can add it to the %JBOSS_HOME%/server/< serverName>/lib folder.
and it errors when run and wont start - primary reason seems to a missing /lib directory.
seems to be a problem in the jdk and non jdk downloads both
I have downloaded the GA and it works without any issues on my setup. So the folder refactoring should not be any issue. Which URL did you use to download the server? There are 2 versions of the AS - one specifically for JDK6 and the other for JDK5. Which one did you download and which JDK version are you using. See this related FAQ http://www.jboss.org/community/docs/DOC-12933
If none of this solves the issue, please post additional details including the Operating system, the Java version and the entire console logs including the exception stacktrace.
P.S: There is a dedicated forum for JBoss AS5 here http://www.jboss.com/index.html?module=bb&op=viewforum&f=287 -
2. Re: missing /lib directory in server/default confiog dir on
jaikiran Dec 6, 2008 5:53 AM (in response to wiggy)"jaikiran" wrote:
In the GA version of JBoss-5, there have been changes in the folder structure, especially the lib folders. The lib folder under each server profile (default, all etc...) is now empty and all the jar files are now moved to a %JBOSS_HOME%/common/lib folder. This common/lib will act as a parent to all server/< serverName>/lib folders. If you want to add any jar for a specific server profile, then you can add it to the %JBOSS_HOME%/server/< serverName>/lib folder.
This has now been added as a FAQ https://www.jboss.org/community/docs/DOC-10190
to the wiki https://www.jboss.org/community/docs/DOC-13188 -
3. Re: missing /lib directory in server/default confiog dir on
wiggy Dec 6, 2008 10:34 AM (in response to wiggy)first sorry for not being precise - yes i am refering the as5.0.0ga
thye problem i have is experienced on both AS downloads -
the one called jboss-5.0.0.GA-jdk6.zip, and the one called jboss-5.0.0.GA.zip
i normally fire things up on eclipse, however it fails from command line also. If i edit the config to not run default but use server instead it comes up okay - however i then seem to be having problems with my simple seam 2.1.1 code project which claims it cant see the org.hibernate.validator package. This was working fine under as5CR2 so i can only think it sthe library shift also.
my machine is running java jre1.6.0_07, under windows XP
running latest nightly build of jboss tools, with seam 2.1.1
heres the output from running from the command line in dos window
`
C:\jboss\jboss-5.0.0.GA\bin>dir
Volume in drive C is OS
Volume Serial Number is CCDF-658A
Directory of C:\jboss\jboss-5.0.0.GA\bin
06/12/2008 10:02 .
06/12/2008 10:02 ..
04/12/2008 21:21 3,535 classpath.sh
04/12/2008 21:22 78,361 jbosssvc.exe
04/12/2008 21:22 8,808 jboss_init_hpux.sh
04/12/2008 21:22 2,773 jboss_init_redhat.sh
04/12/2008 21:22 3,754 jboss_init_suse.sh
04/12/2008 21:21 535 probe.bat
04/12/2008 21:21 918 probe.sh
04/12/2008 21:22 2,517 README-service.txt
04/12/2008 21:21 4,596 run.bat
04/12/2008 21:21 1,571 run.conf
04/12/2008 21:24 44,886 run.jar
04/12/2008 21:21 7,880 run.sh
04/12/2008 21:22 3,384 service.bat
04/12/2008 21:22 1,665 shutdown.bat
04/12/2008 21:24 26,358 shutdown.jar
04/12/2008 21:22 1,903 shutdown.sh
04/12/2008 21:23 2,139 twiddle.bat
04/12/2008 21:24 47,198 twiddle.jar
04/12/2008 21:23 2,578 twiddle.sh
04/12/2008 21:23 2,810 wsconsume.bat
04/12/2008 21:23 3,826 wsconsume.sh
04/12/2008 21:23 2,895 wsprovide.bat
04/12/2008 21:23 3,908 wsprovide.sh
04/12/2008 21:23 3,036 wsrunclient.bat
04/12/2008 21:23 3,931 wsrunclient.sh
04/12/2008 21:23 2,414 wstools.bat
04/12/2008 21:23 3,421 wstools.sh
27 File(s) 271,600 bytes
2 Dir(s) 16,206,336,000 bytes free
C:\jboss\jboss-5.0.0.GA\bin>run
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss\jboss-5.0.0.GA
JAVA: C:\Program Files\Java\jdk1.6.0_07\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=25
6m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Ds
un.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\jboss\jboss-5.0.0.GA\bin\run.jar
===============================================================================
15:23:12,651 INFO [ServerImpl] Starting JBoss (Microcontainer)...
15:23:12,667 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SV
NTag=JBoss_5_0_0_GA date=200812042120)
15:23:12,667 INFO [ServerImpl] Bootstrap URL: null
15:23:12,667 INFO [ServerImpl] Home Dir: C:\jboss\jboss-5.0.0.GA
15:23:12,667 INFO [ServerImpl] Home URL: file:/C:/jboss/jboss-5.0.0.GA/
15:23:12,667 INFO [ServerImpl] Library URL: file:/C:/jboss/jboss-5.0.0.GA/lib/
15:23:12,667 INFO [ServerImpl] Patch URL: null
15:23:12,667 INFO [ServerImpl] Common Base URL: file:/C:/jboss/jboss-5.0.0.GA/c
ommon/
15:23:12,667 INFO [ServerImpl] Common Library URL: file:/C:/jboss/jboss-5.0.0.G
A/common/lib/
15:23:12,667 INFO [ServerImpl] Server Name: default
15:23:12,667 INFO [ServerImpl] Server Base Dir: C:\jboss\jboss-5.0.0.GA\server
15:23:12,667 INFO [ServerImpl] Server Base URL: file:/C:/jboss/jboss-5.0.0.GA/s
erver/
15:23:12,667 INFO [ServerImpl] Server Config URL: file:/C:/jboss/jboss-5.0.0.GA
/server/default/conf/
15:23:12,667 INFO [ServerImpl] Server Home Dir: C:\jboss\jboss-5.0.0.GA\server\
default
15:23:12,667 INFO [ServerImpl] Server Home URL: file:/C:/jboss/jboss-5.0.0.GA/s
erver/default/
15:23:12,683 INFO [ServerImpl] Server Data Dir: C:\jboss\jboss-5.0.0.GA\server\
default\data
15:23:12,683 INFO [ServerImpl] Server Library URL: file:/C:/jboss/jboss-5.0.0.G
A/server/default/lib/
15:23:12,683 INFO [ServerImpl] Server Log Dir: C:\jboss\jboss-5.0.0.GA\server\d
efault\log
15:23:12,683 INFO [ServerImpl] Server Native Dir: C:\jboss\jboss-5.0.0.GA\serve
r\default\tmp\native
15:23:12,683 INFO [ServerImpl] Server Temp Dir: C:\jboss\jboss-5.0.0.GA\server\
default\tmp
15:23:12,683 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss\jboss-5.0.0.GA\
server\default\tmp\deploy
15:23:13,791 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/j
boss/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
15:23:14,899 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.pl
ugins.cache.IterableTimedVFSCache]
15:23:14,915 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifet
ime=1800, resolution=60}]
15:23:15,055 ERROR [AbstractKernelController] Error installing to Start: name=JB
ossVFSInitializer state=Create
java.io.FileNotFoundException: lib doesn't exist. (rootURI: file:/C:/jboss/jboss
-5.0.0.GA/server/default/lib, file: C:\jboss\jboss-5.0.0.GA\server\default\lib)
at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:213) at org.jboss.virtual.VFS.getRoot(VFS.java:259)
at org.jboss.virtual.plugins.cache.PreInitializeVFSContexts.start(PreIni
tializeVFSContexts.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(Reflec
tionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(
ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethod
JoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$Joi
npointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(Executio
nWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
patchExecutionWrapper(KernelControllerContextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
patchJoinPoint(KernelControllerContextAction.java:70)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInte
rnal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
pleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
tall(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install
(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:540)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
(AbstractKernelDeployer.java:331)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
s(AbstractKernelDeployer.java:309)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs
tractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicK
ernelDeployer.java:76)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBa
sicXMLDeployer.java:91)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBa
sicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java
:144)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
394)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
15:23:15,367 INFO [CopyMechanism] VFS temp dir: C:\jboss\jboss-5.0.0.GA\server\
default\tmp
15:23:15,367 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
15:23:16,991 INFO [ServerInfo] Java version: 1.6.0_07,Sun Microsystems Inc.
15:23:16,991 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b23,Sun
Microsystems Inc.
15:23:16,991 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
15:23:17,037 INFO [JMXKernel] Legacy JMX core initialized
15:23:20,331 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss
.system.server.profileservice.repository.SerializableDeploymentRepository@1c0cd8
0(root=C:\jboss\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileK
ey@143b82c3[domain=default,server=default,name=default])
15:23:20,331 INFO [ProfileImpl] Using repository:org.jboss.system.server.profil
eservice.repository.SerializableDeploymentRepository@1c0cd80(root=C:\jboss\jboss
-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=de
fault,server=default,name=default])
15:23:20,331 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@2f7cfe{key=o
rg.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,na
me=default]}
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:
*** DEPLOYMENTS IN ERROR: Name -> Error
JBossVFSInitializer -> java.io.FileNotFoundException: lib doesn't exist. (rootUR
I: file:/C:/jboss/jboss-5.0.0.GA/server/default/lib, file: C:\jboss\jboss-5.0.0.
GA\server\default\lib)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalVa
lidate(AbstractKernelDeployer.java:290)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(A
bstractKernelDeployer.java:174)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java
:148)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
394)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
15:23:21,423 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
15:23:21,423 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Press any key to continue . . .
` -
4. Re: missing /lib directory in server/default confiog dir on
peterj Dec 6, 2008 12:30 PM (in response to wiggy)How did you unzip the zip file? Did you by any chance use an option that prevents empty directories from being unzipped? The server/default/lib directory appears in the zip file, but is empty. JBoss AS requires that directory, even if it is empty.
-
5. Re: missing /lib directory in server/default confiog dir on
wiggy Dec 6, 2008 5:57 PM (in response to wiggy)no its not in the zip at all
I have reopened in winzip - and filtered on path. There is no default/lib directory at all.
There is for some of the other configs like standard and all, but default and web contain no /lib directories.
I just followed the links from sourceforge.
my as5-jdk6 zip is 106,409KB in my explorer view
Will try another download now and see what i get -
6. Re: missing /lib directory in server/default confiog dir on
wiggy Dec 6, 2008 6:14 PM (in response to wiggy)downloaded it again and swithced download server from bern to heathnet ireland.
no diff. ZIP file is the same and has no default/lib directory in it when i look inside winzip -
7. Re: missing /lib directory in server/default confiog dir on
wiggy Dec 7, 2008 8:20 AM (in response to wiggy)i have just ried adding manually the empty /lib directory below the server/default and restart at command line and it then runs to startup.
Can someone check the source build tree and confirm that the distro ought to have an empty /lib under server/default.
I have tried two mirrors with same problem so far.
In addition to those who rely on jboss tools, my version (nightly build) hasnt caught up with the new apporach for as5. when you create a version 5 runtime in eclipse, it doesnt include files from the new common/lib directory. What this means is that seam code that used to compile as it could find hibernate validator etc fails the code build as its no longer in the path setup by the server runtime.
I had to manually create a new user library of my own and include the common/lib jars in that, and add to the compile path of my project. -
8. Re: missing /lib directory in server/default confiog dir on
jaikiran Dec 7, 2008 9:47 AM (in response to wiggy)If i edit the config to not run default but use server instead it comes up okay
I did not understand what this means? What exactly did you change?
There is for some of the other configs like standard and all, but default and web contain no /lib directories.
The default and the web are the ones which have empty lib folders. The other configurations have atleast 1 jar file. As Peter mentioned, i suspect its some setting that's preventing empty folders from being downloaded/unzipped. Not sure.that the distro ought to have an empty /lib under server/default.
Not just the default, but all server configurations like web, standard etc... have a lib folder. -
9. Re: missing /lib directory in server/default confiog dir on
peterj Dec 7, 2008 7:29 PM (in response to wiggy)If you open the file in winzip and look at the list of files you will not see the server/default/lib directory because winzip lists files and since there is no file in lib, that directory is not listed.
If you select all of the files in winzip and say extract, you will not get the lib directory. Why? Because there is no file in that directory and thus you could not have selected any file, hence no directory.
However, if you right-click the zip file and choose Winzip > Extract To Here, you will get the server/default/lib directory. Also, in winzip, if you do not select any files and then do File > Extract, you will get the lib directory. So it all depends on how you do the extraction. Essentially, you want to have selected the "All files/folders in archive" option on the Extract dialog box.
Perhaps the JBoss AS team should consider placing a "this_dir_empty.txt" file into the server/default/lib directory so that this issue will not come up in the future. -
10. Re: missing /lib directory in server/default confiog dir on
dimitris Dec 8, 2008 2:43 AM (in response to wiggy)Yes, we should put an empty file there, just in case.