1. jboss4包含tomcat的,所以没有必要同时起两个;
2. 只要用不同的端口,应该可以同时起的:)
2. 只要用不同的端口,应该可以同时起的:)
解决方案 »
- jbpm4怎么和业务数据绑定
- struts2中从页面传到action然后再传到页面数据怎么显示不出来?
- System.out.println(new Integer(1).equals(new Long(1)));为什么是这个答案?????
- WEBLOGIC 的console 左边目录树不能显示
- linux服务器 apache占用内存问题。
- 晕,出错html:button,怎么回事
- 基于表、视图模式的快速开发框架SpeedFramework-1.0.1 beta1版本发布
- weblogic为什么总是拒绝我,不能登陆!
- [转贴]学习J2SE过程中的30个基本概念
- 还是运行不了rmi程序,请各位帮帮忙!
- 如何spring jdbc 来连接并执行oracle 存储过程(带参)并返回结果
- 分页java
server-->default-->deploy-->jboss->web.deployer->server.xml:
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
先启动jboss4,正常
=============================================================================== JBoss Bootstrap Environment JBOSS_HOME: F:\gy\Java\jboss JAVA: F:\gy\Java\jdk1.5.0_06\bin\java JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 CLASSPATH: F:\gy\Java\jdk1.5.0_06\lib\tools.jar;F:\gy\Java\jboss\bin\run.jar===============================================================================20:47:37,531 INFO [Server] Starting JBoss (MX MicroKernel)...
20:47:37,578 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=
JBoss_4_2_3_GA date=200807181417)
20:47:37,578 INFO [Server] Home Dir: F:\gy\Java\jboss
20:47:37,578 INFO [Server] Home URL: file:/F:/gy/Java/jboss/
20:47:37,578 INFO [Server] Patch URL: null
20:47:37,578 INFO [Server] Server Name: default
20:47:37,578 INFO [Server] Server Home Dir: F:\gy\Java\jboss\server\default
20:47:37,578 INFO [Server] Server Home URL: file:/F:/gy/Java/jboss/server/defau
lt/
20:47:37,578 INFO [Server] Server Log Dir: F:\gy\Java\jboss\server\default\log
20:47:37,578 INFO [Server] Server Temp Dir: F:\gy\Java\jboss\server\default\tmp20:47:37,578 INFO [Server] Root Deployment Filename: jboss-service.xml
20:47:39,546 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
20:47:39,546 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-b05
,Sun Microsystems Inc.
20:47:39,562 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
20:47:42,312 INFO [Server] Core system initialized
20:47:50,078 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083
/
20:47:50,078 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:jboss-log4j.xml
20:47:52,031 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
version) - JBoss Inc.
20:47:52,031 INFO [TransactionManagerService] Setting up property manager MBean
and JMX layer
20:47:52,890 INFO [TransactionManagerService] Starting recovery manager
20:47:53,171 INFO [TransactionManagerService] Recovery manager started
20:47:53,171 INFO [TransactionManagerService] Binding TransactionManager JNDI R
eference
20:48:09,343 INFO [EJB3Deployer] Starting java:comp multiplexer
20:48:22,328 INFO [NativeServerConfig] JBoss Web Services - Native
20:48:22,328 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200
803312044)
20:48:27,546 INFO [Embedded] Catalina naming disabled
20:48:28,546 INFO [AprLifecycleListener] An older version 1.1.9 of the Apache T
omcat Native library is installed, while Tomcat recommends version greater then
1.1.10
20:48:28,546 INFO [AprLifecycleListener] Loaded Apache Tomcat Native library 1.
1.9.
20:48:28,546 INFO [AprLifecycleListener] APR capabilities: IPv6 [true], sendfil
e [true], accept filters [false], random [true].
20:48:31,093 INFO [Http11AprProtocol] Initializing Coyote HTTP/1.1 on http-127.
0.0.1-9000
20:48:31,171 INFO [AjpAprProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1
-8009
20:48:31,171 INFO [Catalina] Initialization processed in 3598 ms
20:48:31,171 INFO [StandardService] Starting service jboss.web
20:48:31,171 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
20:48:31,296 INFO [Catalina] Server startup in 122 ms
20:48:32,046 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w
eb.deployer/ROOT.war/
20:48:36,906 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
20:48:37,890 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/
jbossws.sar/jbossws-context.war/
20:48:39,468 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
20:48:45,656 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
20:48:50,265 INFO [MailService] Mail Service bound to java:/Mail
20:48:51,109 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
20:48:51,265 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
20:48:51,328 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
20:48:51,500 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
20:48:51,687 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
20:48:51,796 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/mail-ra.rar
20:48:51,937 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/quartz-ra.rar
20:48:51,984 INFO [QuartzResourceAdapter] start quartz!!!
20:48:52,265 INFO [SimpleThreadPool] Job execution threads will use class loade
r of thread: main
20:48:52,343 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
20:48:52,375 INFO [RAMJobStore] RAMJobStore initialized.
20:48:52,375 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
r' initialized from default resource file in Quartz package: 'quartz.properties'20:48:52,375 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
20:48:52,375 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
TERED started.
20:48:55,875 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
20:48:56,953 INFO [A] Bound to JNDI name: queue/A
20:48:56,968 INFO [B] Bound to JNDI name: queue/B
20:48:56,968 INFO [C] Bound to JNDI name: queue/C
20:48:56,968 INFO [D] Bound to JNDI name: queue/D
20:48:56,984 INFO [ex] Bound to JNDI name: queue/ex
20:48:57,015 INFO [testTopic] Bound to JNDI name: topic/testTopic
20:48:57,031 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
20:48:57,031 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic20:48:57,046 INFO [testQueue] Bound to JNDI name: queue/testQueue
20:48:57,203 INFO [UILServerILService] JBossMQ UIL service available at : /127.
0.0.1:8093
20:48:57,312 INFO [DLQ] Bound to JNDI name: queue/DLQ
20:48:57,796 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
20:48:57,906 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
20:48:59,734 INFO [Http11AprProtocol] Starting Coyote HTTP/1.1 on http-127.0.0.
1-9000
20:48:59,859 INFO [AjpAprProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-800
9
20:48:59,968 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos
s_4_2_3_GA date=200807181417)] Started in 1m:22s:375ms
F:\gy\Java\Tomcat 5.5\bin>catalina run
Using CATALINA_BASE: F:\gy\Java\Tomcat 5.5
Using CATALINA_HOME: F:\gy\Java\Tomcat 5.5
Using CATALINA_TMPDIR: F:\gy\Java\Tomcat 5.5\temp
Using JRE_HOME: F:\gy\Java\jdk1.5.0_06
2008-8-20 20:50:47 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-8-20 20:50:47 org.apache.coyote.ajp.AjpAprProtocol init
严重: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/??????/???
)????í?????Ρ?
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:190)
at org.apache.catalina.connector.Connector.initialize(Connector.java:101
7)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:578)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
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:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2008-8-20 20:50:48 org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException: Protocol handler initialization failed: java.lang.Exception
: Socket bind failed: [730048] ?????????×???(Э?é/??????/???)????í?????Ρ?
at org.apache.catalina.connector.Connector.initialize(Connector.java:101
9)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:578)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
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:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2008-8-20 20:50:48 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 4859 ms
2008-8-20 20:50:48 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-8-20 20:50:48 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.26
2008-8-20 20:50:48 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-8-20 20:50:52 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
2008-8-20 20:50:52 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
2008-8-20 20:50:53 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='resources.application', returnNull=true
2008-8-20 20:50:53 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
信息: Tiles definition factory loaded for module ''.
2008-8-20 20:50:53 org.apache.struts.validator.ValidatorPlugIn initResources
信息: Loading validation rules file from '/WEB-INF/validator-rules.xml'
2008-8-20 20:50:53 org.apache.struts.validator.ValidatorPlugIn initResources
信息: Loading validation rules file from '/WEB-INF/validation.xml'
2008-8-20 20:50:53 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-8-20 20:50:54 org.apache.coyote.ajp.AjpAprProtocol start
严重: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/??????/???
)????í?????Ρ?
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:686)
at org.apache.coyote.ajp.AjpAprProtocol.start(AjpAprProtocol.java:218)
at org.apache.catalina.connector.Connector.start(Connector.java:1090)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
57)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2008-8-20 20:50:54 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start fail
ed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/??????
/???)????í?????Ρ?
at org.apache.catalina.connector.Connector.start(Connector.java:1097)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
57)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2008-8-20 20:50:54 org.apache.catalina.startup.Catalina start
信息: Server startup in 6188 ms
成8088了,这样即可使用JBOSS下面的应用程序,也可以访问Tomcat下的程序。
jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\server.xml
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
把上面的8080改一下就可以了