[EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe
by oskar.carlstedt
Sorry, now thing got messed up here. We take the examples once again. Look at the JNDI-names. These got messed in the previous post.
//Oskar
persistence.xml
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
| <persistence-unit name="my-ejbs">
| <jta-data-source>
| <!--
| THIS NAME SHALL MAP AGAINST THE JNDI-NAME OF
| YOUR DATA SOURCE FILE
| -->
| java:/my-service-DS
| </jta-data-source>
| <properties>
| <property name="show_sql" value="true" />
| <property name="dialect"
| value="org.hibernate.dialect.MySQLDialect" />
| </properties>
| </persistence-unit>
| </persistence>
|
my-service-ds.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <datasources>
| <local-tx-datasource>
|
| <!--
| JNDI NAME OF DATA SOURCE -
| THIS NAME IS MAPPED IN PERSISTENCE.XML IN YOUR EAR FILE
| -->
| <jndi-name>my-service-DS</jndi-name>
|
| <!--
| Connect parameters
| -->
| <connection-url>
| jdbc:${jdbc.vendor}://${db.host}:${db.port}/${db.name}
| </connection-url>
| <user-name>${db.username}</user-name>
| <password>${db.password}</password>
| <driver-class>${jdbc.driverclass}</driver-class>
|
| <!--
| Minimum and maximum poolsize
| -->
| <min-pool-size>0</min-pool-size>
| <max-pool-size>5</max-pool-size>
|
| <!--
| No of minutes in idle state until connection is destroyed
| -->
| <idle-timeout-minutes>1</idle-timeout-minutes>
|
| <!--
| Class used to detect if connection is valid or not. Using MySQL, this
| class shall only be used on drivers after 3.22.1 with "ping" support
| -->
| <valid-connection-checker-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker
| </valid-connection-checker-class-name>
|
| <!--
| Class used when sorting exceptions
| -->
| <exception-sorter-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
| </exception-sorter-class-name>
|
|
| <!--
| corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional)
| -->
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058015#4058015
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058015
18Â years, 10Â months
[Beginners Corner] - foreach (= advanced for) in JSPS
by MarcusDidiusFalco
Hallo!
I have tried to use foreach (= advanced for) in JSPs
<% for (Order order: orders.getOrders()) { %>
| <tr><td><%= order.getItem() %></td><td><%= order.getPrice() %></td><td><%= order.getNumber() %></td></tr>
| <% } %>
This works fine with Tomcat 5.5.23, however when deploying the same war to JBoss 4.0.5 GA I get the following exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 19 in the jsp file: /test.jsp
Generated servlet error:
Syntax error, 'for each' statements are only available if source level is 5.0
An error occurred at line: 19 in the jsp file: /test.jsp
Generated servlet error:
Can only iterate over an array or an instance of java.lang.Iterable
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
I thought JBoss uses Tomcat 5.5 as a Servlet container. So why this difference?
Thanx,
Hans
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058014#4058014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058014
18Â years, 10Â months
[EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe
by oskar.carlstedt
Hi!
It seems like JBoss can't find your datasource. It also looks like you are using toplink, are you? The example bellow is for the normal JBoss EJB3 (on top of Hibernate). Anyway, the configuration shall still be the same (please correct me if I'm wrong) except some of the properties in persistence.xml.
So, you shall have a persistence.xml file packed with your ejb-jar-file. The file looks something like (the example is using MySQL-dialect. You shall probably use the Oracle dialect):
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
| <persistence-unit name="my-ejbs">
| <jta-data-source>
| <!--
| THIS NAME SHALL MAP AGAINST THE JNDI-NAME OF YOUR DATA SOURCE FILE
| -->
| java:/service-fundorder-DS
| </jta-data-source>
| <properties>
| <property name="show_sql" value="true" />
| <property name="dialect"
| value="org.hibernate.dialect.MySQLDialect" />
| </properties>
| </persistence-unit>
| </persistence>
|
Then you must deploy a data-source-file that defines the connection to the database. The filename must end with -ds.xml, e.g. my-service.ds.xml This file looks something like (also MySQL). THere are plenty of such example files in the JBoss distro under docs/examples/jta:
| <?xml version="1.0" encoding="UTF-8"?>
| <datasources>
| <local-tx-datasource>
|
| <!--
| JNDI NAME OF DATA SOURCE - THIS NAME IS MAPPED IN PERSISTENCE.XML IN YOUR EAR FILE
| -->
| <jndi-name>my-service-DS</jndi-name>
|
| <!--
| Connect parameters
| -->
| <connection-url>
| jdbc:${jdbc.vendor}://${db.host}:${db.port}/${db.name}
| </connection-url>
| <user-name>${db.username}</user-name>
| <password>${db.password}</password>
| <driver-class>${jdbc.driverclass}</driver-class>
|
| <!--
| Minimum and maximum poolsize
| -->
| <min-pool-size>0</min-pool-size>
| <max-pool-size>5</max-pool-size>
|
| <!--
| No of minutes in idle state until connection is destroyed
| -->
| <idle-timeout-minutes>1</idle-timeout-minutes>
|
| <!--
| Class used to detect if connection is valid or not. Using MySQL, this
| class shall only be used on drivers after 3.22.1 with "ping" support
| -->
| <valid-connection-checker-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker
| </valid-connection-checker-class-name>
|
| <!--
| Class used when sorting exceptions
| -->
| <exception-sorter-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
| </exception-sorter-class-name>
|
|
| <!--
| corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional)
| -->
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
Kind regards
//Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058012#4058012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058012
18Â years, 10Â months
[JBoss Seam] - problem with 1.3.0 alpha
by laksu
Hi,
To avoid another bug I have switched to 1.3.0alpha and my working application does not even deploy with the following stacktrace. Note that, I use Glassfish.
WebModule[/payroll-war]Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: Could not create Component: org.jboss.seam.core.manager
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:896)
| at org.jboss.seam.init.Initialization.installComponents(Initialization.java:827)
| at org.jboss.seam.init.Initialization.init(Initialization.java:498)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
| at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
| at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
| at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
| at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
| at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
| at $Proxy1.invoke(Unknown Source)
| at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
| at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
| at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
| at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
| at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
| Caused by: java.lang.IllegalArgumentException: no such setter method: org.jboss.seam.core.Manager.conversationIsLongRunningParameter
| at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:220)
| at org.jboss.seam.Component.initInitializers(Component.java:417)
| at org.jboss.seam.Component.<init>(Component.java:279)
| at org.jboss.seam.Component.<init>(Component.java:210)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:882)
| at org.jboss.seam.init.Initialization.installComponents(Initialization.java:827)
| at org.jboss.seam.init.Initialization.init(Initialization.java:498)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
| at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
| at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
| at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
| at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
| at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
| at $Proxy1.invoke(Unknown Source)
| at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
| at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
| Initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/payroll-war'
| java.lang.NullPointerException:
| at org.jboss.seam.jsf.SeamApplicationMessageBundle.handleGetObject(SeamApplicationMessageBundle.java:28)
| at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
| at java.util.ResourceBundle.getString(ResourceBundle.java:346)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:108)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:80)
| at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:276)
| at com.sun.faces.util.Util.createInstance(Util.java:585)
| at com.sun.faces.util.Util.createInstance(Util.java:544)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:713)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:596)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
| at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
| at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
| at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
| at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
| at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
| Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/payroll-war'
| WebModule[/payroll-war]Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
| javax.faces.FacesException: java.lang.NullPointerException:
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:502)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
| at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
| at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
| at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
| at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
| at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
| at $Proxy1.invoke(Unknown Source)
| at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
| at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
| at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
| at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
| at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
| at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
| Caused by: java.lang.NullPointerException:
| at org.jboss.seam.jsf.SeamApplicationMessageBundle.handleGetObject(SeamApplicationMessageBundle.java:28)
| at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
| at java.util.ResourceBundle.getString(ResourceBundle.java:346)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:108)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:80)
| at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:276)
| at com.sun.faces.util.Util.createInstance(Util.java:585)
| at com.sun.faces.util.Util.createInstance(Util.java:544)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:713)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:596)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
| at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
| at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
| at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
| at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
| at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
| at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
| Context startup failed due to previous errors
|
Should I register an issue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058011#4058011
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058011
18Â years, 10Â months
[JBossWS] - Re: MTOM + WS Security = problem
by richard_opalka
"mr_d" wrote :
| I agree, but if mtom is used and it is inlined, I don't see the point of using mtom: we can have the binary parameter inlined like the others. I thought that one of the advantages of mtom was to use xop which describes how to package binary data as an attachment.
@mr_d
Well MTOM can be inlined or not. If you're dealing with small attachments,
such as < 5k images or other binary data I don't see the problem if the
MTOM attachments are inlined. If you're dealing with bigger attachments
then I agree inlined MTOM attachmetns are not good for you. But it
depends on the SOAP stack how it will deal with MTOM attachments.
For example, some SOAP stacks are configured the following way:
* if attachment size is lesser than some preconfigured size then MTOM attachment is inlined
* if attachment size is greater than some preconfigured size then MTOM attachment is sent as MIME part.
Isn't this your problem?
Rio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058006#4058006
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058006
18Â years, 10Â months
[JBoss Seam] - Re: EntityHome problem
by KnisterPeter
I have found the following in the seam DEBUG logs:
[DEBUG] 10:19:34.211 core.Events - Processing event:org.jboss.seam.preRemoveVariable.entityId
| [DEBUG] 10:19:34.211 seam.Component - instantiating Seam component: org.jboss.seam.core.events
| [DEBUG] 10:19:34.212 seam.Component - initializing new instance of: org.jboss.seam.core.events
| [DEBUG] 10:19:34.212 seam.Component - done initializing: org.jboss.seam.core.events
| [DEBUG] 10:19:34.213 seam.Component - instantiating Seam component: org.jboss.seam.core.events
| [DEBUG] 10:19:34.213 seam.Component - initializing new instance of: org.jboss.seam.core.events
| [DEBUG] 10:19:34.214 seam.Component - done initializing: org.jboss.seam.core.events
| [DEBUG] 10:19:34.214 core.Events - Processing event:org.jboss.seam.postRemoveVariable.entityId
|
Where can I find the code logging this statements?
I'll just want to find an entry point to debug my problem. Where and when are the page parameters set to the model?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058005#4058005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058005
18Â years, 10Â months
[Persistence, JBoss/CMP, Hibernate, Database] - java.sql.SQLException: You cannot commit with autocommit set
by gvreddy
Hi
I got the following exception when i am trying to do commit using kodo persistencemanager class.
I specified autoCommit property to false in oracle-xa.xml file.
Any configuration is required to solve this issue.
Thanks in advance.
2007-05-14 18:49:04,630 DEBUG [kodo.Runtime] An exception occurred while ending the transaction. This exception will be re-thrown.
kodo.util.FatalDataStoreException: You cannot commit with autocommit set!
NestedThrowables:
java.sql.SQLException: You cannot commit with autocommit set!
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
at kodo.jdbc.runtime.JDBCStoreManager.commit(JDBCStoreManager.java:137)
at kodo.runtime.DelegatingStoreManager.commit(DelegatingStoreManager.java:100)
at kodo.runtime.PersistenceManagerImpl.endTransaction(PersistenceManagerImpl.java:1035)
at kodo.runtime.PersistenceManagerImpl.afterCompletion(PersistenceManagerImpl.java:842)
at org.jboss.tm.TransactionImpl.doAfterCompletion(TransactionImpl.java:1526)
at org.jboss.tm.TransactionImpl.completeTransaction(TransactionImpl.java:1198)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:377)
at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:361)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy112.findEntryUserById(Unknown Source)
at com.db.dcs.model.settlements.jboss.security.LdapDBLoginModule.validatePassword(LdapDBLoginModule.java:223)
at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:210)
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:324)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: You cannot commit with autocommit set!
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:545)
at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:334)
at com.solarmetric.jdbc.DelegatingConnection.commit(DelegatingConnection.java:184)
at com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection.commit(LoggingConnectionDecorator.java:219)
at com.solarmetric.jdbc.DelegatingConnection.commit(DelegatingConnection.java:184)
at kodo.jdbc.runtime.JDBCStoreManager.commit(JDBCStoreManager.java:132)
... 61 more
Some where i read that we can manually set autocommit to false.
But I am using persistencemanager class.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058004#4058004
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058004
18Â years, 10Â months