eclipse and jboss5

Horst Leitenmueller horst.leitenmueller at liwest.at
Mon May 11 11:33:52 UTC 2009


hi,

problem is that the makefile is not correct, you can fix it with a
small 

there is the common dir missing on toplevel which must be copied to the
output (small fix for now)
cp
-R /usr/ports/java/jboss5/work/jboss-5.0.0.GA-src/build/output/jboss-5.0.0.GA/common /usr/local/jboss5/
chown -R www:www /usr/local/jboss5/common

this is new; changed from jboss 4 to jboss 5
common contains the jar files for the base server/* 

missing in Makefile:

APP_HOME_FILES= bin client lib server *common*

hope it helps

br horst

PS sent it alread in february but no update on port, i will sent a bug
report

On Mon, 2009-05-11 at 20:16 +1000, Sam Wun wrote:
> Hi,
> 
> Here is the errors I am getting:
> 
> wp1:jboss5 # /usr/local/jboss5/bin/run.sh 192.168.1.246
> =========================================================================
> 
>   JBoss Bootstrap Environment
> 
>   JBOSS_HOME: /usr/local/jboss5
> 
>   JAVA: java
> 
>   JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx1024m
> -XX:MaxPermSize=128m -Dfile.encoding=UTF8 -Duser.timezone=GMT
> 
>   CLASSPATH: /usr/local/jboss5/bin/run.jar
> 
> =========================================================================
> 
> run.sh: unused non-option argument: 192.168.1.246
> 10:12:27,363 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
> 10:12:27,425 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA
> (build: SVNTag=JBoss_5_0_0_GA date=200905111733)
> 10:12:27,427 INFO  [ServerImpl] Bootstrap URL: null
> 10:12:27,427 INFO  [ServerImpl] Home Dir: /usr/local/jboss5
> 10:12:27,428 INFO  [ServerImpl] Home URL: file:/usr/local/jboss5/
> 10:12:27,428 INFO  [ServerImpl] Library URL: file:/usr/local/jboss5/lib/
> 10:12:27,430 INFO  [ServerImpl] Patch URL: null
> 10:12:27,431 INFO  [ServerImpl] Common Base URL: file:/usr/local/jboss5/common/
> 10:12:27,432 INFO  [ServerImpl] Common Library URL:
> file:/usr/local/jboss5/common/lib/
> 10:12:27,432 INFO  [ServerImpl] Server Name: default
> 10:12:27,433 INFO  [ServerImpl] Server Base Dir: /usr/local/jboss5/server
> 10:12:27,433 INFO  [ServerImpl] Server Base URL: file:/usr/local/jboss5/server/
> 10:12:27,434 INFO  [ServerImpl] Server Config URL:
> file:/usr/local/jboss5/server/default/conf/
> 10:12:27,434 INFO  [ServerImpl] Server Home Dir:
> /usr/local/jboss5/server/default
> 10:12:27,435 INFO  [ServerImpl] Server Home URL:
> file:/usr/local/jboss5/server/default/
> 10:12:27,435 INFO  [ServerImpl] Server Data Dir:
> /usr/local/jboss5/server/default/data
> 10:12:27,436 INFO  [ServerImpl] Server Library URL:
> file:/usr/local/jboss5/server/default/lib/
> 10:12:27,437 INFO  [ServerImpl] Server Log Dir:
> /usr/local/jboss5/server/default/log
> 10:12:27,437 INFO  [ServerImpl] Server Native Dir:
> /usr/local/jboss5/server/default/tmp/native
> 10:12:27,438 INFO  [ServerImpl] Server Temp Dir:
> /usr/local/jboss5/server/default/tmp
> 10:12:27,438 INFO  [ServerImpl] Server Temp Deploy Dir:
> /usr/local/jboss5/server/default/tmp/deploy
> 10:12:29,124 INFO  [ServerImpl] Starting Microcontainer,
> bootstrapURL=file:/usr/local/jboss5/server/default/conf/bootstrap.xml
> 10:12:30,538 INFO  [VFSCacheFactory] Initializing VFSCache
> [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
> 10:12:30,557 INFO  [VFSCacheFactory] Using VFSCache
> [IterableTimedVFSCache{lifetime=1800, resolution=60}]
> 10:12:30,804 ERROR [AbstractKernelController] Error installing to
> Start: name=JBossVFSInitializer state=Create
> java.io.FileNotFoundException: lib doesn't exist. (rootURI:
> file:/usr/local/jboss5/common/lib, file: /usr/local/jboss5/common/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(PreInitializeVFSContexts.java:66)
>         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 org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
>         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
>         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
>         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
>         at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
>         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
>         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
>         at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(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.simpleInstallAction(SimpleControllerContextAction.java:62)
>         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
>         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
>         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
>         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
>         at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
>         at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
>         at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.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)
> 10:12:31,460 INFO  [CopyMechanism] VFS temp dir:
> /usr/local/jboss5/server/default/tmp
> 10:12:31,462 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
> 10:12:35,560 INFO  [ServerInfo] Java version: 1.6.0_07,The FreeBSD Foundation
> 10:12:35,560 INFO  [ServerInfo] Java VM: Diablo Java HotSpot(TM)
> Server VM 10.0-b23,The FreeBSD Foundation
> 10:12:35,561 INFO  [ServerInfo] OS-System: FreeBSD 7.2-RELEASE,i386
> 10:12:35,638 INFO  [JMXKernel] Legacy JMX core initialized
> 10:12:45,322 ERROR [AbstractKernelController] Error installing to
> Instantiated: name=bindings-classloader:0.0.0 state=Described
> java.lang.RuntimeException: Error creating VFS file for
> file:/usr/local/jboss5/common/lib/jboss-bindingservice.jar
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:178)
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determinePolicy(VFSClassLoaderPolicyModule.java:210)
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determinePolicy(VFSClassLoaderPolicyModule.java:52)
>         at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.getPolicy(ClassLoaderPolicyModule.java:149)
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getPolicy(VFSClassLoaderPolicyModule.java:204)
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getPolicy(VFSClassLoaderPolicyModule.java:52)
>         at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.registerClassLoaderPolicy(ClassLoaderPolicyModule.java:88)
>         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 org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
>         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
>         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
>         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
>         at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
>         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
>         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
>         at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
>         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.simpleInstallAction(SimpleControllerContextAction.java:62)
>         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
>         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
>         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
>         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
>         at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
>         at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
>         at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.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)
> Caused by: java.io.FileNotFoundException: lib doesn't exist. (rootURI:
> file:/usr/local/jboss5/common/lib, file: /usr/local/jboss5/common/lib)
>         at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:213)
>         at org.jboss.virtual.plugins.cache.AbstractVFSCache.getFile(AbstractVFSCache.java:71)
>         at org.jboss.virtual.VFS.getCachedFile(VFS.java:164)
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getVirtualFile(VFSClassLoaderPolicyModule.java:196)
>         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:170)
>         ... 41 more
> 10:12:46,370 INFO  [ProfileServiceImpl] Loading profile: default from:
> org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository at 247d4a(root=/usr/local/jboss5/server,
> key=org.jboss.profileservice.spi.ProfileKey at 143b82c3[domain=default,server=default,name=default])
> 10:12:46,374 INFO  [ProfileImpl] Using
> repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository at 247d4a(root=/usr/local/jboss5/server,
> key=org.jboss.profileservice.spi.ProfileKey at 143b82c3[domain=default,server=default,name=default])
> 10:12:46,375 INFO  [ProfileServiceImpl] Loaded profile:
> ProfileImpl at 1b258fa{key=org.jboss.profileservice.spi.ProfileKey at 143b82c3[domain=default,server=default,name=default]}
> Failed to boot JBoss:
> java.lang.IllegalStateException: Incompletely deployed:
> 
> *** DEPLOYMENTS IN ERROR: Name -> Error
> bindings-classloader:0.0.0 -> java.lang.RuntimeException: Error
> creating VFS file for
> file:/usr/local/jboss5/common/lib/jboss-bindingservice.jar
> JBossVFSInitializer -> java.io.FileNotFoundException: lib doesn't
> exist. (rootURI: file:/usr/local/jboss5/common/lib, file:
> /usr/local/jboss5/common/lib)
> 
> *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required
> State:Actual State}
> StandardBindings#7 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> Ports02Bindings -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#3 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#15 ->
> bindings-classloader:0.0.0{Installed:**ERROR**},
> JBossWebConnectorXSLTConfig{Installed:Real}
> StandardBindings#6 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#9 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#12 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#11 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#13 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> JBossWebConnectorXSLTConfig -> bindings-classloader:0.0.0{Installed:**ERROR**}
> Ports01Bindings -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#5 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> SystemPropertyBinder#1 -> ServiceBindingManager{Installed:Real},
> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#2 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#1 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> PortsDefaultBindings -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#17 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings -> StandardBindings#1{Installed:Real},
> StandardBindings#2{Installed:Real},
> StandardBindings#3{Installed:Real},
> StandardBindings#4{Installed:Real},
> StandardBindings#5{Installed:Real},
> StandardBindings#6{Installed:Real},
> StandardBindings#7{Installed:Real},
> StandardBindings#8{Installed:Real},
> StandardBindings#9{Installed:Real},
> StandardBindings#10{Installed:Real},
> StandardBindings#11{Installed:Real},
> StandardBindings#12{Installed:Real},
> StandardBindings#13{Installed:Real},
> StandardBindings#14{Installed:Real},
> StandardBindings#15{Installed:Real},
> StandardBindings#16{Installed:Real},
> StandardBindings#17{Installed:Real},
> StandardBindings#18{Installed:Real},
> StandardBindings#19{Installed:Real},
> StandardBindings#20{Installed:Real},
> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#8 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#10 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#19 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> ServiceBindingStore -> PortsDefaultBindings{Installed:Real},
> Ports01Bindings{Installed:Real}, Ports02Bindings{Installed:Real},
> Ports03Bindings{Installed:Real},
> bindings-classloader:0.0.0{Installed:**ERROR**},
> StandardBindings{Installed:Real}
> ServiceBindingManager ->
> bindings-classloader:0.0.0{Installed:**ERROR**},
> ServiceBindingStore{Installed:Real}
> StandardBindings#16 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#14 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> Ports03Bindings -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#4 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> SystemPropertyBinder ->
> bindings-classloader:0.0.0{Installed:**ERROR**},
> SystemPropertyBinder#1{Installed:Real}
> StandardBindings#18 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> StandardBindings#20 -> bindings-classloader:0.0.0{Installed:**ERROR**}
> 
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
>         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.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)
> 10:12:48,257 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true
> 10:12:48,271 INFO  [ServerImpl] Shutdown complete
> Shutdown complete
> Halting VM
> wp1:jboss5 #
> 
> There is no "common" directory in my jboss5 installation.
> 
> wp1:jboss5 # ls -l /usr/local/jboss5/
> total 16
> drwxr-xr-x   7 www   www     512 May 11 18:19 ./
> drwxr-xr-x  16 root  wheel   512 May 11 19:14 ../
> drwxr-xr-x   2 www   www    1024 May 11 18:19 bin/
> drwxr-xr-x   2 www   www    3072 May 11 18:19 client/
> drwxr-xr-x   3 www   www    2048 May 11 18:19 lib/
> drwxr-xr-x   2 www   www     512 May 11 18:19 log/
> drwxr-xr-x   7 www   www     512 May 11 18:19 server/
> wp1:jboss5 #
> 
> What is wrong with my installation?
> In the ports "jboss5", I just typed "make install".
> 
> Thanks
> 
> On Mon, May 11, 2009 at 7:31 PM, Sam Wun <swun2010 at gmail.com> wrote:
> > Hi,
> >
> > I got this 2 problems when I was trying to setup eclipse and jboss5
> > from freebsd 7.2 ports.
> >
> > Firstly, I have intall jboss5, but don't  know how to setup it up.
> > I run "jboss5ctl start" or "./jboss5 start" , in the "top" command,
> > the java jvm runs few seconds, then disapeared,  - that means it
> > failed to start jboss5. But I don't know where to look for the log
> > messages.
> > Can anyone tell me how to setup jboss5 in freebsd 7.2?
> >
> > Another problem is I can't compile eclipse from the ports.
> > The error I got is :
> > ===>  Applying FreeBSD patches for eclipse-3.4.1
> > Reversed (or previously applied) patch detected!  Skipping patch.
> > 1 out of 1 hunk ignored -- saving rejects to file
> > assemble.org.eclipse.sdk.all.xml.rej
> > => Patch patch-assemble.org.eclipse.sdk.all.xml failed to apply cleanly.
> > *** Error code 1
> >
> > Stop in /usr/ports/java/eclipse.
> >
> > Your suggestion is highly appreciated.
> >
> > Thanks
> >
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
-- 
------------------------------------
Ing.Dipl.-Ing. Horst Leitenmueller

Sperlstr. 11
4040 Linz

tel.: +43 650 2042702
email: horst.leitenmueller at liwest.at
------------------------------------



More information about the freebsd-java mailing list