[JBoss jBPM] - BPEL Bonjour Example - HTTP GET not supported & SOAP Instant
by darklight.37
Hello,
I'm having a getting the bonjour example to work on my jboss-4.0.4.GA server. The process seems to deploy without error and is visible at:
http://localhost:8080/jbossws/services
I use MS office's web reference tools to test webservices, but upon testing the service
Error message displayed:
13:15:04,062 ERROR [[callerServlet]] Servlet.service() for servlet callerServlet threw exception
org.jboss.util.NotImplementedException: HTTP GET not supported
at org.jboss.ws.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
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.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:595)
When I try to invoke the service I get this error message:
13:31:32,515 ERROR [SOAPFaultExceptionHelper] SOAP request exception
java.lang.InstantiationException: org.jbpm.bpel.tutorial.bonjour.Bonjour
at java.lang.Class.newInstance0(Class.java:335)
at java.lang.Class.newInstance(Class.java:303)
at org.jboss.ws.server.ServiceEndpointInvokerJSE.createServiceEndpoint(ServiceEndpointInvokerJSE.java:71)
at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:97)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:234)
at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
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.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:595)
Copy of WSDL of service:
<soap:address location="http://glowplug:8080/bonjour/caller"/>
Copy of the bonjour.bpel:
<?xml version="1.0" encoding="UTF-8"?>
<bpws:process xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:tns="http://jbpm.org/examples/bonjour"
exitOnStandardFault="yes" name="bonjour" suppressJoinFailure="yes"
targetNamespace="http://jbpm.org/examples/bonjour">
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="bonjour.wsdl"
namespace="http://jbpm.org/examples/bonjour"/>
<bpws:partnerLinks>
<bpws:partnerLink myRole="bonjourProvider" name="client" partnerLinkType="tns:bonjour"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable messageType="tns:bonjourRequestMessage" name="input"/>
<bpws:variable messageType="tns:bonjourResponseMessage" name="output"/>
</bpws:variables>
<bpws:sequence name="main">
<bpws:receive createInstance="yes" name="receiveInput" operation="process"
partnerLink="client" portType="tns:bonjour" variable="input"/>
<bpws:assign name="Assign" validate="no">
<bpws:copy>
<bpws:from part="payload" variable="input"/>
<bpws:to part="payload" variable="output"/>
</bpws:copy>
</bpws:assign>
<bpws:reply name="replyOutput" operation="process" partnerLink="client"
portType="tns:bonjour" variable="output"/>
</bpws:sequence>
</bpws:process>
I can understand that I most probably cannot test it, but I don't understand the SOAP Instantiation Exception.
I get the feeling that it's something simple that I'm overlooking, would be grateful for any help or ideas.
Thanks.[/img]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994219#3994219
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994219
19 years, 7 months
[JBoss jBPM] - Re: How to add new swimlanes
by anu123suya
sorry, forgot to add the exception message and the complete stack trace
18:52:37,903 ERROR [JDBCExceptionReporter] Lock wait timeout exceeded; try resta
rting transaction
18:52:37,903 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
org.hibernate.exception.GenericJDBCException: could not insert: [org.jbpm.graph.
def.ProcessDefinition]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException
(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:79)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
tEntityPersister.java:1985)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
tEntityPersister.java:2404)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentit
yInsertAction.java:37)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplic
ate(AbstractSaveEventListener.java:269)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(Abstrac
tSaveEventListener.java:167)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId
(AbstractSaveEventListener.java:101)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGene
ratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrR
equestedId(DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTran
sient(DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(
DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpda
te(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:524)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:514)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:510)
at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:77
)
at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
at org.apache.jsp.Testdeploy_jsp._jspService(Testdeploy_jsp.java:51)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting tra
nsaction
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedSt
atement.java:1129)
at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPrepared
Statement.java:681)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
:1368)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
:1283)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
:1268)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat
e(WrappedPreparedStatement.java:251)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
tEntityPersister.java:1967)
... 41 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994217#3994217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994217
19 years, 7 months
[Security & JAAS/JBoss] - Re: Feature Requests for users dealing with migration
by fabio.ita04
Hi,
I'm trying to migrate from Tomcat. Using FORM authentication in a web app, with security constraints configured in web.xml.
In Tomcat, realms was being configured at META-INF/context.xml
| <Context>
| <Realm className="org.apache.catalina.realm.DataSourceRealm"
| debug="1" dataSourceName="jdbc/db" localDataSource="true"
| digest="MD5" userTable="user" userNameCol="login"
| userCredCol="password" userRoleTable="permission"
| roleNameCol="category" />
| </Context>
|
In JBoss, I tried to reuse this configuration in my war, but authentication not worked.
So, I read various articles, and tried to configure JBoss to use JAAS:
1) /conf/login-config.xml : add the entry
| <application-policy name="db">
| <authentication>
| <login-module flag="required" code="org.jboss.security.auth.spi.DatabaseServerLoginModule">
| <module-option name="dsJndiName">java:/jdbc/db</module-option>
| <module-option name="hashAlgorithm">MD5</module-option>
| <module-option name="hashEncoding">hex</module-option>
| <module-option name="principalsQuery">
| select password from User where login=?
| </module-option>
| <module-option name="rolesQuery">
| select category as Roles, 'roles' as RolesGroups from Permission where login=?
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
2) jboss-web.xml
| <jboss-web>
| <security-domain>java:/jaas/db</security-domain>
| </jboss-web>
|
At this point, I'm able to authenticate, but the server don't assign any authorization to the logged user (request.isUserInRole(role) always returns false).
Any help?
Thanks in advance.
Miranda.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994210#3994210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994210
19 years, 7 months
[JBoss jBPM] - Re: Request didn't include a SOAP Message
by bertrand.njiipwo
Hello Alex,
first thanks for your reply and i'll like to give some background informations hier to let you understand what i'm trying to do.
I wan jbpm invoke an already running service under: http://localhost:8080/axis/services/schufaServiceB?wsdl. But this service is not to access directly because its one service under the cathegory schufa and the cathegory has the URL http://localhost:8081/creditprocess/schufa. Hier i have an inderection over an monitoring component which receive the HTTP-Request (with the SOAPMessage) and invoke the "best" service at the request time. This means the name of the specific service is unknow but the general name of the service cathegory is know as the category name. At the oder side all services under that cathegory have the same interface-description (porttype, operation, parameter and parameter oder)
The cathegory is like an UDDI-registry. I have the specification of the services belowing to that cathegory unter the URL: http://localhost:8080/portal/demo/schufa.wsdl.
In the application descriptor bpel-application.xml i need to specify the contextURL and the wsdl location to point at the interface description of the partner service to let the jbpm module retrieves the interface informations before creating and sending the message to the service: (like defined in partner/schufa/web.xml and partner/schufa/webservices.xml).
So hier is my problem; The deployed service partner have his endpoint under: http://localhost:8080/schufa/schufaWS. I don't really need this URL as service endpoint. The client requests (bpel-process, service client) have to be redirected to a running service via the monitoring component at the adress: http://localhost.8081/creditprocess/schufa. This will be my service endpoint. The monitoring component will pick up one running service at: http://localhost:8080/axis/services/schufaWSB and send the receive Request (SOAP Request) to that service.
I'll like to achieve that the SOAPMessage send by the process before the Schufa WS is called is included in this HTTP-Request before it is send. I'll need to specify this address: http://localhost.8081/creditprocess/schufa as soap addresse in jbpm-bpel so that the running process sends the soap request to this address. How can i achieve this goal using jbpm?
My files:
loanapproval.wsdl
<?xml version="1.0" encoding="UTF-8"?>
| <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:samples:loanapproval" xmlns:loanapproval="urn:samples:loanapproval"
| xmlns:schufa="urn:samples:schufa" xmlns:types="urn:samples:loanapprovalTypes" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
| targetNamespace="urn:samples:loanapproval">
| <import namespace="urn:samples:schufa" location="interface/schufa.wsdl"/>
| <types/
| <schema targetNamespace="urn:samples:loanapprovalTypes" xmlns="http://www.w3.org/2001/XMLSchema">
| <element name="loanProcessFault" type="types:loanProcessFaultType"/>
| <complexType name="loanApplicationType">
| <sequence>
| <element name="firstName" type="string"/>
| <element name="lastName" type="string"/>
| <element name="amount" type="float"/>
| </sequence>
| </complexType>
| <complexType name="approvalDecisionType">
| <sequence>
| <!--element name="approved" type="boolean"/-->
| <element name="approved" type="string"/>
| </sequence>
| </complexType>
| <complexType name="loanProcessFaultType">
| <sequence>
| <element name="ErrorCode" type="int"/>
| <element name="ErrorMessage" type="string"/>
| </sequence>
| </complexType>
| </schema>
| </types>
| <message name="applyRequest">
| <part name="loanRequestParameters" type="types:loanApplicationType"/>
| </message>
| <message name="applyResponse">
| <part name="loanResponse" type="types:approvalDecisionType"/>
| </message>
| <message name="applyLoanProcessFault">
| <part name="loanFault" element="types:loanProcessFault"/>
| </message>
| <portType name="LoanProcessPortType">
| <operation name="apply">
| <input message="tns:applyRequest"/>
| <output message="tns:applyResponse"/>
| <fault name="LoanProcessFault" message="tns:applyLoanProcessFault"/>
| </operation>
| </portType>
| <plt:partnerLinkType name="LoanProcessingPLT">
| <plt:role name="lender">
| <plt:portType name="tns:LoanProcessPortType"/>
| </plt:role>
| </plt:partnerLinkType>
| <plt:partnerLinkType name="SchufaPLT">
| <plt:role name="schufa">
| <plt:portType name="schufa:SchufaWS"/>
| </plt:role>
| </plt:partnerLinkType>
| </definitions>
|
loanapproval.bpel
<?xml version="1.0" encoding="UTF-8"?>
| <process name="loanapproval" suppressJoinFailure="yes" targetNamespace="urn:samples:loanapproval"
| xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:tns="urn:samples:loanapproval"
| xmlns:loanapproval="urn:samples:loanapproval" xmlns:schufa="urn:samples:schufa"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
| http://schemas.xmlsoap.org/ws/2003/03/business-process/">
| <partnerLinks>
| <partnerLink name="LoanProcessing" partnerLinkType="loanapproval:LoanProcessingPLT" myRole="lender"/>
| <partnerLink name="SchufaLink" partnerLinkType="tns:SchufaPLT" partnerRole="schufa"/>
| </partnerLinks>
| <variables>
| <variable name="applyProcessRequest" messageType="loanapproval:applyRequest"/>
| <variable name="applyProcessResponse" messageType="loanapproval:applyResponse"/>
| <variable name="schufaRequest" messageType="schufa:validCustomerRequest"/>
| <variable name="schufaResponse" messageType="schufa:validCustomerResponse"/>
| </variables>
| <sequence>
| <receive createInstance="yes" name="LoanApplication" operation="apply" partnerLink="LoanProcessing"
| portType="loanapproval:LoanProcessPortType" variable="applyProcessRequest"/>
| <assign name="AssignLoanInfo_forApproval">
| <copy>
| <from variable="applyProcessRequest" query="/loanRequestParameters/lastName" part="loanRequestParameters"/>
| <to variable="schufaRequest" part="_surname"/>
| </copy>
| <copy>
| <from variable="applyProcessRequest" query="/loanRequestParameters/firstName" part="loanRequestParameters"/>
| <to variable="schufaRequest" part="_firstname"/>
| </copy>
| </assign>
| <invoke inputVariable="schufaRequest" name="SchufaCheck" operation="validCustomer" outputVariable="schufaResponse"
| partnerLink="SchufaLink" portType="schufa:SchufaWS"/>
| <assign name="AssignSchufaDecision">
| <copy>
| <from variable="schufaResponse" part="validCustomerReturn"/>
| <to variable="applyProcessResponse" query="/loanResponse/approved" part="loanResponse"/>
| </copy>
| </assign>
| <reply name="ApprovalDecision" operation="apply" partnerLink="LoanProcessing" portType="loanapproval:LoanProcessPortType"
| variable="applyProcessResponse"/>
| </sequence>
| </process>
|
schufa.wsdl
<?xml version="1.0" encoding="UTF-8"?>
| <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:samples:schufa" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="urn:samples:schufa"
| xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/">
| <message name="validCustomerRequest">
| <part name="_surname" type="xsd:string"/>
| <part name="_firstname" type="xsd:string"/>
| </message>
| <message name="validCustomerResponse">
| <part name="validCustomerReturn" type="xsd:string"/>
| </message>
| <portType name="SchufaWS">
| <operation name="validCustomer" parameterOrder="_surname _firstname">
| <input name="validCustomerRequest" message="tns:validCustomerRequest"/>
| <output name="validCustomerResponse" message="tns:validCustomerResponse"/>
| </operation>
| </portType>
| </definitions>
|
web.xml
<?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
| <servlet>
| <servlet-name>LoanProcessingServlet</servlet-name>
| <servlet-class>org.jbpm.bpel.tutorial.loanapproval.LoanProcessPortType_Impl</servlet-class>
| </servlet>
| <servlet>
| <servlet-name>relationServlet</servlet-name>
| <servlet-class>org.jbpm.bpel.relation.jms.RelationServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>LoanProcessingServlet</servlet-name>
| <url-pattern>/LoanProcessing</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>relationServlet</servlet-name>
| <url-pattern>/relation</url-pattern>
| </servlet-mapping>
| <resource-ref>
| <res-ref-name>jms/ConnectionFactory</res-ref-name>
| <res-type>javax.jms.ConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
| <message-destination-ref>
| <message-destination-ref-name>jms/LoanProcessing</message-destination-ref-name>
| <message-destination-type>javax.jms.Queue</message-destination-type>
| <message-destination-usage>ConsumesProduces</message-destination-usage>
| </message-destination-ref>
| </web-app>
webservices.xml
<?xml version="1.0" encoding="UTF-8"?>
| <webservices version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:impl="urn:samples:loanapproval"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd">
| <webservice-description>
| <webservice-description-name>Loan Approval Service</webservice-description-name>
| <wsdl-file>WEB-INF/wsdl/service.wsdl</wsdl-file>
| <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
| <port-component>
| <port-component-name>LoanProcessingPort</port-component-name>
| <wsdl-port>impl:LoanProcessingPort</wsdl-port>
| <service-endpoint-interface>org.jbpm.bpel.tutorial.loanapproval.LoanProcessPortType</service-endpoint-interface>
| <service-impl-bean>
| <servlet-link>LoanProcessingServlet</servlet-link>
| </service-impl-bean>
| <handler>
| <handler-name>LoanProcessingHandler</handler-name>
| <handler-class>org.jbpm.bpel.service.provider.PortProvider</handler-class>
| <init-param>
| <description>
| name of the port; should match the partner link name
| </description>
| <param-name>portName</param-name>
| <param-value>LoanProcessing</param-value>
| </init-param>
| <init-param>
| <description>time to wait for response messages, in milliseconds</description>
| <param-name>responseTimeout</param-name>
| <param-value>60000</param-value>
| </init-param>
| </handler>
| </port-component>
| </webservice-description>
| </webservices>
|
jboss-web.xml
<?xml version="1.0" encoding="UTF-8" ?>
| <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
| <jboss-web>
| <resource-ref>
| <res-ref-name>jms/ConnectionFactory</res-ref-name>
| <jndi-name>java:ConnectionFactory</jndi-name>
| </resource-ref>
| <message-destination-ref>
| <message-destination-ref-name>jms/LoanProcessing</message-destination-ref-name>
| <jndi-name>queue/loanApprovalQueue</jndi-name>
| </message-destination-ref>
| </jboss-web>
bpel-application.xml
<?xml version="1.0" encoding="UTF-8"?>
| <bpelApplication name="loanapproval" xmlns="http://jbpm.org/bpel"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://jbpm.org/bpel
| http://jbpm.org/bpel/bpel_application_1_0.xsd">
| <partnerLinks>
| <partnerLink name="SchufaLink">
| <partnerRole>
| <!--wsa:EndpointReference xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"-->
| <wsa:Address>USE_ACTUAL_URI_FROM_CATALOG</wsa:Address>
| <wsa:Address>http://localhost:8081/creditprocess/schufa</wsa:Address>
| <wsa:ServiceName xmlns:serviceNS="urn:samples:schufa">serviceNS:SchufaWSService</wsa:ServiceName>
| </wsa:EndpointReference>
| </partnerRole>
| </partnerLink>
| </partnerLinks>
| <serviceCatalogs>
| <!--urlCatalog contextUrl="http://localhost:8081/"-->
| <urlCatalog contextUrl="http://127.0.0.1:8080/">
| <!-- published WSDL document of the approver Service -->
| <!--wsdl location="loanapprover/loanApproverPortType?wsdl"/-->
| <!--wsdl location="wsportal/demo/schufa.wsdl"/-->
| <!--wsdl location="creditprocess/schufa"/-->
| <wsdl location="schufa/schufaWS?wsdl"/>
| </urlCatalog>
| </serviceCatalogs>
| </bpelApplication>
jboss-client.xml
<?xml version='1.0' encoding='UTF-8' ?>
| <!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
| <jboss-client>
| <jndi-name>loanapproval-client</jndi-name>
| <service-ref>
| <service-ref-name>service/Loanapproval</service-ref-name>
| <wsdl-override>http://127.0.0.1:8080/loanapproval/loanProcessing?wsdl</wsdl-override>
| </service-ref>
| </jboss-client>
application-client.xml
<?xml version="1.0" encoding="UTF-8"?>
| <application-client version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd">
| <display-name>Loanapproval service client</display-name>
| <service-ref>
| <service-ref-name>service/Loanapproval</service-ref-name>
| <service-interface>org.jbpm.bpel.tutorial.loanapproval.LoanApprovalService</service-interface>
| <!-- placeholder for published WSDL file -->
| <wsdl-file>USE_JBOSS_CLIENT_XML_OVERRIDE</wsdl-file>
| <!-- Java<->XML mapping file -->
| <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
| <port-component-ref>
| <!-- service endpoint interface class -->
| <service-endpoint-interface>org.jbpm.bpel.tutorial.loanapproval.LoanProcessPortType</service-endpoint-interface>
| </port-component-ref>
| </service-ref>
| </application-client>
The Schufa partner service:
schufa.imp.wsdl
<?xml version="1.0" encoding="UTF-8"?>
| <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:samples:schufa" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| targetNamespace="urn:samples:schufa" xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/">
| <import namespace="urn:samples:schufa" location="schufa.wsdl"/>
| <binding name="SchufaSOAPBinding" type="tns:SchufaWS">
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="validCustomer">
| <soap:operation soapAction="urn:samples:schufa:validCustomer"/>
| <!---soap:operation style="rpc"/-->
| <input>
| <soap:body use="literal" namespace="urn:samples:schufa"/>
| </input>
| <output>
| <soap:body use="literal" namespace="urn:samples:schufa"/>
| </output>
| </operation>
| </binding>
| <service name="SchufaWSService">
| <port name="SchufaPort" binding="tns:SchufaSOAPBinding">
| <soap:address location="http:/127.0.0.1:8081/creditprocess/schufa"/>
| <!--soap:address location="REPLACE_WITH_ACTUAL_URI"/-->
| </port>
| </service>
| </definitions>
|
schufa.wsdl
<?xml version="1.0" encoding="UTF-8"?>
| <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:samples:schufa" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="urn:samples:schufa"
| xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/">
| <message name="validCustomerRequest">
| <part name="_surname" type="xsd:string"/>
| <part name="_firstname" type="xsd:string"/>
| </message>
| <message name="validCustomerResponse">
| <part name="validCustomerReturn" type="xsd:string"/>
| </message>
| <portType name="SchufaWS">
| <operation name="validCustomer" parameterOrder="_surname _firstname">
| <input name="validCustomerRequest" message="tns:validCustomerRequest"/>
| <output name="validCustomerResponse" message="tns:validCustomerResponse"/>
| </operation>
| </portType>
| <!--service name="SchufaWSService">
| <port name="SchufaService" binding="impl:SchufaServiceSoapBinding"-->
| <!--wsdlsoap:address location="http://127.0.0.1:8081/creditprocess/schufa"/-->
| <!--wsdlsoap:address location="http://127.0.0.1:8081/creditprocess/schufa"/>
| </port>
| </service-->
| </definitions>
|
web.xml
<?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
| <servlet>
| <servlet-name>schufaServlet</servlet-name>
| <servlet-class>org.jbpm.bpel.tutorial.schufa.SchufaWS_Impl</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>schufaServlet</servlet-name>
| <url-pattern>/schufaWS</url-pattern>
| </servlet-mapping>
| </web-app>
webservices.xml
<?xml version="1.0" encoding="UTF-8"?>
| <webservices version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:impl="urn:samples:schufa"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd">
| <webservice-description>
| <webservice-description-name>SchufaService</webservice-description-name>
| <!-- WSDL implementation file -->
| <wsdl-file>WEB-INF/wsdl/schufa.impl.wsdl</wsdl-file>
| <!-- Java<->XML mapping file -->
| <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
| <port-component>
| <port-component-name>SchufaPort</port-component-name>
| <!-- WSDL port element (in WSDL implementation file) -->
| <wsdl-port>impl:SchufaPort</wsdl-port>
| <service-endpoint-interface> <!-- org.jbpm.bpel.tutorial.serviceName.portTypeName -->
| org.jbpm.bpel.tutorial.schufa.SchufaWS
| </service-endpoint-interface>
| <service-impl-bean>
| <servlet-link>schufaServlet</servlet-link>
| </service-impl-bean>
| </port-component>
| </webservice-description>
| </webservices>.
Thanks once Alex for all.
Bertrand
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994208#3994208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994208
19 years, 7 months
[JBoss Seam] - SeamSelectItems - 1.1.1beta4
by petemuir
http://wiki.jboss.org/wiki/attach?page=SeamSelectItemsNewDesign%2Fselecti...
I've updated this package, for now marked as a draft release (there are quite a few changes to the core code and I would like to get feedback).
To upgrade
As long as you are using a SMPC called entityManager (i.e. you do @In(create=true) EntityManager entityManager; normally), you can just update the jars and delete
<component class="org.jboss.seam.selectitems.SelectItemsConfig">
| <property name="persistenceUnitJndiName">...</property>
| </component>
from components.xml.
If you use a different SMPC (e.g. called em - @In(create=true) EntityManager em;) then you'll need to let SeamSelectItems know about it:
<component name="org.jboss.seam.selectitems.selectItemsConfig">
| <property name="entityManager">#{em}</property>
| </component>
(n.b. the change from component class= to component name=)
Post any problems here.
The docs have also been updated http://www.jboss.com/wiki/Edit.jsp?page=SeamSelectItemsNewDesign
Changes
* BUG Remove need for id equality
* BUG Remove need to configure persistenceUnitJndiName
- The EntityConverter now uses the same SMPC as is used in the rest of the applicaiton.
- If the SMPC is called entityManager (as generated by seam-gen) no configuration is needed, otherwise it must be configured in components.xml
- Can no longer set persistenceUnitJndiName on si:convertEntity
* Remove @SelectItems annotation
* FEATURE Can now outject an array or DataModel (using @DataModel) as the list of selectitems
* BUG Automatically instatiate SelectItemsConfig
* BUG Don't error if @Entity is missing, on entity class, but, if cannot find @Id notify the user that @Entity is missing (due to Seam proxying)
* BUG Fix ResourceNotFoundException thrown if an error is to be displayed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994204#3994204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994204
19 years, 7 months
[Beginners Corner] - ClassCastException
by ravinderrao_77
Hi,
This would have been asked before but i could find the right thread which gives a solution to the following problem.
I use -
1)netBeans 5.5 to devlop and deploy EJB's
2)jdk1.4
Problem:
A stateful session bean with the following :
1)jboss.xml
<enterprise-beans>
<ejb-name>EnrollmentCartBean</ejb-name>
<local-jndi-name>ejb/ECB</local-jndi-name>
</enterprise-beans>
2)ejb-jar.xml
<display-name>EnrollmentCart</display-name>
<ejb-name>EnrollmentCartBean</ejb-name>
<local-home>com.testpack.stateful.EnrollmentLocalHome</local-home>
com.testpack.stateful.EnrollmentLocal
<ejb-class>com.testpack.stateful.EnrollmentCartBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
*** the <lo cal></lo cal> tag is not getting displayed in here !!! strange
3) servlet code that tries to use the bean
InitialContext ictx = new InitialContext();
Object o = ictx.lookup("ejb/ECB");
// Object o = ictx.lookup("ECB"); throws name not bound
log.debug("object after look up:"+o); //** debug statement
EnrollmentLocalHome home = (EnrollmentLocalHome)o;
EnrollmentLocal ejbObject = home.create("client");
I get the following erors
**** 2006-12-15 11:51:36,781 DEBUG [com.testpack.webutil.Enroller] object after look up:ejb/ECBHome
2006-12-15 11:51:36,781 ERROR [STDERR] java.lang.ClassCastException: $Proxy57
2006-12-15 11:51:36,781 ERROR [STDERR] at com.testpack.webutil.Enroller.processRequest(Enroller.java:55)
2006-12-15 11:51:36,781 ERROR [STDERR] at com.testpack.webutil.Enroller.doPost(Enroller.java:99)
2006-12-15 11:51:36,781 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2006-12-15 11:51:36,781 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-12-15 11:51:36,781 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2006-12-15 11:51:37,062 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2006-12-15 11:51:37,062 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
Any help would be highly appreciated !!!
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994203#3994203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994203
19 years, 7 months
[JBoss Seam] - @DataModel outjection problem
by cavani
I have one field outjected by @DataModel annotation on SFSB on a long conversation. This field is a List of Entity Beans (query populated). When user click to add, I put a new instance on list and outject this instance for editing. On save action, I persist this instance and query again, but the equals/hash don't change because database id isn't relevant for equality. When user try edit this entry, save duplicate the entry (just in this case).
I figured out the problem is (from @DataModel JavaDoc):
anonymous wrote :
| (...) Note that the List, Map, Set or array will be re-wrapped and re-outjected each time the current component value is different to the value held by the context variable as determined by calling equals() on the underlying collection.
| (...)
|
My solution was: (before query again on save)
| Contexts.getConversationContext().remove("myList");
| //...
|
Is possible do this simpler or more manageable?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994202#3994202
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994202
19 years, 7 months
[JBoss Seam] - Re: problem to load classes
by JoviJojo
you can NOT enter anything in the input text fields, that is the prlblem with the logRegister.xhtml
part of the log file:
adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to com.omxgroup.oith.LogRegisterAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@1c39412
2006-12-15 10:44:56,906 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to com.omxgroup.oith.LogRegisterAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@1c39412
2006-12-15 10:44:56,921 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3: ejbName=LogRegisterAction, class=com.omxgroup.oith.LogRegisterAction, type=STATELESS
2006-12-15 10:44:56,921 DEBUG [org.jboss.ejb3.ProxyDeployer] no declared remote bindings for : LogRegisterAction
2006-12-15 10:44:56,968 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to com.omxgroup.oith.RegisterAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@1d7d58f
2006-12-15 10:44:56,968 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to com.omxgroup.oith.RegisterAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@1d7d58f
2006-12-15 10:44:56,968 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3: ejbName=RegisterAction, class=com.omxgroup.oith.RegisterAction, type=STATELESS
2006-12-15 10:44:56,968 DEBUG [org.jboss.ejb3.ProxyDeployer] no declared remote bindings for : RegisterAction
2006-12-15 10:44:57,000 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@bf9a12{ url=null ,addedOrder=0}
2006-12-15 10:44:57,000 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@11c248a{ url=null ,addedOrder=0}
2006-12-15 10:44:57,000 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@a2e19e{ url=null ,addedOrder=0}
2006-12-15 10:44:57,000 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@18a62f6{ url=null ,addedOrder=0}
2006-12-15 10:44:57,000 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@6742d0{ url=null ,addedOrder=0}
2006-12-15 10:44:57,000 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1539d49{ url=null ,addedOrder=0}
2006-12-15 10:44:57,015 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@2db73e{ url=null ,addedOrder=0}
2006-12-15 10:44:57,062 INFO [org.jboss.ejb3.Ejb3Deployment] EJB3 deployment time took: 2375
2006-12-15 10:44:57,062 DEBUG [org.jboss.ejb3.Ejb3Module] Created jboss.j2ee:service=EJB3,module=notesproject.jar
2006-12-15 10:44:57,062 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EJB3,module=notesproject.jar dependents are: []
2006-12-15 10:44:57,062 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying notesproject.jar
2006-12-15 10:44:57,062 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/notesproject.war/
2006-12-15 10:44:57,062 DEBUG [org.jboss.ws.integration.jboss.DeployerInterceptorJSE] create: file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/notesproject.war/
2006-12-15 10:44:57,062 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] create, notesproject.war
2006-12-15 10:44:57,062 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@72edc{ url=null ,addedOrder=0}
2006-12-15 10:44:57,078 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:war=notesproject.war,id=820755055
2006-12-15 10:44:57,078 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
2006-12-15 10:44:57,078 DEBUG [org.jboss.web.WebModule] Creating jboss.web.deployment:war=notesproject.war,id=820755055
2006-12-15 10:44:57,078 DEBUG [org.jboss.web.WebModule] Created jboss.web.deployment:war=notesproject.war,id=820755055
2006-12-15 10:44:57,078 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.web.deployment:war=notesproject.war,id=820755055 dependents are: []
2006-12-15 10:44:57,078 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying notesproject.war
2006-12-15 10:44:57,078 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EARDeployment,url='notesproject.ear'
2006-12-15 10:44:57,078 DEBUG [org.jboss.deployment.EARDeployment] Creating jboss.j2ee:service=EARDeployment,url='notesproject.ear'
2006-12-15 10:44:57,078 DEBUG [org.jboss.deployment.EARDeployment] Created jboss.j2ee:service=EARDeployment,url='notesproject.ear'
2006-12-15 10:44:57,078 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EARDeployment,url='notesproject.ear' dependents are: []
2006-12-15 10:44:57,078 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying notesproject.ear
2006-12-15 10:44:57,078 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/
2006-12-15 10:44:57,078 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/jboss-seam.jar
2006-12-15 10:44:57,078 DEBUG [org.jboss.ws.integration.jboss.DeployerInterceptorEJB3] start: file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/jboss-seam.jar
2006-12-15 10:44:57,078 DEBUG [org.jboss.ejb3.EJB3Deployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@2ba95185 { url=file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/jboss-seam.jar }
deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
status: Starting
state: START_DEPLOYER
watch: file:/C:/Program4/jboss-4.0.5.GA/server/default/deploy/notesproject.ear/jboss-seam.jar
altDD: null
lastDeployed: 1166175891671
lastModified: 1166175891218
mbeans:
, short name: jboss-seam.jar, parent short name: notesproject.ear
2006-12-15 10:44:57,078 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB3,module=jboss-seam.jar
2006-12-15 10:44:57,078 DEBUG [org.jboss.ejb3.Ejb3Module] Starting jboss.j2ee:service=EJB3,module=jboss-seam.jar
2006-12-15 10:44:57,156 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@4ba4d6{ url=null ,addedOrder=0}
2006-12-15 10:44:57,171 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@32fb80{ url=null ,addedOrder=0}
2006-12-15 10:44:57,171 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@11daf60{ url=null ,addedOrder=0}
2006-12-15 10:44:57,171 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1e4e3e4{ url=null ,addedOrder=0}
2006-12-15 10:44:57,187 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1882ea9{ url=null ,addedOrder=0}
2006-12-15 10:44:57,187 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@12438f1{ url=null ,addedOrder=0}
2006-12-15 10:44:57,187 DEBUG [org.jboss.ejb3.EJBContainer] Initialising interceptors for Dispatcher...
2006-12-15 10:44:57,187 DEBUG [org.jboss.ejb3.EJBContainer] Default interceptors: null
2006-12-15 10:44:57,203 DEBUG [org.jboss.ejb3.EJBContainer] Class interceptors: [InterceptorInfo{class=class org.jboss.seam.ejb.SeamInterceptor}]
2006-12-15 10:44:57,203 DEBUG [org.jboss.ejb3.EJBContainer] All applicable interceptor classes: [InterceptorInfo{class=class org.jboss.seam.ejb.SeamInterceptor}]
2006-12-15 10:44:57,203 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1b4d679{ url=null ,addedOrder=0}
2006-12-15 10:44:57,203 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@16ca3d5{ url=null ,addedOrder=0}
2006-12-15 10:44:57,203 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1dd8664, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1af0af7{ url=null ,addedOrder=0}
2006-12-15 10:44:57,203 DEBUG [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
2006-12-15 10:44:57,218 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=notesproject.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 with dependencies:
2006-12-15 10:44:57,218 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:ear=notesproject.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3
2006-12-15 10:44:57,218 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
2006-12-15 10:44:57,218 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Creating jboss.j2ee:ear=notesproject.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3
2006-12-15 10:44:57,218 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Created jboss.j2ee:ear=notesproject.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3
2006-12-15 10:44:57,218 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:ear=notesproject.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 dependents are: []
-------
some more:
nstalling MBean: jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3 with dependencies:
2006-12-15 10:45:02,140 INFO [org.jboss.ejb3.JmxKernelAbstraction] persistence.units:ear=notesproject.ear,jar=notesproject.jar,unitName=notesproject
2006-12-15 10:45:02,140 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3
2006-12-15 10:45:02,140 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: [persistence.units:ear=notesproject.ear,jar=notesproject.jar,unitName=notesproject]
2006-12-15 10:45:02,140 DEBUG [org.jboss.system.ServiceController] recording that jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3 depends on persistence.units:ear=notesproject.ear,jar=notesproject.jar,unitName=notesproject
2006-12-15 10:45:02,140 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Creating jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3
2006-12-15 10:45:02,140 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Created jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3
2006-12-15 10:45:02,140 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3 dependents are: []
2006-12-15 10:45:02,140 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3
2006-12-15 10:45:02,140 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting jboss.j2ee:ear=notesproject.ear,jar=notesproject.jar,name=LogRegisterAction,service=EJB3
2006-12-15 10:45:02,140 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String com.omxgroup.oith.LogRegisterAction.logregister() - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@79edfe
2006-12-15 10:45:02,156 DEBUG [org.jboss.ejb3.tx.UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@f7ce53
2006-12-15 10:45:02,156 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String com.omxgroup.oith.LogRegisterAction.logregister() - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@168be1b
-------------
yad yad yad, some more:
-----------
ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
2006-12-15 10:45:01,625 INFO [org.hibernate.tool.hbm2ddl.DatabaseMetadata] table not found: OMXLogs
2006-12-15 10:45:01,625 INFO [org.hibernate.tool.hbm2ddl.DatabaseMetadata] table not found: users
2006-12-15 10:45:01,625 INFO [org.hibernate.tool.hbm2ddl.DatabaseMetadata] table not found: OMXLogs
2006-12-15 10:45:01,625 INFO [org.hibernate.tool.hbm2ddl.DatabaseMetadata] table not found: users
2006-12-15 10:45:01,625 DEBUG [org.hibernate.tool.hbm2ddl.SchemaUpdate] create table OMXLogs (logName varchar(255) not null, id bigint generated by default as identity (start with 1), errorType varchar(100) not null, customerName varchar(100) not null, causingReason varchar(1000) not null, involvementInformation varchar(1000) not null, afflictedParts varchar(100) not null, estimatedCost varchar(100) not null, logDescription varchar(2000) not null, primary key (id))
2006-12-15 10:45:01,625 DEBUG [org.hibernate.tool.hbm2ddl.SchemaUpdate] create table users (username varchar(15) not null, name varchar(255) not null, password varchar(15) not null, primary key (username))
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994201#3994201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994201
19 years, 7 months
[JBoss Seam] - Re: problem to load classes
by JoviJojo
yes, i restarted the deployment. in my application the use cases should be (to start with)
1) user login
2) register new logs
the user login case seam to be fine,
but the register log part are not working!! for one that the new log table are not created, and input text fields do not work. i can see the 'name' of each input field, BUT you can enter anything there, basically you got list of input fields titiles
please give me a hint: many thanks in advance!!!"
here are some codes
__________
log.java
package com.omxgroup.oith;
import java.io.Serializable;
import javax.persistence.GeneratedValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;
import org.jboss.seam.annotations.Name;
@Entity
@Name("omxlog")
@Table(name="OMXLogs")
public class OMXLog implements Serializable
{
private Long id;
private String logName;
private String customerName;
private String errorType;
private String causingReason;
private String involvementInformation;
private String afflictedParts;
private String estimatedCost;
private String logDescription;
private static final long serialVersionUID = 1881413500711441955L;
public OMXLog(String logName, String customerName, String errorType, String causingReason,
String involvementInformation, String afflictedParts, String estimatedCost, String logDescription)
{
this.logName = logName;
this.customerName = customerName;
this.errorType = errorType;
this.causingReason = causingReason;
this.involvementInformation = involvementInformation;
this.afflictedParts = afflictedParts;
this.estimatedCost = estimatedCost;
}
public OMXLog() {}
@Id @GeneratedValue
public Long getId()
{
return id;
}
public void setId(Long id)
{
this.id = id;
}
@Id @NotNull @Length(min=5, max=15)
public String getLogName()
{
return logName;
}
public void setLogName(String logName)
{
this.logName = logName;
}
@Length(max=100) @NotNull
public String getCustomerName()
{
return customerName;
}
public void setCustomerName(String customerName)
{
this.customerName = customerName;
}
@Length(max=100) @NotNull
public String getErrorType()
{
return errorType;
}
public void setErrorType(String errorType)
{
this.errorType = errorType;
}
@Length(max=1000) @NotNull
public String getCausingReason()
{
return causingReason;
}
public void setCausingReason(String causingReason)
{
this.causingReason= causingReason;
}
@Length(max=1000) @NotNull
public String getInvolvementInformation()
{
return involvementInformation;
}
public void setInvolvementInformation(String involvementInformation)
{
this.involvementInformation = involvementInformation;
}
@Length(max=100) @NotNull
public String getAfflictedParts()
{
return afflictedParts;
}
public void setAfflictedParts(String afflictedParts)
{
this.afflictedParts = afflictedParts;
}
@Length(max=100) @NotNull
public String getEstimatedCost()
{
return estimatedCost;
}
public void setEstimatedCost(String estimatedCost)
{
this.estimatedCost = estimatedCost;
}
@Length(max=2000) @NotNull
public String getLogDescription()
{
return logDescription;
}
public void setLogDescription(String logDescription)
{
this.logDescription = logDescription;
}
}
---------------
LogRegister.java
package com.omxgroup.oith;
import javax.ejb.Local;
@Local
public interface LogRegister
{
public String logregister();
}
-----------
LogRegisterAction.java
//Author JOXI
//OMX Developer
//Date: 2006-12-06
package com.omxgroup.oith;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ejb.*;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.core.FacesMessages;
@Stateless
@Name("logregister")
public class LogRegisterAction implements LogRegister
{
@In
private OMXLog omxlog;
@PersistenceContext
private EntityManager em;
@In(create=true)
private transient FacesMessages facesMessages;
public String logregister()
{
List existing = em.createQuery("select logName from OMXLog where logName=:logName")
.setParameter("logName", omxlog.getLogName())
.getResultList();
if (existing.size()==0)
{
em.persist(omxlog);
facesMessages.add("Add new log: #{omxlog.logName} to OMX Log clearing database");
//log.info("Registered new user #{user.username}");
return "/logregister.xhtml";
}
else
{
FacesMessages.instance().add(" this log: #{omxlog.logName} already exists in the database, create a new one or edit it later");
return null;
}
}
}
--------------
registerLog.xhtml
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
template="layout/template.xhtml">
<ui:define name="body">
<h:form>
<h:messages globalOnly="true" styleClass="message"/>
<h1>Register a new log</h1>
<s:validateAll>
Log Name
<h:inputText value="#{omxlog.logName}" required="true"/>
<h:outputLabel for="customerName">customer Name:</h:outputLabel>
<h:inputText id="customerName" value="#{omxlog.customerName}" required="true"/>
<h:message for="customerName"/>
<h:outputLabel for="causingReason">Causing Reason:</h:outputLabel>
<h:inputText id="causingReason" value="#{omxlog.causingReason}" required="true"/>
<h:message for="causingReason" />
<h:outputLabel for="involvementInformation">involvement information:</h:outputLabel>
<h:inputText id="involvementInformation" value="#{omxlog.involvementInformation}" required="true"/>
<h:message for="causingReason" />
<h:outputLabel for="causingReason">Estimated Cost:</h:outputLabel>
<h:inputText id="estimatedCost" value="#{omxlog.estimatedCost}" required="true"/>
<h:message for="estimatedCost" />
<h:outputLabel for="afflictedParts">Afflicted Parts:</h:outputLabel>
<h:inputText id="afflictedParts" value="#{omxlog.afflictedParts}" required="true"/>
<h:message for="afflictedParts" />
<h:outputLabel for="logDescription">Log Description:</h:outputLabel>
<h:inputText id="logDescription" value="#{omxlog.logDescription}" required="true"/>
<h:message for="logDescription" />
</s:validateAll>
<h:messages globalOnly="true" />
 
<h:commandButton value="Register New Log" action="#{logregister.logregister}" class="button"/> 
<s:link value="Cancel" action="logRegister" linkStyle="button" buttonClass="button"/>
</h:form>
</ui:define>
</ui:composition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994200#3994200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994200
19 years, 7 months
[JBoss Portal] - Re: 401 error on selecting dashboard....
by macjboss
Hey,
I was previously using the built in HSQL db, so to test out whether the db config was causing the security issues I swapped the portal datasource to MSSQL, when the portal rebuilt the db I can now access all portlets in the admin page, with the exception of the Role Portlet, which fits with Peter's comment that the portlet has a hard coded role in there and the existing db config meant the changed -object.xml's settings were being ignored. So, I am very close to having what I want! :)
Thomas, I'm not sure I follow your point? I don't want application roles and user roles. I want one set of roles (groups), configured in AD to place users in so they have access to portal resources. The way I am doing that is working fine; my custom AD module gets the roles the user belongs to on login and they are used to protect/grant access to the appropriate resources in the portal. The problem is the hard coded role in the role portlet?
If you could elaborate that would be great. I will however look in to JAAS and its use in portlets :)
Thanks,
Paul
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994192#3994192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994192
19 years, 7 months
[EJB 3.0] - Re: life cycle methods seems to be called twice in rc 9.
by dilator
I get this too - my @Service bean is stopped and destroyed, and then it tries again:
| 10:55:50,687 INFO [BounceMailServiceImpl] Service destroyed
| 10:55:50,687 WARN [ServiceDelegateWrapper] Stopping failed jboss.j2ee:ear=landmark.ear,jar=landmark.jar,name=BounceMailServiceImpl,service=EJB3
| java.lang.RuntimeException: javax.management.InstanceNotFoundException: landmark:service=BounceMailService is not registered.
| at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:159)
| at org.jboss.ejb3.service.ServiceContainer.stop(ServiceContainer.java:166)
| 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:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.stopService(ServiceDelegateWrapper.java:118)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
| at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.stop(Unknown Source)
| at org.jboss.system.ServiceController.stop(ServiceController.java:508)
| at org.jboss.system.ServiceController.stop(ServiceController.java:499)
| at org.jboss.system.ServiceController.stop(ServiceController.java:499)
| at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.stop(Unknown Source)
| at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:336)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy35.stop(Unknown Source)
| at org.jboss.deployment.XSLSubDeployer.stop(XSLSubDeployer.java:202)
| at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
| at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
| at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
| at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
| at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:108)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
| at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
| at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
| at sun.rmi.transport.Transport$1.run(Transport.java:153)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
| at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
| at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.management.InstanceNotFoundException: landmark:service=BounceMailService is not registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
| at org.jboss.mx.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:383)
| at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:155)
| ... 101 more
| 10:55:50,687 WARN [ServiceController] Ignoring request to stop nonexistent service: landmark:service=BounceMailService
|
p.s. does anyone know how to use Quartz for the TimerService?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994191#3994191
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994191
19 years, 7 months
[Security & JAAS/JBoss] - Problems in Active Directories Creation
by raj.shanmug
Hi all,
I have a requirement to creat Active Directory in JBoss. This is my Login-cofig.xml for the same. Please can anyone correct the same, as i am reporting errors on connection.
<application-policy name="LdapToActiveDirectory">
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="sufficient" >
<module-option name="java.naming.provider.url">ldap://cscadc001:1389/</module-option>
<module-option name="rolesCtxDN">cn=Senthilkumar_Ponnusami,ou=Users,ou=csc,ou=chn,ou=india,dc=corp,dc=satyam,dc=ad</module-option>
<module-option name="matchOnUserDN">false</module-option>
<module-option name="principalDNSuffix">@corp.satyam.ad</module-option>
<module-option name="uidAttributeID">sp48553</module-option>
<module-option name="roleAttributeID">memberOf</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
<module-option name="roleNameAttributeID">name</module-option>
<module-option name="defaultRole">AuthUser</module-option>
</login-module>
</application-policy>
I am getting the following exception while using the above configuration.
16:20:50,617 WARN [UDP] packet from /172.18.94.230:1137 has different version (
0227?) from ours (02271). This may cause problems
16:20:50,617 ERROR [UDP] exception=java.io.StreamCorruptedException: invalid str
eam header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737
)
at java.io.ObjectInputStream.(ObjectInputStream.java:253)
at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:670)
at org.jgroups.protocols.UDP.run(UDP.java:249)
at java.lang.Thread.run(Thread.java:534)
Along with the invalid Authentication error. Can anyone come up with a solution for the above issue.
Thanks
Raj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994186#3994186
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994186
19 years, 7 months
[JBoss Messaging] - JBoss 5.0beta1: ejb3-timer-service.xml with PostgreSQL
by Juergen.Zimmermann
In ejb3-timer-service.xml I made these changes:HSQLDBDelegate -> PostgreSQLDelegate
| qrtz_job_details: BINARY -> oid
| IS_VOLATILE VARCHAR(1) -> IS_VOLATILE boolean
| qrtz_triggers: BINARY -> oid
| IS_VOLATILE VARCHAR(1) -> IS_VOLATILE boolean
| qrtz_blob_triggers: BINARY -> oid
| qrtz_calendars: BINARY -> oid
| qrtz_fired_triggers: IS_VOLATILE VARCHAR(1) -> IS_VOLATILE boolean
| REQUESTS_RECOVERY VARCHAR(1) -> REQUESTS_RECOVERY boolean
When starting JBossAS I get this error message and stack trace although server/default/deploy/postgres-ds.xml defines DefaultDS:2006-12-15 11:24:27,882 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.ejb:persistencePolicy=database,service=EJBTimerService state=Create mode=Manual requiredState=Installed
| java.lang.IllegalStateException: Cannot find datasource meta data: jboss.jdbc:datasource=DefaultDS,service=metadata
| at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.init(GeneralPurposeDatabasePersistencePlugin.java:101)
| at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:92)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:198)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:320)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:190)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:656)
| at org.jboss.system.ServiceController.start(ServiceController.java:431)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:124)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:85)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:44)
| at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53)
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
| at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
| at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
| at org.jboss.Main.boot(Main.java:210)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
Any hint is appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994183#3994183
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994183
19 years, 7 months
[JBoss AOP] - Re: NullPointerException at advised._getInstanceAdvisor();
by robotics80
I rewrite the jboss-aop.xml file because I failed to insert its code:
<!-- Declaring pointcuts -->
| <pointcut name="allPublicMethod"
| expr="execution(public * it.pitagora.sqtp.server.aicagw.fastdeferred.FileFinder->*(..))"/>
| <pointcut name="mainMethod"
| expr="execution(void it.pitagora.sqtp.server.aicagw.fastdeferred.FileFinder->main(..))"/>
| <pointcut name="constructorPointcut"
| expr="execution(it.pitagora.sqtp.server.aicagw.fastdeferred.FileFinder->new(..))"/>
| <pointcut name="logObject" expr="set(it.pitagora.util.log.Log it.pitagora.sqtp.server.aicagw.fastdeferred.FileFinder->*)"/>
|
|
| <!-- Declaring Aspects -->
| <aspect name="logAspect" class="aop.batch.interceptor.LogAspect" scope="PER_INSTANCE">
| <attribute name="PropertyFile">aicagw.properties</attribute>
| </aspect>
|
|
| <!-- Binding pointcuts to Interceptors
| <bind pointcut="(allPublicMethod OR constructorPointcut) AND !mainMethod">
| <interceptor-ref name="logInterceptor"/>
| </bind>
| -->
|
| <!-- Binding pointcuts to Aspects -->
| <bind pointcut="logObject">
| <advice name="getLogger" aspect="logAspect"/>
| </bind>
|
| <bind pointcut="(allPublicMethod OR constructorPointcut) AND !mainMethod">
| <advice name="trace" aspect="logAspect"/>
| </bind>
The error happens when I declare a pointcut expression like this:
| <pointcut name="prova" expr="call(public it.pitagora.util.log.Log->new(..)) AND within(it.pitagora.sqtp.server.aicagw.fastdeferred.FileFinder)"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994169#3994169
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994169
19 years, 7 months