有安装配置过tomcat-jboss整合包的朋友进来看下啊!
各位大哥:
今天下了个jboss-3.2.2RC1_tomcat-4.1.24.tgz,这个包据说是整合了jboss和tomcat的整合版本,所以网上不少文章都推荐安装这个整合包,这样就可以同时支持EJB,servlet,jsp了。
可是在安装时去很奇怪,各位大哥帮我看下啊??
下载下来后用tar解压后得到目录jboss-3.2.2RC1_tomcat-4.1.24,
[root@mail jboss-3.2.2RC1_tomcat-4.1.24]# ll
total 20
drwxr-xr-x 2 root root 4096 Aug 4 13:30 bin
drwxr-xr-x 2 root root 4096 Aug 4 09:08 client
drwxr-xr-x 4 root root 4096 Jun 13 2003 docs
drwxr-xr-x 2 root root 4096 Aug 4 09:08 lib
drwxr-xr-x 5 root root 4096 Jun 13 2003 server
昏,里面居然不能编译的。
[root@mail jboss-3.2.2RC1_tomcat-4.1.24]# cd bin
[root@mail bin]# ll
total 148
-rwxr-xr-x 1 root root 3539 Jun 13 2003 classpath.sh
-rwxr-xr-x 1 root root 1669 Jun 13 2003 deployer.bat
-rwxr-xr-x 1 root root 20336 Jun 13 2003 deployer.jar
-rwxr-xr-x 1 root root 2649 Jun 13 2003 deployer.sh
-rwxr-xr-x 1 root root 2463 Jun 13 2003 jboss_init_redhat.sh
-rwxr-xr-x 1 root root 2653 Jun 13 2003 run.bat
-rwxr-xr-x 1 root root 1453 Aug 4 13:30 run.conf
-rwxr-xr-x 1 root root 29968 Jun 13 2003 run.jar
-rwxr-xr-x 1 root root 4830 Jun 13 2003 run.sh
-rwxr-xr-x 1 root root 1795 Jun 13 2003 shutdown.bat
-rwxr-xr-x 1 root root 16773 Jun 13 2003 shutdown.jar
-rwxr-xr-x 1 root root 1829 Jun 13 2003 shutdown.sh
-rwxr-xr-x 1 root root 1515 Jun 13 2003 twiddle.bat
-rwxr-xr-x 1 root root 26972 Jun 13 2003 twiddle.jar
-rwxr-xr-x 1 root root 1850 Jun 13 2003 twiddle.sh
[root@mail bin]#
进入到bin后发现里面有个run.sh,运行后却出现了错误。
[root@mail bin]# ./run.sh
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
================================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh
CLASSPATH: /usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/bin/run.jar:/lib/tools.jar
================================================================================
14:31:00,368 INFO [Server] Starting JBoss (MX MicroKernel)...
14:31:00,377 INFO [Server] Release ID: JBoss [WonderLand] JBoss.org
14:31:00,386 INFO [Server] Home Dir: /usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24
14:31:00,392 INFO [Server] Home URL: file:/usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/
14:31:00,399 INFO [Server] Library URL: file:/usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/lib/
14:31:00,404 INFO [Server] Patch URL: null
14:31:00,409 INFO [Server] Server Name: default
14:31:00,414 INFO [Server] Server Home Dir: /usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/server/default
14:31:00,418 INFO [Server] Server Home URL: file:/usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/server/default/
14:31:00,421 INFO [Server] Server Data Dir: /usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/server/default/data
14:31:00,426 INFO [Server] Server Temp Dir: /usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/server/default/tmp
14:31:00,430 INFO [Server] Server Config URL: file:/usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/server/default/conf/
14:31:00,438 INFO [Server] Server Library URL: file:/usr/local/src/jboss-3.2.2RC1_tomcat-4.1.24/server/default/lib/
14:31:00,443 INFO [Server] Root Deployemnt Filename: jboss-service.xml
14:31:00,457 INFO [Server] Starting General Purpose Architecture (GPA)...
14:31:01,424 ERROR [Server] Failed to start
java.lang.NullPointerException
at org.jboss.mx.loading.UnifiedClassLoader.addURL(java.net.URL) (Unknown Source)
at java.net.URLClassLoader.addURLs(java.net.URL[]) (/usr/lib/libgcj.so.6.0.0)
at java.net.URLClassLoader.URLClassLoader(java.net.URL[], java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at org.jboss.mx.loading.UnifiedClassLoader.UnifiedClassLoader(java.net.URL, java.net.URL, java.lang.ClassLoader) (Unknown Source)
at org.jboss.mx.loading.UnifiedClassLoader.UnifiedClassLoader(java.net.URL, java.net.URL) (Unknown Source)
at org.jboss.mx.loading.UnifiedClassLoader3.UnifiedClassLoader3(java.net.URL, java.net.URL) (Unknown Source)
at org.jboss.mx.loading.UnifiedClassLoader3.UnifiedClassLoader3(java.net.URL, java.net.URL, org.jboss.mx.loading.LoaderRepository) (Unknown Source)
at org.jboss.mx.loading.UnifiedLoaderRepository3.newClassLoader(java.net.URL, boolean) (Unknown Source)
at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(java.lang.String, java.lang.Object[], java.lang.String[]) (Unknown Source)
at org.jboss.mx.server.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) (Unknown Source)
at org.jboss.system.server.ServerImpl.initBootLibraries() (Unknown Source)
at org.jboss.system.server.ServerImpl.doStart() (Unknown Source)
at org.jboss.system.server.ServerImpl.start() (Unknown Source)
at org.jboss.Main.boot(java.lang.String[]) (Unknown Source)
at org.jboss.Main$1.run() (Unknown Source)
at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
Failed to boot JBoss:
java.lang.NullPointerException
at org.jboss.mx.loading.UnifiedClassLoader.addURL(java.net.URL) (Unknown Source)
at java.net.URLClassLoader.addURLs(java.net.URL[]) (/usr/lib/libgcj.so.6.0.0)
at java.net.URLClassLoader.URLClassLoader(java.net.URL[], java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at org.jboss.mx.loading.UnifiedClassLoader.UnifiedClassLoader(java.net.URL, java.net.URL, java.lang.ClassLoader) (Unknown Source)
at org.jboss.mx.loading.UnifiedClassLoader.UnifiedClassLoader(java.net.URL, java.net.URL) (Unknown Source)
at org.jboss.mx.loading.UnifiedClassLoader3.UnifiedClassLoader3(java.net.URL, java.net.URL) (Unknown Source)
at org.jboss.mx.loading.UnifiedClassLoader3.UnifiedClassLoader3(java.net.URL, java.net.URL, org.jboss.mx.loading.LoaderRepository) (Unknown Source)
at org.jboss.mx.loading.UnifiedLoaderRepository3.newClassLoader(java.net.URL, boolean) (Unknown Source)
at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(java.lang.String, java.lang.Object[], java.lang.String[]) (Unknown Source)
at org.jboss.mx.server.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) (Unknown Source)
at org.jboss.system.server.ServerImpl.initBootLibraries() (Unknown Source)
at org.jboss.system.server.ServerImpl.doStart() (Unknown Source)
at org.jboss.system.server.ServerImpl.start() (Unknown Source)
at org.jboss.Main.boot(java.lang.String[]) (Unknown Source)
at org.jboss.Main$1.run() (Unknown Source)
at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
[root@mail bin]#
大家帮我看下是那里出了问题,到底因该怎么配置呢??
一直没找到这个包的安装文档啊。
谢谢大家拉
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论