[JBossWS] - Help:Cannot obtain endpoint meta data!
by caijc
jboss4.2.2+jdk6
@WebService(name="BookWS",targetNamespace="http://net.cjc.ws",serviceName="BookWSService")
@SOAPBinding(style= SOAPBinding.Style.RPC)
@Stateless
public class BookWS {
@EJB
private AuthorManager am;
@WebMethod
public List getMyBook(String me)
{
return am.queryBooks(me);
}
}
and I also configured web.xml to define this endpoint as a servlet.
While I deploy this war,the following exception is thrown:
ava.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)...
But I still can see this web service from jbossws;When I click the related link,the browser says it cannot phrase XML.Another exception is thrown on the console:
01:25:36,750 ERROR [RequestHandlerImpl] Error processing web service request
java.lang.IllegalStateException: Cannot obtain endpoint meta data
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:520)
Why?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105892#4105892
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105892
18 years, 8 months
[JBoss Seam] - Seam 2.0 + JSF 1.2 + Tomcat 5.5
by krismcg
I am attempting to get the registration example app to work in Tomcat 5.5. I am using the following technologies:
Seam 2.0
Tomcat 5.5
JSF 1.2
I ran the "tomcat.deploy" build target from the jboss-seam-registration example app. The app deployed successfully, however, upon processing a submit, I receive the error:
org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
org.jboss.seam.Component.newInstance(Component.java:1962)
...
root cause
javax.naming.NameNotFoundException: Name jboss-seam-registration is not bound in this Context
org.apache.naming.NamingContext.lookup(NamingContext.java:770)
I am new to SEAM, but it looks powerful, and I really want to incorporate it in our website. Any help is appreciated.
Thanks!
-Kris
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105889#4105889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105889
18 years, 8 months
[JBoss jBPM] - LazyInitializationExceptions while using JbpmTemplate (JBPM
by bluesnails
I have my JbpmTemplate configured correctly in my spring application context and I can inject it into my Spring controllers and other beans, but I am having troubles with LazyInitializationExceptions when using the JbpmTemplate.findProcessInstance(long id) method.
The test code is like that:
===================
public class TestProcessServiceImpl extends TestCase {
private ApplicationContext applicationContext;
private JbpmTemplate jbpmTemplate;
protected void setUp() throws Exception {
super.setUp();
applicationContext = new ClassPathXmlApplicationContext("platform_workflow_ manager_local.xml");
out.println("Creating ApplicationContex-------"+applicationContext );
jbpmTemplate = (JbpmTemplate)applicationContext.getBean("jbpmTemp late");
}
public void testTemplate(){
ProcessInstance p =jbpmTemplate.findProcessInstance(1L);
out.println("======="+p.getId());
}
}
it throws exceptions:
ERROR [org.hibernate.LazyInitializationException] - <could not initialize proxy - the owning Session was closed>
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
at org.hibernate.proxy.AbstractLazyInitializer.initia lize(AbstractLazyInitializer.java:60)
at org.hibernate.proxy.AbstractLazyInitializer.getImp lementation(AbstractLazyInitializer.java:111)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitialize r.invoke(CGLIBLazyInitializer.java:150)
at org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLI B$$5d7ec21a.toString()
============
And the config files likes:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="no" default-lazy-init="false"
default-dependency-check="none">
net.sourceforge.jtds.jdbc.Driver
jdbc:jtds:sqlserver://localhost:1433/jbpmdemo
sa
sa
<!-- Hibernate SessionFactory -->
classpath:workflow/hibernate.cfg.xml
<!-- TODO -->
org.hibernate.dialect.SQLServerDialect
true
<!--
org.hibernate.cache.HashtableCacheProvider
-->
org.hibernate.cache.EhCacheProvider
org.hibernate.hql.ast.ASTQueryTranslatorFactory
<!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
<constructor-arg index="0" ref="jbpmConfiguration" />
========
Any suggestions why i might be experiencing these errors?
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105888#4105888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105888
18 years, 8 months