[JBoss Web Services Users] - Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProvide
by sawan1424
Hi ,
I am new to JBossWS CXF.I am using Eclipse 3.5 Galileo with JBoss AS 4.2.3G.A. I downloaded jbossws-cxf-3.0.2.GA.zip from JBoss website. I extracted the zip and modify the ant.properties file and executed the command accordingly.It executed successfully.I also successfully downloaded JBoss Tools plugins which having inbuilt Jboss WS plugin.
I already setting correct value of JBoss AS in the JBoss WS preferences option from preference option of Eclipse IDE.
After the When created a dynamic project with Jboss 4.2.3 as run time environment.After that I created a java file as
package com.webservice.ws;
@WebService
public class Converter {
@WebMethod
public float celsiusToFarenheit ( float celsius )
{
return (celsius * 9 / 5) + 32;
}
@WebMethod
public float farenheitToCelsius ( float farenheit )
{
return (farenheit - 32) * 5 / 9;
}
}
After that I have to create a wdsl files from this POJO.
So I am selecting Bottom up approach and select this java file and proceed furthe.But after it is throwing an exception
Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:205)
at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLoader.java:138)
at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:68)
at org.jboss.wsf.spi.tools.WSContractProvider.newInstance(WSContractProvider.java:65)
at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:170)
at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77)
Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:200)
... 5 more
Any help would be appriciated.
Please help me out as it is very urgent .Please tell me Where am I making mistake ?
Thanks
Sandy
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261863#4261863
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261863
16 years, 6 months
[JBoss Cache Users] - Re: ClassCastExeption
by pschmiel
I have re-deployed all hibernate related jars. Now I get the following error:
23.10.09 14:32:37 FATAL [s.OptimisticLockingInterceptor: 55] No transaction manager lookup class has been defined. Transactions cannot be used and thus OPTIMISTIC locking cannot be used! Expect errors!! (main)
23.10.09 14:32:37 FATAL [s.OptimisticLockingInterceptor: 55] No transaction manager lookup class has been defined. Transactions cannot be used and thus OPTIMISTIC locking cannot be used! Expect errors!! (main)
Relevant part of config:
<prop key="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JOTMTransactionManagerLookup</prop>
|
JOTMTransactionManagerLookup.class is in $CLASSPATH
Matches in /usr/local/opt/tomcat/webapps/Joca-JCL-Handler/WEB-INF/lib/hibernate-core-3.3.2.GA.jar:
| 1625 Wed Jun 24 01:55:44 CEST 2009 org/hibernate/transaction/JOTMTransactionManagerLookup.class
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261855#4261855
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261855
16 years, 6 months
[JBoss OSGi Users] - OSGi Bundle clustered (farming) deployment ?
by c.vidal
Hi guys and hi Ales, it's been a while :)
I've been kind of away from the JBoss world for some time and digging more into the OSGi/Spring world out of frustration from JBoss not clearly embracing OSGi, a little more than a year ago.
But recently I stumbled upon JBoss OSGi again and was really pleased to discover that JBoss had finally stepped in for good into OSGi. Not only have you gotten pretty far into implementing an OSGi container on top of MC but also integrating existing third party OSGi containers into JBoss AS which is really a smart move. Everyone can now find a suitable match.
What drove me into studying alternative OSGi deployment platforms is the need for clustered deployment of bundles. There is Paremus Infiniflow which does exactly that and much more but their deployment model is way too complicated for the average company. SpringSource DM Server 2 will support it in some way but's it's not yet really clear how/when. And both SpringSource DM Server and Paremus are not currently on CTO radars whereas JBoss already is.
At the end of the day, I'm looking for a simple way to deploy bundles to a cluster of OSGi containers. JBoss farming does exactly that with J2EE deployables but will all deployables supported by JBoss MC support distributed deployment (farming) ? And more specifically, are/will OSGi bundle farming be supported ?
Regarding OSGi, will farming be supported both when JBoss MC is the underlying OSGi implementation and when third party OSGi such as Equinox and Felix are used ?
Kind regards,
Cédric Vidal
http://blog.proxiad.com
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261842#4261842
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261842
16 years, 6 months
[JBoss Web Services Users] - Re: Spring bean injection to Service implementation
by sagolsb
Here are some more information: when the web application starts up the web application context is started as shown in the stack trace below:
[[/CredentialService]] Initializing Spring root WebApplicationContext
[ContextLoader] Root WebApplicationContext: initialization started
....................
[XmlWebApplicationContext] Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@f582e9]: org.springframework.beans.factory.support.DefaultListableBeanFactory@b9915a
.......
[DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@b9915a: defining beans [echoService]; root of factory hierarchy
..............
[ContextLoader] Root WebApplicationContext: initialization completed in 170 ms
Within the web service implementation class, the WebServiceContext is injected through @Resource and the ServletContext is retrieved from this through the MessageContext, both of which are printed out from the service implementation as shown below:
[STDOUT] WebServiceContext: org.jboss.wsf.stack.jbws.WebServiceContextJSE@477e4c
[STDOUT] ServletContext: org.jboss.soa.esb.actions.soap.adapter.SOAPProcessorServletContext@1b4e510
But when I try to retrive the WebApplicationContext through:
webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);
which in turn internally calls:
servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
throws the exception:
ERROR [InvocationHandlerJAXWS] Method invocation failed with exception: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
........................
Caused by: java.lang.UnsupportedOperationException: Not yet supported
at org.jboss.soa.esb.actions.soap.adapter.SOAPProcessorServletContext.getAttribute(SOAPProcessorServletContext.java:45)
..................................
Can you please let me know if I'm missing something?
Regards,
Sagol
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261838#4261838
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261838
16 years, 6 months
[Installation, Configuration & Deployment] - jboss web console error
by rasa
hi,
In my jboss (jboss 4.2.3 GA) when i takes jboss web console using http://myserverip:port/web-console/ i am getiitng an http 500 error page.
| javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
| org.apache.jsp.ServerInfo_jsp._jspInit(ServerInfo_jsp.java:63)
| org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
| org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:158)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:9
Is it because of some jar file is missing ??? Can any one help me to figure out my issue.
Regards
Rasa.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261830#4261830
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261830
16 years, 6 months