weblogic和statefulsessionbean的问题?哪位大侠帮个忙,必有重谢

jsyx 2002-03-04 06:54:55
这是weblogic-ejb-jar.xml的内容,我希望能够控制pool中的实例数,但是只要加入<stateful-session-descriptor>..........</stateful-session-descriptor>元素,布置就会失败(没有,则能够成功布置)。请高手指教指教

<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Count</ejb-name>
<jndi-name>CountHome</jndi-name>

<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>2</max-beans-in-cache>
<idle-timeout-seconds>1200</idle-timeout-seconds>
</stateful-session-cache>
</stateful-session-descriptor>

</weblogic-enterprise-bean>
</weblogic-ejb-jar>
...全文
14 点赞 收藏 6
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
jsyx 2002-03-05
后一半

--------------- nested within: ------------------
weblogic.xml.process.XMLParsingException: The content of element type "weblogic-
enterprise-bean" must match "(ejb-name,(entity-descriptor|stateless-session-desc
riptor|stateful-session-descriptor|message-driven-descriptor)?,transaction-descr
iptor?,reference-descriptor?,enable-call-by-reference?,run-as-identity-principal
?,jndi-name?,local-jndi-name?)". - with nested exception:
[org.xml.sax.SAXParseException: The content of element type "weblogic-enterprise
-bean" must match "(ejb-name,(entity-descriptor|stateless-session-descriptor|sta
teful-session-descriptor|message-driven-descriptor)?,transaction-descriptor?,ref
erence-descriptor?,enable-call-by-reference?,run-as-identity-principal?,jndi-nam
e?,local-jndi-name?)".]
File: META-INF/weblogic-ejb-jar.xml Line: 17 Column: 30
at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:132
)
at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb
JarLoader_WLS600.java:461)
at weblogic.ejb20.dd.xml.DDUtils.loadWLEJBJarDescriptorFromJarFile(DDUti
ls.java:210)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:136)
at weblogic.ejb20.deployer.Deployer.createEJBDescriptor(Deployer.java:70
4)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.addComponent(Application.java:160)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:482)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:352)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:926)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:913)
at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja
va:898)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:618)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy73.addTarget(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli
cationManager.java:833)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:930)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:852)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:768)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:701)
at weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
onManager.java:198)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy5.update(Unknown Source)
at weblogic.management.console.webapp._domain.__upload_app._jspService(_
_upload_app.java:150)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:190)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112
)
at weblogic.management.console.actions.ForwardAction.perform(ForwardActi
on.java:35)
at weblogic.management.console.actions.internal.ActionServlet.doAction(A
ctionServlet.java:172)
at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
ionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


>
<2002-3-5 上午09时44分03秒> <Error> <Management> <Error deploying application .\
config\mydomain\applications\Count.jar: java.lang.reflect.UndeclaredThrowableExc
eption>
回复
jsyx 2002-03-05
报错的内容太多

Unable to deploy EJB: Count.jar from Count.jar:

The XML parser encountered an error in your deployment descriptor. Please ensure
that your deployment descriptor corresponds to the format in the DTD. The error
was:
org.xml.sax.SAXParseException: The content of element type "weblogic-enterprise
-bean" must match "(ejb-name,(entity-descriptor|stateless-session-descriptor|sta
teful-session-descriptor|message-driven-descriptor)?,transaction-descriptor?,ref
erence-descriptor?,enable-call-by-reference?,run-as-identity-principal?,jndi-nam
e?,local-jndi-name?)".
at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
:1082)
at weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverab
leXMLError(XMLValidator.java:1764)
at weblogic.apache.xerces.validators.common.XMLValidator.callEndElement(
XMLValidator.java:1409)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
.dispatch(XMLDocumentScanner.java:1219)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
mentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)

at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:128
)
at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb
JarLoader_WLS600.java:461)
at weblogic.ejb20.dd.xml.DDUtils.loadWLEJBJarDescriptorFromJarFile(DDUti
ls.java:210)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:136)
at weblogic.ejb20.deployer.Deployer.createEJBDescriptor(Deployer.java:70
4)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.addComponent(Application.java:160)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:482)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:352)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:926)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
eanImpl.java:913)
at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja
va:898)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:618)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy73.addTarget(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli
cationManager.java:833)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:930)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
pplicationManager.java:852)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:768)
at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
Manager.java:701)
at weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
onManager.java:198)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy5.update(Unknown Source)
at weblogic.management.console.webapp._domain.__upload_app._jspService(_
_upload_app.java:150)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:190)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112
)
at weblogic.management.console.actions.ForwardAction.perform(ForwardActi
on.java:35)
at weblogic.management.console.actions.internal.ActionServlet.doAction(A
ctionServlet.java:172)
at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
ionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
回复
gdsean 2002-03-05
"布置就会失败"的原因是什么?
没有提示信息?
回复
jsyx 2002-03-05
哎!又没有人理
回复
jsyx 2002-03-04
哎!又没有人理
回复
jsyx 2002-03-04
我用的是weblogic6.1
回复
发帖
非技术区
创建于2007-09-28

2.3w+

社区成员

Java 非技术区
申请成为版主
帖子事件
创建了帖子
2002-03-04 06:54
社区公告
暂无公告