[JBossWS] - Re: client missing wrappers
by goldberg.howard
Also getting a warning about not processing the deployment descriptor for the web context
00:27:27,235 INFO [DefaultEndpointRegistry] register: jboss.ws:context=ecrs-droolsEAR-ecrs,endpoint=ECRSImpl
00:27:27,375 INFO [WSDLFilePublisher] WSDL published to: file:/usr/local/jboss/jboss-5.0.1.GA/server/default/data/wsdl/ecrs-droolsEAR.ear/ecrs.jar/ECRSWsService42478.wsdl
00:27:27,401 INFO [TomcatDeployment] deploy, ctxPath=/ecrs-droolsEAR-ecrs
00:27:27,445 WARN [config] Unable to process deployment descriptor for context '/ecrs-droolsEAR-ecrs'
Here's the implementation annotations:
@WebService (portName="ECRSPort",
targetNamespace="http://goldberg.org/ecrs",
serviceName="ECRSWsService",
endpointInterface="org.goldberg.ECRSWs")
@Stateless
public class ECRSImpl implements ECRSRemote, ECRSLocal, ECRSWs {
Here is the interface:
@WebService (targetNamespace="http://goldberg.org/ecrs")
public interface ECRSWs {
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229247#4229247
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229247
17 years
[EJB/JBoss] - JBossALL client jar
by ypfamily
Hi,
Not really sure if this is the right place to ask this, but I can't really find a better place...
I am running a maven-based java client to a remote session bean. The beans are deployed on JBoss 5.0.1-GA. When I manually include a jbossall-client.jar from the [jboss-home]/client directory in the classpath, everything works just fine...
However, when I include (seemingly) the same JAR pulled from JBoss maven repository (http://repository.jboss.org/maven2/org/jboss/client/jbossall-client/5.0.0.GA), it throws the following exception (which tells me that the pulled JAR is missing some classes):
java.lang.ClassCastException: javax.naming.Reference cannot be cast to org.omg.CORBA.Object
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
I thought it might have been because the server is 5.0.1 and the JAR's version is 5.0, but I downloaded JBoss 5.0 and the result is the same.
Does anyone know if JBoss just messed up and uploaded jbossall-client.jar to the repository that is missing some classes or am I missing something else here?
Thanks,
Yaakov.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229243#4229243
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229243
17 years
[Persistence, JBoss/CMP, Hibernate, Database] - Re: no persistent classes found for query class
by igor007
i did it as you said but nothing hasd been changed.Could you please tell me how to use jpa in jboss.some excamples.as you said i am using jpa.
import javax.naming.InitialContext;
| import javax.persistence.EntityManager;
| import javax.persistence.EntityManagerFactory;
| import javax.persistence.NoResultException;
| import javax.persistence.Persistence;
| import javax.persistence.Query;
|
| import org.hibernate.Session;
| import org.hibernate.SessionFactory;
|
|
| public class LoginBean {
| private String LoginName;
| private String password;
|
| public String getLoginName() {
| return LoginName;
| }
| public void setLoginName(String loginName) {
| LoginName = loginName;
| }
| public String getPassword() {
| return password;
| }
| public void setPassword(String password) {
| this.password = password;
| }
| public String login() throws Exception{
|
|
| EntityManager em = Contexts.getEntityManager();
|
| Query query = em.createQuery(
| "from User user");
|
|
|
|
|
| // execute query
| try {
| User user = (User)query.getSingleResult();
| // store found user to session
| Contexts.getSession().setAttribute("user", user);
| } catch (NoResultException e) {
| // no user found - return failure
| e.printStackTrace();
| return "failure";
| }
|
| //return success
| return "success";
| }
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229229#4229229
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229229
17 years