[Persistence, JBoss/CMP, Hibernate, Database] - Re: Error in entitymanager
by design2006
15:32:16,049 ERROR [[action]] Servlet.service() for servlet action threw excepti
on
java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and S
ettings/kelvin/Desktop/desktop/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1652
5myApp.ear-contents/myApp.jar. Cause: Illegal character in path at i
ndex 18: file:/C:/Documents and Settings/kelvin/Desktop/desktop/jboss-4.2.2.GA/
server/default/tmp/deploy/tmp16525myApp.ear-contents/myApp.jar
at org.hibernate.ejb.packaging.JarVisitor.getVisitor(JarVisitor.java:100
)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
226)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hib
ernatePersistence.java:120)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.
java:51)
at com.mas.mes.dao.HelloDao.(HelloDao.java:20)
at com.mas.mes.ejb.session.HelloBean.hello(HelloBean.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo
ntextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Int
erceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invok
e(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsI
nterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java
:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt
erceptor.java:95)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(Stateles
sInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic
ationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth
enticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce
ptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174319#4174319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174319
17 years, 8 months
[JCA/JBoss] - IBM MQ JCA Connector - error
by dboeckli
I get following errors from time to time:
| 2008-08-28 04:08:39,194 74925630 INFO [com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.W
| SMQQueueConnectionFactory] (WorkManager(2)-20064:) [28/08/08 4:08:39:194 CEST.0] WorkManager(2)-2006
| 4 MQJCA4004:Message delivery to an MDB failed. See the linked exception for details.
| 2008-08-28 04:08:39,194 74925630 INFO [com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.W
| SMQQueueConnectionFactory] (WorkManager(2)-20064:) java.lang.IllegalStateException: Multiple message
| delivery between before and after delivery is not allowed for message endpoint TPFlogMDB
| 2008-08-28 04:08:39,194 74925630 INFO [com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.W
| SMQQueueConnectionFactory] (WorkManager(2)-20064:) at org.jboss.ejb3.mdb.inflow.MessageInflowLocalP
| roxy.delivery(MessageInflowLocalProxy.java:247)
|
Config:
- JBOSS 4.2.1
- IBM MQ-Connector Version: 6.0.2.1
Same question i have posted in the forum of the JCA-connector owner (IBM).
Many Thanks for your help
Dominique
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174317#4174317
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174317
17 years, 8 months
[JBossWS] - Problems accessing SSL webservice
by Vitor Isaia
Greetings,
I have a working jax-ws webservice deployed, wich I access it through a java standalone client. Now I need to enable SSL on it. I've configured jboss-web.deployer/server.xml to create the SSL connection, and now I have my webservice successfully deployed in the following URL:
https://localhost:8443/abc/deteccaopcws?wsdl
with:
...
| <service name="DeteccaoPCWSService">
| <port binding="tns:DeteccaoPCWSBinding" name="DeteccaoPCWSPort">
| <soap:address location="https://localhost:8443/abc/deteccaopcws"/>
| </port>
| </service>
| ...
and in the webservice class:
...
| @WebService(targetNamespace = "xyz.abc.deteccaoPC")
| @WebContext(contextRoot = "/abc", urlPattern = "/deteccaopcws", transportGuarantee="CONFIDENTIAL")
| @Stateless
| @HandlerChain(file = "deteccaopc-handler.xml")
| public class DeteccaoPCWS
| ...
The problem is, since I've turned on SSL, my client doesn't work anymore...
I always get a "Target endpoint no set" exception:
Exception in thread "main" javax.xml.ws.WebServiceException: org.jboss.ws.WSException: Target endpoint address not set
| at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:410)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:316)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
| at $Proxy16.processarDeteccao(Unknown Source)
| at deteccaopc.abc.xyz.client.SingleClient.main(SingleClient.java:70)
| Caused by: org.jboss.ws.WSException: Target endpoint address not set
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:334)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:304)
| ... 4 more
Here is my client service:
@WebServiceClient(name = "DeteccaoPCWSService",
| targetNamespace = "xyz.abc.deteccaoPC", wsdlLocation = "https://localhost:8443/abc/deteccaopcws?wsdl")
| public class DeteccaoPCWSService
| extends Service
| {
|
| private final static URL DETECCAOPCWSSERVICE_WSDL_LOCATION;
| private final static Logger logger = Logger.getLogger(deteccaopc.abc.xyz.DeteccaoPCWSService.class.getName());
|
| static {
| URL url = null;
| try {
| URL baseUrl;
| baseUrl = deteccaopc.abc.xyz.DeteccaoPCWSService.class.getResource(".");
| url = new URL(baseUrl, "https://localhost:8443/abc/deteccaopcws?wsdl");
| } catch (MalformedURLException e) {
| logger.warning("Failed to create URL for the wsdl Location: 'https://localhost:8443/abc/deteccaopcws?wsdl', retrying as a local file");
| logger.warning(e.getMessage());
| }
| DETECCAOPCWSSERVICE_WSDL_LOCATION = url;
| }
| public DeteccaoPCWSService(URL wsdlLocation, QName serviceName) {
| super(wsdlLocation, serviceName);
| }
| public DeteccaoPCWSService() {
| super(DETECCAOPCWSSERVICE_WSDL_LOCATION, new QName("xyz.abc.deteccaoPC", "DeteccaoPCWSService"));
| }
| @WebEndpoint(name = "DeteccaoPCWSPort")
| public DeteccaoPCWS getDeteccaoPCWSPort() {
| return super.getPort(new QName("xyz.abc.deteccaoPC", "DeteccaoPCWSPort"), DeteccaoPCWS.class);
| }
| }
And in the client, I'm setting theseVM properties :
-Djavax.net.ssl.trustStore=/home/vitor/Desktop/wsse.truststore
| -Djavax.net.ssl.trustStorePassword=jbossws
So, the hole code I've show you was working without SSL, in the URL http://localhost:9090/abc/deteccaopcws?wsdl
Even having that exception (Target endpoint no set) I know the webservice is deployed because I can successfully access it in my browser...
One thing I suspect is: Since the certificate is a self-signed certficate, when I acess it in the browser it alerts me about it, asking for the confirmation. I guess that's what is causing the error.
I appreciate any help, thanks.
Vitor Isaia
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174316#4174316
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174316
17 years, 8 months
[Tomcat, HTTPD, Servlets & JSP] - "The requested resource () is not available"
by d_strand
Hi,
I'm new to JBoss and trying to migrate a webapp from Oracle AS to JBoss 4.2.3. The app is using JSF (ADF Faces) and i had to mess around a bit with jars and stuff, but it now deploys successfully into JBoss.
The problem I get is when I try to access the deployed app from a browser, i get the tomcat-error "The requested resource () is not available" (with empty parenthesises). My problem is I can not see any error anywhere in any logs. I've set all log4j filters to DEBUG (including JBoss' own) and there are absolutely no errors in deployment nor on access.
I can see in the jboss-logs that the entire jsf-lifecycle, from view-create to render-response, is sucessful. But after render-response, i get the error in the browser (the error is not logged anywhere in any file i can see)
Does anyone have any idea or maybe know which logfile i should look in? I've only found server.log, boot.log and my own application-logfile, and neither of these holds any errors.
Grateful for any help,
-Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174314#4174314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174314
17 years, 8 months