0 Replies Latest reply on Mar 18, 2014 9:43 AM by rockeys sh

    @annotation webservice not recognized for jboss

    rockeys sh Newbie

      Hi Friends,

       

      I am trying to build the ear file it throws some exceptions like Lexical error: -----====xjavadoc.TokenMgrError: Lexical error at line 44, column 1.  Encountered: "@" (64), after : "" for some of the classes which i used @WebService annotations and also it not recognizing the @jboss.declared-sql also.

       

      Iam using xdoclet 1.2.3 for jdk 1.5 for JBOSS 4.0.5 .

       

      If i deployed that my ear file in JBOSS 4.0.5 and it throws the following exception . I guess these issues are because of the @annotation and not proper xdoclet used.

       

      Please help me to proceed with these issues.

       

      org.jboss.deployment.DeploymentException: The ejb-name element of declared-sql select is only allowed for ejbSelect queries.

        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCDeclaredQueryMetaData.<init>(JDBCDeclaredQueryMetaData.java:189)

        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.createJDBCQueryMetaData(JDBCQueryMetaDataFactory.java:216)

        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.createJDBCQueryMetaData(JDBCQueryMetaDataFactory.java:103)

        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:912)

        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:378)

        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:89)

        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:736)

        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:424)

        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)

        at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)

        at org.jboss.ejb.EjbModule.startService(EjbModule.java:414)

        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

        at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        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.start(Unknown Source)

       

      Thanks in advance.