EJB Problem in JBoss

Hi ,
I am able to successfully deploy the .ear file in Jboss ..but when i try to call the Entity Bean ...i get the following Exception on JBoss Server Console :
18:15:42,595 INFO [STDOUT] javax.ejb.CreateException: Error checking if entity exists:com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near 'WHERE'.
This is giving me a lot of pain ..can anyone suggest me is something i am missing ?
I would appreciate for Ur feedback .
Thanks

topic"virtual routing network emulation framework"http://www.google.com/search?q=virtual+routing+network+emulation+framework&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

Similar Messages

  • EJB 3 and JBoss 5!!

    Hi,
    Currently I am working on EJB 3 and JBoss 5. I am new to this kind of environment. Now the present application is running on different platform. Basically when the customer/shop owner swipes a card in POS system we get message. Now I need to listen existing port and need to get that message then process it through using EJB3. We are not using servlets. JSP's , JMS.
    Is there anyway to start a thread to listen on port when the EJB is deployed? or Is there anyway to listen on port using JBoss or EJB?
    What is the best way to do it?
    Thanks in advance.
    Bachi.

    Yeah we can do that. In fact I tried it and it worked but as a stand alone application. I need to make sure that listens on the port when the application server starts or when the ejb is deployed. That is the problem here. In my first question I mentioned that we are not using JSP's right if there is any solution through servlets or JSP's I would like to use them.
    Here is the program which runs as standalone. Unfortunately I got this program from online :)
    import java.io.BufferedOutputStream;
    import java.io.IOException;
    import java.io.OutputStreamWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class BeanSocket implements Runnable {
         private Socket connection;
         private String TimeStamp;
         private int ID;
         Runnable runnable;
         BeanSocket(Socket s, int i) {
              this.connection = s;
              this.ID = i;
         public  static void main(String args[]){
              int port = 19999;
              int count = 0;
              try {
                   ServerSocket socket1 = new ServerSocket(port);
                   System.out.println("MultipleSocketServer Initialized");
                   while (true) {
                        Socket connection = socket1.accept();
                        Runnable runnable = new BeanSocket(connection, ++count);
                        Thread thread = new Thread(runnable);
                        thread.start();
              } catch (Exception e) {
         public void run() {
              try {
                   // need to wait 10 seconds to pretend that we're processing
                   // something
                   try {
                        Thread.sleep(1000);
                   } catch (Exception e) {
                        e.printStackTrace();
                   TimeStamp = new java.util.Date().toString();
                   String returnCode = "MultipleSocketServer repsonded at " + TimeStamp + (char) 13;
                   BufferedOutputStream os = new BufferedOutputStream(connection.getOutputStream());
                   OutputStreamWriter osw = new OutputStreamWriter(os, "US-ASCII");
                   osw.write(returnCode);
                   osw.flush();
              } catch (Exception e) {
                   System.out.println(e);
              } finally {
                   try {
                        connection.close();
                   } catch (IOException e) {
    }Edited by: bachi. on Jun 28, 2009 12:00 PM
    Edited by: bachi. on Jun 28, 2009 12:02 PM

  • How to access EJB deployed in JBOSS 4 from Creator

    Hello.
    I am trying to access EJBs deployed on JBOSS in order to develop a web app client, when I import the EJB set from Creator (sessions and entities packages in a jar file) I got the following error message....."No EJB set found in file....." .
    I presume there is an kind of xml file description specific for Sun App Server missing. I would like to know if there is other way to expose EJB in creator?....maybe write a config file by hand.
    I already read the tutorials related to EJB but those only use pre build EJB jars for Sun App Sserver.
    Also I read all the posted about JBoos and EJB in this forum but those are pretty general.
    By the way I have Delegate classes to access the EJB. How do I register my delegates in Creator in order to expose their methods?
    I�ll really appreciate some light in this matter.
    Thanks in advance!!!

    Hi,
    The below forum thread may help you :
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51321
    Thanks,
    Runa.

  • OSB calling EJB on JNP(JBoss) protocol

    Hello
    I'm trying create a JNDI Provider on OSB to call an EJB on a JBoss Application server on the JNP protocol, but when i try to call/test it, I get this error:
    java.net.UnknownHostException: Unknown protocol: 'JNP'
    I read on documentation: "You can use any protocol, for example, http, https, t3, t3s, iiop, iiops"
    Can I use just it? or no?
    Thanks.
    Leonardo
    Edited by: lmfantinel on 21/10/2009 10:19

    we can use any of the protocols listed in the documentation at http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/global_resources.html. Other protocol like ormi,jnp etc don't have out of box support. Such use cases will require using iiop if possible.
    two cents
    Manoj

  • JBoss ejb problem

    I created a ear file wich contains a jar and war file. The jar contains an entity and session bean. The war file contains my junitee test case.
    When I deploy the file I can surf to the url and my test goes fine. When I move the file from the deploy dir to someplace else (jboss starts undeploying) and move it back couple seconds later (jboss deploys again) I get this error while doing the same test again:
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293) ...........
    The error appears at the line where I try to narrow cast the object to my home interface.
    When I restard jboss , the test runs fine again.
    Anyone ideas ?

    When I move the file from the deploy dir to someplace else (jboss starts undeploying) and move it back couple seconds later (jboss deploys again)
    This feature is called hot redeploy, the deploy directory is a place where you keep the files you want to deploy on the server. Whenever there are any changes in this directory .. moving files etc, the JBoss redeploys the new files, or undeploys the files removed from that place.
    This is needed, because practically the servers are supposed to be up all the time, so if you need to make any updates etc, you could just paste the new files(or new versions) and they are redeployed.
    I get this error while doing the same test again
    When I restard jboss , the test runs fine again
    This is happening because your test case is typically looking at the old version of your beans. But then why are you moving the files ... testing ? or do u really need to do that ?
    If you are changing some implementation, just redploy the bean class and leave the interfaces like that. You should be fine
    Regards
    Meka Toka

  • EJB problem (Seam 2.1.2 + WLS 10.3)

    Hi,
    I'm having some problems getting the EJB version of the booking example in Seam 2.1.2 working with WebLogic 10.3, and I'm hoping that someone here might have some advice. I followed the instructions in Chapter 39 of the Seam documentation for building the application on WebLogic 10.3 (http://docs.jboss.org/seam/2.1.2/reference/en-US/html/weblogic.html), worked through a few dependency issues, and got the application to the point where it deployed cleanly into WLS. When I go to http://localhost:7001/seam-booking, though, I get lots of exceptions, each of whose root cause is this:
    Caused by: javax.naming.NameNotFoundException: While trying to lookup 'jboss-seam-booking.EjbSynchronizations/local' didn't find subcontext 'jboss-seam-booking'. Resolved ''; remaining name 'jboss-seam-booking/EjbSynchronizations/local'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.jboss.seam.Component.instantiateSessionBean(Component.java:1400)
    at org.jboss.seam.Component.instantiate(Component.java:1364)
    at org.jboss.seam.Component.newInstance(Component.java:2122)
    ... 48 more
    On the "Deployments" tab of the admin console, I can expand the deployed EAR and see the packaged EJB jars inside of there, and they're identified as EJBs, but I don't see anything in the JNDI tree for that server.
    I am able to get beyond this error by commenting out the "<transaction:ejb-transaction/>" line in components.xml, which gets me to the booking application's home page in the browser, but trying to do anything else (log in, for example), hits the same kinds of error, just with different beans (like the AuthenticatorAction bean).
    Thanks in advance for any suggestions!
    Mark

    I worked out the solution to this one, and have documented it at http://seamframework.org/Community/Weblogic103SetupWithEjbBookingExample#comment106254 for future reference.

  • MDB Deployment Problem in JBoss 4.0.3SP1

    Hi All,
    I am upgrading my App Server from JBoss 323 to JBoss 403.
    I had some MDBs, that are running successfully in JBoss 323.
    But when I tried to redeploy them(after recompiling with jdk1.5), I am facing few issues with them.
    First of all, I have a MDB whose destination was in some other Jboss server instance. That means I am trying to connect my destination "Queue" as remotely. At that time it is thorowing exception like as follows at my server startup time.......
    2006-04-17 07:17:15,191 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter:                     java:/Server1JMSProvider
    2006-04-17 07:17:15,191 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter:                     org.jboss.jms.jndi.JNDIProviderAdapter@20dcb7
    2006-04-17 07:17:15,191 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
    2006-04-17 07:17:15,191 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using factory:                     org.jboss.mq.SpyXAConnectionFactory@1ebe8ec
    2006-04-17 07:17:15,191 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Created connection:                     Connection@10751758[token=ConnectionToken:null/b3e21fe26fd3b44f4a0c5bb69995e669                     rcvstate=STOPPED]
    2006-04-17 07:17:15,472 DEBUG [org.jboss.mq.referenceable.SpyDestinationObjectFactory]                     SpyDestinationObjectFactory->getObjectInstance()
    2006-04-17 07:17:15,488 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using Queue: QUEUE.DLQ
    2006-04-17 07:17:15,488 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Created DLQHandler
    2006-04-17 07:17:15,488 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] context: javax.naming.InitialContext@106989e
    2006-04-17 07:17:15,488 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] jndiSuffix: [u]xxxQueue[/u]
    2006-04-17 07:17:15,488 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Got destination type Queue for LifecycleMDB
    2006-04-17 07:17:15,488 DEBUG [org.jboss.jms.ConnectionFactoryHelper] using connection factory:                                         org.jboss.mq.SpyXAConnectionFactory@1ebe8ec
    2006-04-17 07:17:15,488 DEBUG [org.jboss.jms.ConnectionFactoryHelper] using username/password: null/null
    2006-04-17 07:17:15,488 DEBUG [org.jboss.jms.ConnectionFactoryHelper] created XAQueueConnection:                                         Connection@13605872[token=ConnectionToken:null/ea8d256e12a297e358803b37d7bfee4d                               rcvstate=STOPPED]
    2006-04-17 07:17:15,488 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Using client id: null
    2006-04-17 07:17:15,488 WARN  [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not find the queue                                         destination-jndi-name=queue/[u]xxxQueue[/u]
    2006-04-17 07:17:15,488 WARN  [org.jboss.ejb.plugins.jms.JMSContainerInvoker] destination not found: queue/[u]xxxQueue[/u]                               reason: javax.naming.NameNotFoundException: [u]xxxQueue[/u] not bound
    2006-04-17 07:17:15,488 WARN  [org.jboss.ejb.plugins.jms.JMSContainerInvoker] creating a new temporary destination:                               queue/[u]xxxQueue[/u]
    2006-04-17 07:17:15,488 DEBUG [org.jboss.mq.server.jmx.DestinationManager] Attempting to create destination:                                    jboss.mq.destination:service=Queue,name=xxxQueue; type=org.jboss.mq.server.jmx.Queue
    2006-04-17 07:17:15,488 INFO  [org.jboss.mq.server.jmx.Queue.xxxQueue] Registration is not done -> stop
    2006-04-17 07:17:15,488 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnect failed: JMS provider failure detected:
    org.jboss.deployment.DeploymentException: Error during queue setup; - nested throwable: (javax.management.MBeanException)
         at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)My jboss.xml was
    <jboss>
       <enterprise-beans>
          <message-driven>
             <ejb-name>LifecycleMDB</ejb-name>
             <destination-jndi-name>queue/xxxQueue</destination-jndi-name>
             <invoker-bindings>
               <invoker>
                 <invoker-proxy-binding-name>server1-message-driven-bean</invoker-proxy-binding-name>
               </invoker>
             </invoker-bindings>
             <resource-ref>
                <res-ref-name>jms/QueueFactory</res-ref-name>
                <jndi-name>UIL2XAConnectionFactory</jndi-name>
             </resource-ref>
          </message-driven>
       </enterprise-beans>
       <invoker-proxy-bindings>
           <invoker-proxy-binding>
             <name>server1-message-driven-bean</name>
             <invoker-mbean>default</invoker-mbean>
             <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
             <proxy-factory-config>
             <JMSProviderAdapterJNDI>Server1JMSProvider</JMSProviderAdapterJNDI>
             <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
             <CreateJBossMQDestination>true</CreateJBossMQDestination>
                <MaximumSize>15</MaximumSize>
                <MaxMessages>1</MaxMessages>
                <MDBConfig>
                   <ReconnectIntervalSec>10</ReconnectIntervalSec>
                   <DLQConfig>
                      <DestinationQueue>queue/DLQ</DestinationQueue>
                      <MaxTimesRedelivered>10</MaxTimesRedelivered>
                      <TimeToLive>0</TimeToLive>
                   </DLQConfig>
                </MDBConfig>
             </proxy-factory-config>
          </invoker-proxy-binding>
      </invoker-proxy-bindings>
    </jboss>and my deployment file consist of the following code
    <server>
    <!-- The JMS provider loader -->
      <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
          name="jboss.mq:service=JMSProviderLoader,name=Server1MQProvider">
        <attribute name="ProviderName">Server1JMSProvider</attribute>
        <attribute name="ProviderAdapterClass">
          org.jboss.jms.jndi.JNDIProviderAdapter
        </attribute>
        <!-- The combined connection factory -->
        <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
        <!-- The queue connection factory -->
        <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
        <!-- The topic factory -->
        <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
        <!-- Uncomment to use HAJNDI to access JMS-->
        <attribute name="Properties">
           java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
           java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
           java.naming.provider.url=jnp://SERVER:1499
        </attribute>
      </mbean> 
    </server>

    Did you find a solution to this problem?

  • Maven 3 + JavaFX 2 + EJB 3.1 + JBoss AS 7. Is this possible?

    Good afternoon guys I'm new in the forum, and I'm studying recently JavaFX 2.
    My question is: Is it possible to create an application JavaFX 2 and make it available in a JBoss 7 application server?
    I'm doing some tests of architecture (a simple login), and this is my structure, I'll need JBoss 7 as server, EJB 3.1 for the business layer and as Maven dependency management. If the JFX not fit this scope, I will need to change the view layer technology.
    So what I did do, was the integration of JavaFX 2 with EJB 3.1 (@EJB) and maven, all right here.
    The problem is that when I put the module in order to deploy jboss, the following message appears in jboss log:
    *"java.lang.ClassNotFoundException: javafx.application.Application"*
    The structure consists of:
    - a jar with the business logic layer and the model / database access;
    - a jar with a client application in JavaFX.
    These jars are in the "deployments" from JBoss and when JBoss starts, it creates these jars and provides as modules.
    The business jar starts and it becomes available, but the client does not , giving the above message.
    Note: The same structure works with JSF 2, the only difference therefrom is that the jar is replaced by a customer client war.
    Could someone give me a help or light on this situation?
    Perhaps some possible outputs for this situation, I do not know if this is the best practice, but in order to use separate jars, is able to make an application that can be modified in parts, not needing to re-deploy a complete application, every time that a change is made.
    Thank you.

    Thanks for posting a link to the TreeGrid control you are using, this greatly helps in understanding the context.
    Also thank you for the feedback.
    The functionality of the TreeGrid is significant and the effort involved in implementing something like that native to JavaFX would be substantial, hence I understand why you want to embed it in a WebView. It amazes me that people go to such effort to build html controls of such complexity.
    Evaluating JavaFX performance with TreeGrid is mostly evaluating just the WebView component. rather than JavaFX as whole. WebView is just one part of JavaFX. I assume you know that already and have likely tested other features. Using TreeGrid as a benchmark is reasonable if you need to create JavaFX clients with embedded WebView that renders TreeGrid or similar very rich html components.
    I tried running the TreeGrid off the TreeGrid site.
    From a few quick tests, most of the generated TreeGrids seemed to work fine.
    Startup of the TreeGrid was slow (maybe 10 seconds) before the page rendered vs about 2 seconds in Firefox. Performance of WebView in general is not too bad at the moment and is comparable with the major browsers for most tasks (see http://stackoverflow.com/questions/10762979/performance-of-webview-in-javafx). There exist some particular operations which obviously bottleneck it sometimes when stressed and I guess TreeGrid uses some of those.
    Some functions of the TreeGrid did not work because JavaFX WebView does not natively support them.
    Support for these functions should be added at a later stage, for other functions support will likely never be added.
    For example,
    - some of the combo box options embedded in the TreeView were displayed sequentially rather than in a dropdown as on Firefox.
    - the Gannt Chart project schedule did not render (likely because it makes use a bdo tag which is not yet supported).
    - tables embedding Adobe Flash and Silverlight components did not render those because WebView does not (and probably won't ever) support those plugins.
    - printing of the TreeGrid is not supported (printing is being added to JavaFX in a future release).
    - trying to display some tables even generated jvm crashes - which is unfortunate.
    Taking all of the above together, really if you app required a TreeGrid, I would agree with you that it would be best not to display it in a WebView as WebView is not quite mature enough to handle it (perhaps in a couple more releases it will be). Instead, what I would do is just use a HostServices.showDocument call to display the TreeGrid in the system web browser and use JavaFX for other parts of the app as appropriate.
    http://docs.oracle.com/javafx/2/api/javafx/application/HostServices.html#showDocument%28java.lang.String%29
    Could be web (war), attach a jar in a web application (shell), is ugly hack.I was just advocating not placing the JavaFX application in a war because it is then deployable against a standard web server or off the file system rather than on a war aware web application server and is because it is easier to describe for troubleshooting because there is one less packaging step to go wrong. But there is nothing stopping you placing the jnlp, html, app jar and dependent jars inside a war and serving the war containing those contents from your java web application server if you wanted to do it that way.
    Could be compatible with Maven natively, or at least be less sufferable to implement using Maven.Yeah, quality maven integration support is lacking . . . could definitely be improved with time and effort.
    It would be nice to see an independent 3rd party implementation of an open source javafx specific maven plugin, but nobody has yet and the JavaFX deployment team has been too busy implementing other (important) features such as the ant packaging tasks, native packaging support and deployment support across all supported platforms and configurations to undertake this (which is understandable to me).
    The JavaFX could have a TreeTable with such features as this Treegrid.Yep, that would also be a good thing . . . could definitely be added with time and effort.
    Probably this could be done as a 3rd party control or project like the jgoodies stuff for swing: http://www.jgoodies.com/.
    JavaFX has failed the test . . . JavaFX could be a web development language for enterprise software.For some organizations, some application types, some functions and some processes (e.g. organizations which rely solely on Maven, make use of highly complex html apps like TreeGrid or Google HTML Apps, applications which are mainly document based like a news site, applications that require printing/webcam support, organizations where the skill base is solely html and very little java, or only server side java skills and no client side java development, etc) - then a 100% javafx based solution would not be the way to go. However, that does IMO leave a still large (and growing) number of enterprises and enterprise applications which could potentially benefit greatly from JavaFX based technology. It will be interesting to see if other Oracle groups outside the JavaFX team also come to that conclusion.
    For further perspective, I highly recommend reading: http://fxexperience.com/2012/06/javafx-the-10000-foot-view/
    Sample code I used to run tests on TreeGrid.
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    public class TreeGridView extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(Stage stage) {
        WebView webview = new WebView();
        webview.getEngine().load("http://www.treegrid.com/treegrid/www/");
        stage.setScene(new Scene(webview));
        stage.show();
    }

  • Problem starting JBoss

    Hi,
    I trying to learng EJB and I use JBoss Application Server as my EJB container.
    I installed it online using JNLP from www.jboss.org the version is 4.0.3.
    But the problem is that I can't start the server whenever I click "run.bat".
    The resulting console window shows the following error.
    Could not locate C:\Program Files\Java\jdk1.5.0_05;\lib\tools.jar. Unexpected re
    sults may occur.
    Make sure that JAVA_HOME points to a JDK and not a JRE.
    ===============================================================================
    JBoss Bootstrap Environment
    JBOSS_HOME: C:\Program Files\jboss-4.0.3\bin\\..
    JAVA: C:\Program Files\Java\jdk1.5.0_05;\bin\java
    JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
    CLASSPATH: C:\Program Files\Java\jdk1.5.0_05;\lib\tools.jar;C:\Program Files\j
    boss-4.0.3\bin\\run.jar
    ===============================================================================
    The system cannot find the path specified.
    Press any key to continue . . .
    I have set the environment variables like JAVA_HOME properly but I am still having this problem.
    Please help.
    Bye

    Thank's man I removed it and the server is running.
    Thank's a lot. . . .

  • Deployment Problem in JBoss

    Hello I know its silly question but I am new in this technology and I have problem with deploying my EJB in JBoss.
    I have 3 classes :
    org.ejb.wybory.Model.class - Remote Interface
    org.ejb.wybory.ModelHome.class - Home Interface
    org.ejb.wybory.ModelBean.class - EJB
    and I have ejb-jar.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    Dane
    <display-name>Model</display-name>
    <ejb-name>ModelEJB</ejb-name>
    org.ejb.wybory.ModelHome
    org.ejb.wybory.Model
    <ejb-class>org.ejb.wybory.ModelBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </enterprise-beans>
    </ejb-jar>
    I packed it :
    jar -cvf wybory.jar Meta-Inf org/ejb/wybory/*.class
    and copy wybory jar into \jboss-4.0.1\server\all\deploy
    and it thoes not work :(
    what did I do wrong?
    Thx
    Waglik

    Please post the deployment errors.
    Modify the meta-inf dir to
    META-INF

  • EJB 3.0 & JBoss -- How to run a SLSB in JBoss

    Hi All,
    I am having trouble running an EJB 3.0 SLSB on JBoss AS. I have also tried those specified by others in their cases but havent been able to solve mine. The ejb-jar file is deploying nicely in the server without any errors but I do find that jar files of aspect are not being deployed (the trace is avbl at the end). Have they got to do anything with this?
    I dont know whether I am missing anything or something that has been overlooked. Please diagonise this.
    JBoss AS 4.0.4 GA (installed using EJB 3.0 option)
    JDeveloper 10.1.3 (updated)
    Local
    @Local
    public interface TestStateLessLocal {
    SLSB
    @Stateless(name="TestStateLess")
    @LocalBinding(jndiBinding="TestStateLess")
    public class TestStateLessBean implements TestStateLessLocal {
    public TestStateLessBean() {
    System.out.println(">>> In the bean constructor");
    Client Prg
    public class SLSBClient {
    public SLSBClient() {
    try {
    Hashtable env = new Hashtable();
    env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
    env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
    env.put("java.naming.provider.url", "jnp://localhost:1099");
    Context ctx = new InitialContext(env);
    System.out.println("Context created");
    ctx.lookup("java:comp/env/ejb/TestStateLessLocal");
    System.out.println("Success");
    catch (Exception ex) {
    System.out.println("... EXCEPTION THROWN ...");
    ex.printStackTrace();
    public static void main(String[] args) {
    SLSBClient sLSBClient = new SLSBClient();
    jboss.xml
    <session>
    <ejb-name>TestStateLess</ejb-name>
    <local-jndi-name>TestStateLess</local-jndi-name>
    </session>
    Exception Trace
    javax.naming.NameNotFoundException: comp not bound
         at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
         at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
         at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
         at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at SLSBClient.<init>(SLSBClient.java:18)
         at SLSBClient.main(SLSBClient.java:29)
    Process exited with exit code 0.
    Trace in JBoss when starting the server
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@5b9bf3f3 { url=file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/base-aop.xml }
    deployer: org.jboss.aop.deployment.AspectDeployer@4ac216
    status: Created
    state: CREATED
    watch: file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/base-aop.xml
    altDD: null
    lastDeployed: 1151050772890
    lastModified: 1151050772890
    mbeans:
    org.jboss.deployment.DeploymentInfo@24ac8a8b { url=file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/jboss-aop.jar }
    deployer: org.jboss.deployment.JARDeployer@7a1576
    status: Created
    state: CREATED
    watch: file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/jboss-aop.jar
    altDD: null
    lastDeployed: 1151050773171
    lastModified: 1151050772984
    mbeans:
    org.jboss.deployment.DeploymentInfo@36b91a6d { url=file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/jboss-aspect-library.jar }
    deployer: org.jboss.deployment.JARDeployer@7a1576
    status: Created
    state: CREATED
    watch: file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/jboss-aspect-library.jar
    altDD: null
    lastDeployed: 1151050773281
    lastModified: 1151050773203
    mbeans:
    org.jboss.deployment.DeploymentInfo@baf16a1f { url=file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/trove.jar }
    deployer: org.jboss.deployment.JARDeployer@7a1576
    status: Created
    state: CREATED
    watch: file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/trove.jar
    altDD: null
    lastDeployed: 1151050773406
    lastModified: 1151050773312
    mbeans:
    org.jboss.deployment.DeploymentInfo@c84cee44 { url=file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/ }
    deployer: org.jboss.deployment.SARDeployer@5dd582
    status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.aop:service=AspectManager
    state: FAILED
    watch: file:/D:/JBoss/server/default/deploy/jboss-aop.deployer/META-INF/jboss-service.xml
    altDD: null
    lastDeployed: 1151050773406
    lastModified: 1150602082358
    mbeans:
    Any help would be greatly appreciated.
    Thanks & Regards,
    Hans.

    Hi Prasanth,
    Thank you for responding. Checked out the link. As per the steps listed, I added the jar files and tried looking up as mentioned. However, I am not able to find the session bean registered in JNDIView. I am attaching the trace. Could you please check that out.
    Thanks & Regards,
    Hans.
    Trace in JMX Console
    java: Namespace
    +- jaas (class: javax.naming.Context)
    | +- other (class: org.jboss.security.plugins.SecurityDomainContext)
    | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
    | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
    | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
    +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
    +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
    +- comp.ejb3 (class: javax.naming.Context)
    | NonContext: null
    +- JBossCorbaNaming (class: org.omg.CosNaming.NamingContextExt)
    +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
    +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
    +- TransactionManager (class: org.jboss.tm.TxManager)
    +- JBossCorbaPOA (class: org.omg.PortableServer.POA)
    +- MSSQLDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
    +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- JBossCorbaInterfaceRepositoryPOA (class: org.omg.PortableServer.POA)
    +- Mail (class: javax.mail.Session)
    +- JBossCorbaORB (class: org.omg.CORBA.ORB)
    +- timedCacheFactory (class: javax.naming.Context)
    Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
    +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
    +- comp (class: javax.naming.Context)
    Global JNDI Namespace
    +- HASessionState (class: org.jnp.interfaces.NamingContext)
    | +- Default (class: org.jboss.ha.hasessionstate.server.HASessionStateImpl)
    +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- jmx (class: org.jnp.interfaces.NamingContext)
    | +- invoker (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor (proxy: $Proxy47 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
    | +- rmi (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
    +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- TestStateLess (proxy: $Proxy74 implements No ClassLoaders found for: TestStateLessLocal (no security manager: RMI class loader disabled))
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- UserTransactionSessionFactory (proxy: $Proxy57 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
    +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- invokers (class: org.jnp.interfaces.NamingContext)
    | +- soumitri (class: org.jnp.interfaces.NamingContext)
    | | +- iiop (class: org.jboss.invocation.iiop.IIOPInvoker)
    +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
    +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- HAPartition (class: org.jnp.interfaces.NamingContext)
    | +- DefaultPartition (class: org.jboss.ha.framework.server.HAPartitionImpl)
    +- topic (class: org.jnp.interfaces.NamingContext)
    | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
    | +- testTopic (class: org.jboss.mq.SpyTopic)
    | +- securedTopic (class: org.jboss.mq.SpyTopic)
    +- queue (class: org.jnp.interfaces.NamingContext)
    | +- A (class: org.jboss.mq.SpyQueue)
    | +- testQueue (class: org.jboss.mq.SpyQueue)
    | +- ex (class: org.jboss.mq.SpyQueue)
    | +- DLQ (class: org.jboss.mq.SpyQueue)
    | +- D (class: org.jboss.mq.SpyQueue)
    | +- C (class: org.jboss.mq.SpyQueue)
    | +- B (class: org.jboss.mq.SpyQueue)
    +- console (class: org.jnp.interfaces.NamingContext)
    | +- PluginManager (proxy: $Proxy49 implements No ClassLoaders found for: org.jboss.console.manager.PluginManagerMBean (no security manager: RMI class loader disabled))
    +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
    +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- EventDispatcher (class: org.jboss.ws.eventing.mgmt.DispatcherDelegate)
    +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with JBoss startup in a zone

    Hi!
    I try to run JBoss inside a sparse-root zone, but encounter a problem during startup, it simply stucks always at a certain point.
    This is how the zone is configured:
    root@mantis:/usr/local/Dtrace # zonecfg -z setam-test
    zonecfg:setam-test> info
    zonepath: /var/zone/setam-test
    autoboot: true
    pool:
    inherit-pkg-dir:
    dir: /lib
    inherit-pkg-dir:
    dir: /platform
    inherit-pkg-dir:
    dir: /sbin
    inherit-pkg-dir:
    dir: /usr
    fs:
    dir: /usr/local
    special: /var/zone/setam-test
    raw not specified
    type: lofs
    options: []
    net:
    address: 172.16.14.5
    physical: bge0
    During startup ( bin/startserver.sh ) I watch the server.log with tail -f, but here it comes: the output stopps always at the RMIAdaptor - like
    2006-10-17 11:12:37,810 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/opt/jboss-4.0.2/server/btv/deploy/jmx-invoker-service.xml
    2006-10-17 11:12:37,811 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/opt/jboss-4.0.2/server/btv/deploy/jmx-invoker-service.xml
    2006-10-17 11:12:37,811 DEBUG [org.jboss.system.ServiceController] starting service jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
    2006-10-17 11:12:37,812 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory on jboss.jmx:type=adaptor,name=Invoker
    2006-10-17 11:12:37,812 DEBUG [org.jboss.system.ServiceController] starting service jboss.jmx:alias=jmx/rmi/RMIAdaptor
    2006-10-17 11:12:37,812 DEBUG [org.jboss.naming.NamingAlias] Starting jboss.jmx:alias=jmx/rmi/RMIAdaptor
    Here I can wait for minutes, nothing else follows. At the end I kill the java process.
    I'm definitely no JBoss expert, and I wonder what RMIAdaptor does or what it expects. I assume it tries to initialize something and is not allowed to (?).
    My question is: besides of truss or Dtrace, how should I diagnose this symptom at first hand?
    Thanks ... Nick

    My colleague found the answer: he had disabled the default registration rule. Once enabled, a quick "zac reg" worked.

  • EJB problem with home interface

    Hi firends
    I am beginner to EJB world, and trying first EJB object i.e. Hello World program
    I prepared first Remote interface, HelloBean and it compiled also properly.
    names of program
    Remote interface : Hello
    Bean: HelloBean
    Home interface : HelloHome
    But after preparing Home interface it fails to compile at position of create()
    the declaration is
    public Hello create() throws RemoteException,CreateException
    compilation error pointing at Hello in above statement saying 'Cannot resolve symbol'
    The fact is all these files are located in same directory only
    can anyone help me in this problem as I am eger to execute my first program and want to go further in EJB
    thanx in advance
    Mandar

    Hi Mandar,
    How are you setting the classpath and what exactly is it set to?
    Unresolved symbol can only mean that the class cannot be found in the classpath. If two files are in the same directory and one has a dependency on the other then adding '.' to the classpath is all that is needed. Questions to ask yourself. Are the files in the same directory? does either include a 'package' statement? and are you absolutely certain that the classpath is set correctly (type 'set' at the command line)? Also if you have set the CLASSPATH variable, using -classpath with the javac command will override the variable.
    Check everything above and if you still have problems maybe we can get some more details if you can post the entire error message.
    Mandy

  • Loading EJB problem with deployejb !

    I am working with Oracle 8.1.5 and jdk 1.1.6,
    when I am running the deployejb tool with the HelloWorld example of the demo directory, I have a problem when loadind EJB files into the database:
    deployejb -v -u workuser ...
    done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file adn Comm Stubs Jar file...loading: helloServer/HelloBean
    ORA-01552: cannot use system rollback segment for non-system tablespace USERS
    SQL Error in loading : helloServer/HelloBean
    ORA-06502: PL/SQL : numeric or value error
    ORA-06512: at "SYS.DBMS_LOB", line 700
    ORA-06512: at "WORKUSER.LOADLOBS", line 1
    ORA-06512: at line 1
    ... [same problem with all objects]
    Can you HELP me ?

    Hard to say, looks like a database configuration problem. Check with your DBA...
    Matthieu

  • Error at the time of Deploying EJB  jar on JBoss

    Hi:
    I am going to create web service using EJB3.0.
    But at the time deploying file on JBOss i am getting following error:
    12:22:51,856 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/crayom/projects/tools/jboss-5.0.0.CR2/server/default/deploy/TempConvert.jar state=PreReal mode=Manual requiredState=Real
    org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/home/crayom/projects/tools/jboss-5.0.0.CR2/server/default/deploy/TempConvert.jar
         at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
         at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
         at org.jboss.Main.boot(Main.java:209)
         at org.jboss.Main$1.run(Main.java:544)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1938)
         at org.jboss.wsf.common.JavaUtils.getPackageName(JavaUtils.java:533)
         at org.jboss.ws.metadata.wsdl.WSDLUtils.getTypeNamespace(WSDLUtils.java:700)
         at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processWebService(JAXWSWebServiceMetaDataBuilder.java:313)
         at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:107)
         at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
         at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:76)
         at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:70)
         at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.start(DeploymentAspectManagerImpl.java:144)
         at org.jboss.wsf.container.jboss50.BareWSFRuntime.start(BareWSFRuntime.java:66)
         at org.jboss.wsf.container.jboss50.deployer.AbstractDeployerHookEJB.deploy(AbstractDeployerHookEJB.java:48)
         at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
         at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:115)
         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
         ... 18 more
    12:22:51,897 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
    *** CONTEXTS IN ERROR: Name -> Error
    vfszip:/home/crayom/projects/tools/jboss-5.0.0.CR2/server/default/deploy/TempConvert.jar -> java.lang.StringIndexOutOfBoundsException: String index out of range: -1So, can any body tell me the solution of this problem?
    Thank You.

    AnupDesai wrote:
    Hi:
    After adding require packages also i am getting the same error.
    Well, if it's not a version problem with either the JDK (installing java 6 on top of a java 5 distribution) or the Jars (like JAXB) , then , as pointed out, you might have written your Web service using a packageless class:
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1938)
         at org.jboss.wsf.common.JavaUtils.getPackageName(JavaUtils.java:533)Restart a new project in your IDE with a packaged ws from the start, and see if it works.

Maybe you are looking for

  • How to send a 'loading, please wait...' message to user

    My web application needs to load about 1000 item names to screen. It takes about half a minute before the names are returned. While waiting, the screen is blank and user wouldn't know what's going on. Is there a way to send a first page ('Loading,ple

  • Partner inheritance stop from header to item only for opportunity

    Hi Team, Could anybody help me in the below requirement. In standard , in any business transaction, partners of Header inherited to Items. Table SMOFPARSFA. The parameter PARTNER_NO_INHERIT is intiial. I have a requirement, where we need to stop this

  • Needed to know how many procedures and name of them in Schema.

    Hi All, I wanted to know the name of Procedures and package name in the schema . Can i know how many schema are there in the data base .. Thanks in advance Sachin

  • Flash SWF video export problem

    Hello everyone, I am currently working on a flash intro with a bunch of video clips interspersed at different points. I've imported all the clips using the method to place the individual frames on the timeline. The video also sometimes is shorter tha

  • Difficulties in iTunes 5

    I recently upgraded to iTunes 5, and have encountered the following problems. 1. iTunes no longer recognizes my iPod (40 gb, 3g/Dock connector, with the latest (2.3) firmware installed), instead an error message appears advising me to reformat the iP