RE: [JBoss-user] CMP 2 Bean Deploy Failed
look at org.jboss.ejb.plugins.CMPPersistenceManagern line 160. You obviously don't have a matching ejbPostCreate method. > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 6:41 PM > To: JBoss 2 > Subject: [JBoss-user] CMP 2 Bean Deploy Failed > > > I just tried to deploy a EJB2 jar and it deployed most of my > entities and > then I got this: > > [16:39:25,585,ContainerFactory] Could not deploy > file:/Users/hunter/Desktop/jboss-3.0.0alpha/deploy/Default/rat > evegas-ejb.jar > java.lang.NoSuchMethodException > at java.lang.Class.getMethod0(Native Method) > at java.lang.Class.getMethod(Class.java:888) > at > org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache( > CMPPersistence > Manager.java:160) > at > org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenc > eManager.java: > 133) > at > org.jboss.ejb.EntityContainer.init(EntityContainer.java:313) > at org.jboss.ejb.Application.init(Application.java:198) > at > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:377) > at > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:305) > at java.lang.reflect.Method.invoke(Native Method) > at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. > java:1628) > at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. > java:1523) > at > org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:491) > at > org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploye > r.java:469) > at > org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:231) > at java.lang.reflect.Method.invoke(Native Method) > at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. > java:1628) > at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. > java:1523) > at > org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:633) > at > org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:308) > at java.lang.Thread.run(Thread.java:496) > > > How can I determine where I've messed up? > > Hunter > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss 3.0 jbosscmp-jdbc.xml not loaded
look in org.jboss.metadata.ApplicationMetaData we match on the start of the publicID. This sets a flag marking the app as ejb 2.0. Later in the cmp plugin this flag is checked and the jbosscmp-jdbc.xml file is loaded. If you really want to track down the location of the file load grep the metadata pakages in the cmp plugin. -dain > -Original Message- > From: Fred Loney [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 8:56 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] JBoss 3.0 jbosscmp-jdbc.xml not loaded > > > JBoss 3.0 preliminary release replaces jaws.xml with > jbosscmp-jdbc.xml. > I had that working but upgraded the xdoclet version, thereby > regenerating the various .xml files and now JBoss 3.0 loads > standardjaws.xml and ignores standardjbosscmp.xml and > jbosscmp-jdbc.xml. > I restored the pre-upgrade environment to no effect. JBoss loads > entities with the default jaws settings, but ignores jbosscmp-jdbc.xml > settings. No entity is recognized, no matter how trivial the app. > > I am at a loss how to get JBoss 3.0 to load jbosscmp-jdbc.xml. Any > advice is appreciated, including code pointers. I've studied, rebuilt > and hacked the relevant JBoss code all day to no effect. Where is the > decision to load jbosscmp-jdbc.xml made? > > ejb-jar.xml: > > > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > ... Standard stuff > > jbosscmp-jdbc.xml: > > > > > > .. All ignored > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.0 jbosscmp-jdbc.xml not loaded
JBoss 3.0 preliminary release replaces jaws.xml with jbosscmp-jdbc.xml. I had that working but upgraded the xdoclet version, thereby regenerating the various .xml files and now JBoss 3.0 loads standardjaws.xml and ignores standardjbosscmp.xml and jbosscmp-jdbc.xml. I restored the pre-upgrade environment to no effect. JBoss loads entities with the default jaws settings, but ignores jbosscmp-jdbc.xml settings. No entity is recognized, no matter how trivial the app. I am at a loss how to get JBoss 3.0 to load jbosscmp-jdbc.xml. Any advice is appreciated, including code pointers. I've studied, rebuilt and hacked the relevant JBoss code all day to no effect. Where is the decision to load jbosscmp-jdbc.xml made? ejb-jar.xml: http://java.sun.com/dtd/ejb-jar_2_0.dtd";> ... Standard stuff jbosscmp-jdbc.xml: .. All ignored ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP 2 Bean Deploy Failed
I just tried to deploy a EJB2 jar and it deployed most of my entities and then I got this: [16:39:25,585,ContainerFactory] Could not deploy file:/Users/hunter/Desktop/jboss-3.0.0alpha/deploy/Default/ratevegas-ejb.jar java.lang.NoSuchMethodException at java.lang.Class.getMethod0(Native Method) at java.lang.Class.getMethod(Class.java:888) at org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache(CMPPersistence Manager.java:160) at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java: 133) at org.jboss.ejb.EntityContainer.init(EntityContainer.java:313) at org.jboss.ejb.Application.init(Application.java:198) at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:377) at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:305) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:491) at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:469) at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:231) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:633) at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:308) at java.lang.Thread.run(Thread.java:496) How can I determine where I've messed up? Hunter ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CORBA client
We are in the process of developing an ejb that is a corba client. One of the drawbacks that I have seen so far is that when our EJB is passivated we must disconnect all CORBA connections. If we don't do this, I think, we will have CORBA object leaks in our jacOrb code. Then, when it is activated we have to reconnect to our servers (as needed). Is there a way to get around this overhead of disconnecting and reconnecting? Can you turn off passivating and activating on the container? Lance Johnson e-mail: [EMAIL PROTECTED] -Original Message- From: Francisco Reverbel [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 3:21 PM To: Rene Maldonado Cc: [EMAIL PROTECTED] Subject: Re: [JBoss-user] CORBA client On Mon, 29 Oct 2001, Rene Maldonado wrote: > Now, another qustion, if I want to use an existing server application in CORBA > my EJB will be a CORBA client, I think there will be no problem woth that, am I > right? Right, there should be no problem with that. Regards, Francisco ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MBean classloading and remote + homeinterfaces - weird stuff
Hi, First simple maillist question : Is it posible to have my mail account setup so I can mail to the list, but not recieve all the lists trafic ? (I read the maillist from a shared mailfolder on our imapserver) Now the real question: The setup is: - JBoss-2.4.3_Tomcat-3.2.3.zip - JDK 1.3 - Linux Redhat 6.2 We're programming an ejb application... everythings is ok as regard to normal use of the EJB facilities in jboss. But we're trying to incoporate a mbean based server within the jboss server, which should be ok regarding the documentation (?) This server listens for incomming telnet connections to a TCP/IP port where ppl. can do some command based admin stuff on the container managed beans... But we run into very weird problemas. Since the mbean manipulates on the beans, it has to know of the home and remote interfaces... but when we put the packaged interfaces in a client.jar file into the mbeanserver.jar file, which we put in the lib/ext (as specified in the documentation) weird stuff starts to happen >From what we can debug, it seems that when the home and remote interfaces are known in the lib/ext files, the container tries to use this jar file... but since it lack the bean definition (and all that they reference) the server throws unknown classdef exceptions. We can get it to work if we package the whole project into the mbean server jarfiles put in the lib/ext catalog but that's crazy ? we loose all the neat features of redeployment and so on... I know that we can get it to work somehow, since doing servlets with the tomcat server is somethings alike our server (listening on a port, using the home and remote interfaces to connect to server), but I also know that it does this through its own classloader I would like not to use my own classloader... of course if the answer is that this is the way... I'll manage.. We have thought of coding the server as a complete external server... but it would be realy neat to have it inside of the jboss server, so we can do inprocess call's ... mvh, Carsten Rhod Gregersen, M.Sc. CS. & Math. Email: [EMAIL PROTECTED], Tlf: 70211360 Web: http://www.logiva.dk Address: Logiva A/S, Klamsagervej 12, 8230 Åbyhøj, Denmark ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CORBA client
On Mon, 29 Oct 2001, Rene Maldonado wrote: > Now, another qustion, if I want to use an existing server application in CORBA > my EJB will be a CORBA client, I think there will be no problem woth that, am I > right? Right, there should be no problem with that. Regards, Francisco ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MBean classloading and remote + homeinterfaces - weird stuff
Hi, The setup is: - JBoss-2.4.3_Tomcat-3.2.3.zip - JDK 1.3 - Linux Redhat 6.2 We're programming an ejb application... everythings is ok as regard to normal use of the EJB facilities in jboss. But we're trying to incoporate a mbean based server within the jboss server, which should be ok (?) The server listens for incomming telnet connections to a TCP/IP port where ppl. can do some command based admin stuff on the container managed beans... But we run into very weird problemas. Since the mbean manipulates on the beans, it has to know of the home and remote interfaces... but when we put the packaged interfaces in a client.jar file into the mbeanserver.jar file, which we put in the lib/ext (as specified in the documentation) weird stuff starts to happen >From what we can debug, it seems that when the home and remote interfaces are known in the lib/ext files, the container tries to use this jar file... but since it lack the bean definition (and all that they reference) the server throws unknown classdef exceptions. We can get it to work if we package the whole project into the mbean server jarfiles put in the lib/ext catalog but that's crazy ? we loose all the neat features of redeployment and so on... I know that we can get it to work somehow, since doing servlets with the tomcat server is somethings alike our server (listening on a port, using the home and remote interfaces to connect to server), but I also know that it does this through its own classloader I would like not to use my own classloader... of course if the answer is that this is the way... I'll manage.. We have thought of coding the server as a complete external server... but it would be realy neat to have it inside of the jboss server, so we can do inprocess call's ... mvh, Carsten Rhod Gregersen, M.Sc. CS. & Math. Email: [EMAIL PROTECTED], Tlf: 70211360 Web: http://www.logiva.dk Address: Logiva A/S, Klamsagervej 12, 8230 Åbyhøj, Denmark ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Building jboss-docs
> |> Win98 just doesn't understand the more advanced batch syntax, and has > |> > |> severe limits on the size of environment variables values. Besides you > |> can't set console buffer so you can track command line output. > |It's just > |> impossible to work on Win98. I redirect into a file and use Textpad which automatically re-reads the file every time there's a change. But there's another problem with win98 - I tried to build JBoss and had a problem with setting environment variables because command.com is retarded about setting values that contain the equals sign. SET whatever=X=Y causes it to spit the dummy. Anyone know how to escape the equal sign? ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Archive search broken/Linux memory,threads
I don't know if this is affecting anyone else, but I am unable to search the JBoss User Archives using Geocrawler. It only affects the JBoss group, none of the others that I use. The response from SourceForge is that they don't see it as an urgent issue, and they have closed the request. Seeing as the error message points to a simple misconfigured file, this seems rather unhelpful. [More details http://sourceforge.net/tracker/index.php?func=detail&aid=475570&group_id=1&atid=21 ] Anyway, the upshot is: Can anyone post some optimisation FAQs for JBoss under Linux, especially re: the threads issue mentioned recently, and memory usage. TIA david PS: Are there any other ways of searching the archives outside of Geocrawler?
RE: [JBoss-user] CORBA client
|The contrib/iiop module is not usable yet. It is unfinished (and ongoing) |work, which will be integrated into RH when it reaches alpha quality. |Hopefully, very soon... very soon indeed, we are going to go through the basic of RH and put an alpha out soon, possibly a solid beta by x-mass marcf | |Regards, | |Francisco | |On Sat, 27 Oct 2001, Dmitri Colebatch wrote: | |> afaik JBoss uses RMI/JRMP out of the box, to run RMI/IIOP (for |CORBA), you |> need to use the contrib/iiop module. I've never used it myself, but was |> recently wondering if anyone is using it in production? |> |> hth |> dim |> |> On Fri, 26 Oct 2001, Rene Maldonado wrote: |> |> > Hi all, |> > I'm new to JBoss, and EJB, I need to connect my corba client to JBoss, |> > |> > The Question: What information need I to give my client to contact |> > JBoss? (JNDI I think) |> > |> > Thanks.. |> > |> > Rene |> > |> > |> > |> > |> > |> > ___ |> > JBoss-user mailing list |> > [EMAIL PROTECTED] |> > https://lists.sourceforge.net/lists/listinfo/jboss-user |> > |> |> |> ___ |> JBoss-user mailing list |> [EMAIL PROTECTED] |> https://lists.sourceforge.net/lists/listinfo/jboss-user |> | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CORBA client
Hi, The contrib/iiop module is not usable yet. It is unfinished (and ongoing) work, which will be integrated into RH when it reaches alpha quality. Hopefully, very soon... Regards, Francisco On Sat, 27 Oct 2001, Dmitri Colebatch wrote: > afaik JBoss uses RMI/JRMP out of the box, to run RMI/IIOP (for CORBA), you > need to use the contrib/iiop module. I've never used it myself, but was > recently wondering if anyone is using it in production? > > hth > dim > > On Fri, 26 Oct 2001, Rene Maldonado wrote: > > > Hi all, > > I'm new to JBoss, and EJB, I need to connect my corba client to JBoss, > > > > The Question: What information need I to give my client to contact > > JBoss? (JNDI I think) > > > > Thanks.. > > > > Rene > > > > > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss and JRMP
Jboss is built on top of RMI, so it uses by default JRMP. Feature to enable it to use another protocol than JRMP is not yet implemented, AFAIK (i'm not personnaly an active developper of jboss, so don't know it it's on the to-do list or not ...) - Original Message - From: "Ben Hui" <[EMAIL PROTECTED]> To: "Jboss-User@Lists. Sourceforge. Net (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, October 29, 2001 4:32 PM Subject: [JBoss-user] Jboss and JRMP > does Jboss uses JRMP as transport protocol, or does it use another protocol? > > is it possible to swap in another transport protocol? > > thanks > > Ben Hui > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Jboss and JRMP
JRMP is not a transport protocol. RMI is the transport protocol. If you're familiar with CORBA, JRMP is analogous to the DSI (Dynamic Skeleton Interface). The ability to swap in transport protocols is being developed on right now. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Hui > Sent: Monday, October 29, 2001 10:32 AM > To: Jboss-User@Lists. Sourceforge. Net (E-mail) > Subject: [JBoss-user] Jboss and JRMP > > > does Jboss uses JRMP as transport protocol, or does it use > another protocol? > > is it possible to swap in another transport protocol? > > thanks > > Ben Hui > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss not picking up the latest data
Imran Bohoran wrote: > Hello All > > I'm having problem that is holding me up with my work. My configuration is > Jboss-2.4.1_Tomcat-3.2.3 running with MySQL(with support for transactions) > under Win 2k. > > This is the problem I'm facing. > > I have a stateless session bean. It has 2 methods. Method A and Method B > which talks to my CMP entity beans to operations. > > Method A does a query on the DB thru the entity beans and displays the some > data. > Method B changes some data which was taken using Method A and soon > afterwards calls Method A to display the changes. BUT the changes are not > displayed properly. change your entity from commit-option A to option B or C. Option A aggressively caches entity data - it assumes that changes are only made through the entity beans. As an aside, if method B changes data, why isn't it using the entity beans? > I'm instead getting the old data. Btw my session bean is > deployed as NotSupported. I'd reevaluate this if you're changing data. -danch ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss and JRMP
does Jboss uses JRMP as transport protocol, or does it use another protocol? is it possible to swap in another transport protocol? thanks Ben Hui ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss not picking up the latest data
Hello All I'm having problem that is holding me up with my work. My configuration is Jboss-2.4.1_Tomcat-3.2.3 running with MySQL(with support for transactions) under Win 2k. This is the problem I'm facing. I have a stateless session bean. It has 2 methods. Method A and Method B which talks to my CMP entity beans to operations. Method A does a query on the DB thru the entity beans and displays the some data. Method B changes some data which was taken using Method A and soon afterwards calls Method A to display the changes. BUT the changes are not displayed properly. I'm instead getting the old data. Btw my session bean is deployed as NotSupported. Also the changes are shown only when I restart the JBoss server. And when I checked the DB, its also changed as expected. But the data given back is wrong. A similar problem I faced was when I was calling method and expecting some data according to some changes I did manually at the DB. (these were done to do some unit tests). But again the changes done to the DB was reflected only when I restarted the JBoss server. Can any one tell me what's going on here. I feel this is a serious issue. And its keeping me stuck. Appreciate any input on this. TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Problem with request
> I'm not an HTML expert, but I thought an INPUT text control name, unlike > a checkbox, had to be unique within the form. No, it doesn't. Any input control can have multiple values. If it has multiple values, you should get them with the Request.getParameterValues() method. > notice the value "SIA" and "123456000" is associated with the > icdGoHeaderOid when it should be carrier and HBOL respectively Multiple values or not, this is really strange. Does this happens with any user agent (browser) you've tested? It seems this is more a browser bug than anything else. -- Ja ne, Pazu mailto: [EMAIL PROTECTED] Anime Gaiden: de fãs para fãs, sempre. PGP signature
[JBoss-user] Pentium III = OK, Pentium IV = KO with W2K and JBoss-2.4.3_Tomcat-3.2.3
Hi all, Are there people using the next config: Pentium 4, W2K and JBoss-2.4.3_Tomcat-3.2.3 ? I try using an applet calling an ejb but nothing happened except a NamingException: null. I try with with another name then i have the NamingException: ejb not boundSo... that means that previously it wasn't that kind of NamingException. If do the same on a Pentium III -> it is running? What's happen? Help please JMi _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problems with JBOSS CMP EJB, MS-Access
Hi, I am currently looking at CMP. I've set JBOSS up and written an entity bean to write to an MS-Access table, just as a quick trial. When I create a new item it seems to have been created, however it does not seem to have been written to the database table. In frustration I decided to write 32,767 rows to the table and left it running over the weekend. Still no rows appeared in my table? The table is locked, which is what you would expect. I am now much balder. Any halp to save my hair much appreciated. :o) Cheers Andrew :-)