andyj2ee

java tec sky

统计

留言簿(4)

activemq

aop

design pattern

other blog

spring

workflow

多线程

软件架构师

阅读排行榜

评论排行榜

#

tomcat 不能启动

关键词 : tomcat session EOFException

严重: IOException while loading persisted sessions: java.io.EOFException
严重: Exception loading sessions from persistent storage

原因是tomcat对硬盘的session读取失败,彻底解决办法一下:将work下面的文件清空,主要是*.ser文件,或者只是删除掉session.ser即可以解决。


-------------日志如下:
Listening for transport dt_socket at address: 17001
2008-3-20 15:51:57 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8081
2008-3-20 15:51:58 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 719 ms
2008-3-20 15:51:58 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-3-20 15:51:58 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.9
2008-3-20 15:51:58 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-3-20 15:51:58 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
2008-3-20 15:51:59 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2008-3-20 15:51:59 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2008-3-20 15:51:59 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2008-3-20 15:51:59 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
2008-3-20 15:52:05 org.apache.catalina.session.StandardManager doLoad
严重: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
 at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
 at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
 at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
 at java.io.ObjectInputStream.<init>(Unknown Source)
 at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:57)
 at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361)
 at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
 at org.apache.catalina.session.StandardManager.start(StandardManager.java:634)
 at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
 at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:391)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1042)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
2008-3-20 15:52:05 org.apache.catalina.session.StandardManager start
严重: Exception loading sessions from persistent storage
java.io.EOFException
 at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
 at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
 at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
 at java.io.ObjectInputStream.<init>(Unknown Source)
 at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:57)
 at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361)
 at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
 at org.apache.catalina.session.StandardManager.start(StandardManager.java:634)
 at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
 at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:391)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1042)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
2008-3-20 15:52:05 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8081
2008-3-20 15:52:05 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-3-20 15:52:05 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31  config=null
2008-3-20 15:52:05 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2008-3-20 15:52:06 org.apache.catalina.startup.Catalina start
信息: Server startup in 8093 ms

posted @ 2008-03-20 16:41 java光环 阅读(1177) | 评论 (1)编辑 收藏

mysql 用户授权


show databases;

root 给jboss 用户授权:
grant all on jbpm.* to jboss@localhost identified by 'jboss';

jboss 用户登录:
mysql -ujboss -pjboss

:)

posted @ 2008-03-06 18:15 java光环 阅读(355) | 评论 (0)编辑 收藏

查主键冲突所在的表语句


用以下语句可查主键冲突所在的表:
如 nested throwable: (java.sql.SQLException: ORA-00001: unique constraint (DEVSTATION3.SYS_C0019365) violated
--

select owner,CONSTRAINT_NAME,table_name from user_CONSTRAINTS where CONSTRAINT_NAME='SYS_C0066622'

posted @ 2007-11-28 14:19 java光环 阅读(686) | 评论 (0)编辑 收藏

win xp 下实现的linux MQ6.0 远程队列管理


开发环境是在linux redhat 上,
开发机为win Xp OS
MQ version 6.0.
目的:Xp 远程管理linux 下的MQ 队列管理器

在linux 上,我已经将jboss 加入到了mqm 组
用jboss 登录linux 做以下操作(以下是参考网友配置,已经不能再精简了)
1.    runmqsc QM.NODE.20
2.    define channel(SYSTEM.ADMIN.SVRCONN) CHLTYPE(SVRCONN) MCAUSER('mqm')
3.    alter qmgr CCSID(1381)
4.    END
5.    endmqm QM.NODE.20
6.    strmqm QM.NODE.20
7.    strmqcsv QM.NODE.20
8.    runmqlsr -t tcp -p 1421 -m QM.NODE.20 &
9.    netstat -an |grep 1421

win xp 开发机用户为本机管理员(administrator)
启初想把管理员加入到 上面语句的MCAUSER 中,结果报错说'administrator' 字符太长,失败.
在win xp 下把本机管理员加入到mqm 组.
即可成功

posted @ 2007-10-19 18:16 java光环 阅读(1030) | 评论 (0)编辑 收藏

activemq-4.2 SNAPSHOT 嵌入到jboss-4.0.3sp1的异常

下载包为:
activemq-rar-4.2-incubator-SNAPSHOT-20070121.082022-22.rar

异常1:

    [java] 00:58:46,434 WARN  [ServiceController] Problem starting service jboss.jca:service=RARDepl
oyment,name='activemq-rar-4.2-incubator-SNAPSHOT-20070121.082022-22.rar'
    [java] javax.resource.spi.ResourceAdapterInternalException: Failed to startup an embedded broker
: xbean:broker-config.xml, due to: java.lang.IllegalStateException: Could not find valid implementat
ion for: 2.0

    [java]      at org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java
:83)
    [java]      at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:107)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
274)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.j
ava:230)
    [java]      at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.jav
a:110)
    [java]      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943
)
    [java]      at $Proxy0.start(Unknown Source)
    [java]      at org.jboss.system.ServiceController.start(ServiceController.java:428)
    [java]      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy33.start(Unknown Source)
    [java]      at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSuppo
rt.java:330)
    [java]      at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java
:112)
    [java]      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
    [java]      at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperatio
nInterceptor.java:127)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy9.deploy(Unknown Source)
    [java]      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.jav
a:319)
    [java]      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:
507)
    [java]      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abstr
actDeploymentScanner.java:192)
    [java]      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeplo
ymentScanner.java:265)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
274)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.j
ava:230)
    [java]      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943
)
    [java]      at $Proxy0.start(Unknown Source)
    [java]      at org.jboss.system.ServiceController.start(ServiceController.java:428)
    [java]      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy4.start(Unknown Source)
    [java]      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
    [java]      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperatio
nInterceptor.java:127)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy5.deploy(Unknown Source)
    [java]      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
    [java]      at org.jboss.system.server.ServerImpl.org$jboss$system$server$ServerImpl$start$aop(S
erverImpl.java:330)
    [java]      at org.jboss.system.server.ServerImpl$start_N8025343665958530775.invokeNext(ServerIm
pl$start_N8025343665958530775.java)
    [java]      at com.wxxr.common.aop.bootrap.JBossServerStartupInterceptor.invoke(JBossServerStart
upInterceptor.java:36)
    [java]      at org.jboss.system.server.ServerImpl$start_N8025343665958530775.invokeNext(ServerIm
pl$start_N8025343665958530775.java)
    [java]      at org.jboss.system.server.ServerImpl.start(ServerImpl.java)
    [java]      at org.jboss.Main.boot(Main.java:187)
    [java]      at org.jboss.Main$1.run(Main.java:438)
    [java]      at java.lang.Thread.run(Thread.java:595)
    [java] Caused by: java.lang.IllegalStateException: Could not find valid implementation for: 2.0
    [java]      at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBean
Helper.java:48)
    [java]      at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinition
s(ClassPathXmlApplicationContext.java:170)
    [java]      at org.springframework.context.support.AbstractRefreshableApplicationContext.refresh
BeanFactory(AbstractRefreshableApplicationContext.java:89)
    [java]      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractAp
plicationContext.java:268)
    [java]      at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:161)
    [java]      at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:51)
    [java]      at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java
:41)
    [java]      at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
    [java]      at org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java
:80)
    [java]      ... 92 more
    [java] Caused by: java.lang.reflect.InvocationTargetException
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorIm
pl.java:39)
    [java]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAc
cessorImpl.java:27)
    [java]      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    [java]      at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBean
Helper.java:46)
    [java]      ... 100 more
    [java] Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefi
nitionReader.setValidationMode(I)V
    [java]      at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBe
anDefinitionReader.java:58)
    [java]      ... 105 more

解决办法:
spring 的jar包有重复,删除spring-1.4.jar,保留spring-2.0.jar


异常2:

    [java] 01:02:27,663 INFO  [XBeanXmlBeanDefinitionReader] Loading XML bean definitions from class
 path resource [broker-config.xml]
    [java] 01:02:27,927 WARN  [ServiceController] Problem starting service jboss.jca:service=RARDepl
oyment,name='activemq-rar-4.2-incubator-SNAPSHOT-20070121.082022-22.rar'
    [java] javax.resource.spi.ResourceAdapterInternalException: Failed to startup an embedded broker
: xbean:broker-config.xml, due to: org.springframework.beans.factory.BeanDefinitionStoreException: U
nrecognized xbean element mapping: beans in namespace
http://activemq.org/config/1.0
    [java]      at org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java
:83)
    [java]      at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:107)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
274)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.j
ava:230)
    [java]      at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.jav
a:110)
    [java]      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943
)
    [java]      at $Proxy0.start(Unknown Source)
    [java]      at org.jboss.system.ServiceController.start(ServiceController.java:428)
    [java]      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy33.start(Unknown Source)
    [java]      at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSuppo
rt.java:330)
    [java]      at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java
:112)
    [java]      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
    [java]      at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperatio
nInterceptor.java:127)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy9.deploy(Unknown Source)
    [java]      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.jav
a:319)
    [java]      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:
507)
    [java]      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abstr
actDeploymentScanner.java:192)
    [java]      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeplo
ymentScanner.java:265)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
274)
    [java]      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.j
ava:230)
    [java]      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943
)
    [java]      at $Proxy0.start(Unknown Source)
    [java]      at org.jboss.system.ServiceController.start(ServiceController.java:428)
    [java]      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy4.start(Unknown Source)
    [java]      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
    [java]      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
    [java]      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:585)
    [java]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

    [java]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    [java]      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperatio
nInterceptor.java:127)
    [java]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    [java]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
    [java]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    [java]      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    [java]      at $Proxy5.deploy(Unknown Source)
    [java]      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
    [java]      at org.jboss.system.server.ServerImpl.org$jboss$system$server$ServerImpl$start$aop(S
erverImpl.java:330)
    [java]      at org.jboss.system.server.ServerImpl$start_N8025343665958530775.invokeNext(ServerIm
pl$start_N8025343665958530775.java)
    [java]      at com.wxxr.common.aop.bootrap.JBossServerStartupInterceptor.invoke(JBossServerStart
upInterceptor.java:36)
    [java]      at org.jboss.system.server.ServerImpl$start_N8025343665958530775.invokeNext(ServerIm
pl$start_N8025343665958530775.java)
    [java]      at org.jboss.system.server.ServerImpl.start(ServerImpl.java)
    [java]      at org.jboss.Main.boot(Main.java:187)
    [java]      at org.jboss.Main$1.run(Main.java:438)
    [java]      at java.lang.Thread.run(Thread.java:595)
    [java] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized x
bean element mapping: beans in namespace http://activemq.org/config/1.0
    [java]      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionE
lement(XBeanNamespaceHandler.java:258)
    [java]      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHan
dler.java:152)
    [java]      at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHand
ler.java:49)
    [java]      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomEle
ment(BeanDefinitionParserDelegate.java:1147)
    [java]      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomEle
ment(BeanDefinitionParserDelegate.java:1137)
    [java]      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBe
anDefinitions(DefaultBeanDefinitionDocumentReader.java:150)
    [java]      at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDef
initions(XBeanBeanDefinitionDocumentReader.java:63)
    [java]      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registe
rBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:89)
    [java]      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinit
ions(XmlBeanDefinitionReader.java:499)
    [java]      at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefin
itions(XBeanXmlBeanDefinitionReader.java:79)
    [java]      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitio
ns(XmlBeanDefinitionReader.java:407)
    [java]      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:357)
    [java]      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:334)
    [java]      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDe
finitions(AbstractBeanDefinitionReader.java:126)
    [java]      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDe
finitions(AbstractBeanDefinitionReader.java:142)
    [java]      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDe
finitions(AbstractBeanDefinitionReader.java:168)
    [java]      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinit
ions(AbstractXmlApplicationContext.java:113)
    [java]      at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinition
s(ClassPathXmlApplicationContext.java:180)
    [java]      at org.springframework.context.support.AbstractRefreshableApplicationContext.refresh
BeanFactory(AbstractRefreshableApplicationContext.java:94)
    [java]      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractAp
plicationContext.java:294)
    [java]      at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:161)
    [java]      at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:51)
    [java]      at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java
:41)
    [java]      at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
    [java]      at org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java
:80)
    [java]      ... 92 more
    [java] 01:02:28,345 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in
.../deploy/jboss-local-jdbc.rar

解决办法 :
<beans  xmlns="http://activemq.org/config/1.0">

  <broker brokerName="sender-ws2" useJmx="true">
==》改成:
<beans>
 <broker brokerName="sender-ws2" useJmx="true"  xmlns="http://activemq.org/config/1.0">
参考
http://www.mail-archive.com/activemq-users@geronimo.apache.org/msg06853.html

posted @ 2007-02-06 01:10 java光环 阅读(1234) | 评论 (0)编辑 收藏

eclipse 中加入linked resource



修改.project.xml文件

</natures>
 <linkedResources>
  <link>
   <name>spring_src</name>
   <type>2</type>
   <location>E:/spring-framework-1.2.5/src</location>
  </link>
 </linkedResources>
</projectDescription>

posted @ 2006-08-14 10:39 java光环 阅读(1340) | 评论 (0)编辑 收藏

轻松的五一

今天终于开始工作了,干劲实足。

1 睡了一天的觉,把电饭堡修了
2到了大中买了两个大家电冰箱洗衣机(国产品牌海尔)
3做了一个全身的体检(花了千元)
4享受了海尔服务,家电运行正常.
5回家.看望了老爸老妈,父亲的腿病多年了,查查卢友明医院
6 go shopping,买家居装饰物品
7聚友。忘年交的老朋友来我家小聚送了我他的字画还有一套茶具。

posted @ 2006-05-08 10:12 java光环 阅读(655) | 评论 (0)编辑 收藏

一生中最应珍惜的十种人


一生中最应珍惜的十种人


1.遇到真爱的人时,要努力争取和他相伴一生的机会,因为当他离去时一切都来不及了。
2.遇到可相信的朋友时,要好好和他相处下去,因为人的一生中遇到知己真的不易。
3.遇到贵人时,要记得好好感激,因为他是你人生的转折点。
4.遇到曾经爱过的人时,记得感激他,因为他让你更懂得爱。
5.遇到曾经恨过你的人时,要微笑向他打招呼,因为他让你更加坚强。
6.遇到曾经背叛你的人时,要跟他好好聊一聊,因为若不是他今天你不会读懂这世界。
7.遇到曾经偷偷喜欢的人时,要祝他幸福,因为你喜欢他时不是希望他幸福快乐吗?
8.遇到匆匆离开你人生的人时,要谢谢他走过你的人生,因为他是你精彩回忆的一部分。
9.遇到曾经和你有误会的人时,要解清误会,因为你可能只有这一次机会解释清楚。
10.遇到和你相伴一生的人时,要百分百感谢他爱你,因为你们现在都得到幸福和真爱。

posted @ 2006-02-28 14:41 java光环 阅读(362) | 评论 (0)编辑 收藏

用maven 启动 jboss 时出现异常:[java] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)

    [java] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)
    [java] ERROR: transport error 202: socket creation failed: Provider initialization failed (check %SystemRoot%) ["transport.c",L41]
    [java] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L500]
    [java] JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized
    [java] [ERROR] Java Result: 1


原因:

posted @ 2006-02-16 15:19 java光环 阅读(8017) | 评论 (2)编辑 收藏

Oracle Blob/Clob 字段写入时产生转型异常Cast Exception

CLOB clob = (CLOB)us.getStatisticsInfo();

原因是
java.sql.Blob不能强制传唤成oracle.sql.BLOB

解决方法如下:

SerializableClob lob=(SerializableClob)us.getStatisticsInfo();
CLOB lob2 = (CLOB)lob.getWrappedClob(); 
Writer out = lob2.getCharacterOutputStream(); 
  

public void testAdd() throws Exception {
        
byte[] buffer = new byte[1]; 
        buffer[
0= 1;
        Session s 
= null;
        
try 
            s 
= sf.openSession(); 
            Transaction tx 
= s.beginTransaction();
            BizUserStatistics us
= new BizUserStatistics();
            us.setId(
new Long(100));
            us.setStatisticsInfo(Hibernate.createClob(
" "));

            s.save(us); 
            s.flush(); 
            s.refresh(us, LockMode.UPGRADE); 
//            CLOB clob = (CLOB)us.getStatisticsInfo(); 
            SerializableClob lob=(SerializableClob)us.getStatisticsInfo();
            CLOB lob2 
= (CLOB)lob.getWrappedClob();     
            Writer out 
= lob2.getCharacterOutputStream();
            String fileName 
= "d:/process_log.sql";
            File f 
= new File(fileName); 
            FileInputStream fin 
= new FileInputStream(f);
 
            StringBuffer sb 
= new StringBuffer();
            
for (int i = 0; i < 1000; i++){
                sb.append(
"<data>" + i + "</data>");
            }

            out.write(sb.toString());
            out.close();
            
            s.flush(); 
            tx.commit(); 
            }
 catch (Exception e) {
                e.printStackTrace(); 
            }
 finally {
                
if (s != null)
                
try {
                s.close(); 
                }
 catch (Exception e){}
            }


    }

posted @ 2006-02-14 16:35 java光环 阅读(1232) | 评论 (0)编辑 收藏

仅列出标题
共5页: 上一页 1 2 3 4 5 下一页