RE: [JBoss-user] Problems running Jboss
What JVM are you using? (Sun 1.3.1 works OK for me in Win2k) Cheers - Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Menz, Matthias Sent: 19 September 2001 09:05 To: JBoss Mailgroup (E-Mail) Subject: [JBoss-user] Problems running Jboss Hello, has anybody got any idea why I cant get Jboss started. Do I have to have any jars included in my classpath. I use a JBoss Version 2.4.0 with JDK 1.3.0 on a Digital(Compaq) UNIX V4.0F (Alpha). Included is the log of the session. The Script runs fine for a while and then terminates with a segmentation violation. Any help would be apreciated. Greetings Matt ./run.sh JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar jboss.home = /usr/users/nsuser/jboss_tomcat/jboss Using JAAS LoginConfig: file:/usr/users/nsuser/jboss_tomcat/jboss/conf/default/auth.conf Using configuration default [root] Started Log4jService, config=file:/usr/users/nsuser/jboss_tomcat/jboss/conf/default/log4j.properti es [Info] Java version: 1.3.0,Compaq Computer Corp. [Info] Java VM: Classic VM 1.3.0-1,Compaq Computer Corp. [Info] System: OSF1 V4.0,alpha [Shutdown] Shutdown hook added [Service Control] Initializing 27 MBeans [WebService] Initializing [WebService] Initialized [NamingService] Initializing [NamingService] Initialized [JNDIView] Initializing [JNDIView] Initialized [TransactionManagerService] Initializing [TransactionManagerService] Initialized [ClientUserTransactionService] Initializing [ClientUserTransactionService] Initialized [JaasSecurityManagerService] Initializing [JaasSecurityManagerService] Initialized [JdbcProvider] Initializing [JdbcProvider] Loaded JDBC-driver:org.hsql.jdbcDriver [JdbcProvider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver [JdbcProvider] Initialized [HypersonicDatabase] Initializing [HypersonicDatabase] Initialized [XADataSourceLoader] Initializing [XADataSourceLoader] Initialized [XADataSourceLoader] Initializing [XADataSourceLoader] Initialized [ServerDataCollector] Initializing [ServerDataCollector] Initialized [ContainerFactory] Initializing [ContainerFactory] Initialized [JBossMQService] Initializing [JBossMQService] Initialized [JMSProviderLoader] Initializing [Default] queue factory name: XAQueueConnectionFactory [Default] topic factory name: XATopicConnectionFactory [JMSProviderLoader] Initialized [ServerSessionPoolLoader] Initializing [ServerSessionPoolLoader] Initialized [J2eeDeployer] Initializing [J2eeDeployer] Initialized [RARDeployer] Initializing [RARDeployer] Found a temp directory left over from a previous run - deleting it. [RARDeployer] Initialized [ConnectionManagerFactoryLoader] Initializing [ConnectionManagerFactoryLoader] Initialized [ConnectionManagerFactoryLoader] Initializing [ConnectionManagerFactoryLoader] Initialized [ConnectionManagerFactoryLoader] Initializing [ConnectionManagerFactoryLoader] Initialized [ConnectionFactoryLoader] Initializing [ConnectionFactoryLoader] Initialized [ConnectionFactoryLoader] Initializing [ConnectionFactoryLoader] Initialized [AutoDeployer] Initializing [AutoDeployer] Initialized [JMXAdaptorService] Initializing [JMXAdaptorService] Initialized [RMIConnectorService] Initializing [RMIConnectorService] Initialized [MailService] Initializing [MailService] Initialized [Service Control] Initialized 27 services [Service Control] Starting 27 MBeans [WebService] Starting [Default] Started on port 8083 [Webserver] Codebase set to http://monolith.messerknecht.de:8083/ [Webserver] Started webserver on port 8083 [WebService] Started [NamingService] Starting [NamingService] Starting jnp server [NamingService] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null, Server SocketFactory=null [NamingService] InitialContext Environment: [NamingService] key=java.naming.factory.initial, value=org.jnp.interfaces.NamingContextFactory [NamingService] key=java.naming.factory.url.pkgs, value=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interface s [NamingService] Naming started on port 1099 [NamingService] Started [JNDIView] Starting [JNDIView] Started [TransactionManagerService] Starting [TransactionManagerService] Started [ClientUserTransactionService] Starting [ClientUserTransactionService] Started [JaasSecurityManagerService] Starting [Default] JAAS.startService, cachePolicy=null [Default] JAAS.startService, SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@ff31519e [JaasSecurityManagerService] Started [JdbcProvider] Starting [JdbcProvider] Started [HypersonicDatabase] Starting [HypersonicDatabase] Database started [HypersonicDatabase] Started [XADataSourceLoader] Starting [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB [Default] Enhydra InstantDB - Version 3.26 [Default] [Default] The Initial Developer of the Original Code is Lutris Technologies Inc. Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies, Inc. All Rights Reserved. [XADataSourceLoader] Started [XADataSourceLoader]
RE: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB?
Thanks guys, its all working now ejbFindByPrimaryKey only retrieves rows that have obsolete_indicator != Y, and ejbRemove() sets obsolete_indicator = Y. Many thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Koster Sent: 19 September 2001 16:51 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB? Adam, Even better, if you are using BMP and we are talking about an SQL storage facility, construct your SQL to only fetch rows with the obsolete_indicator column not equal to Y or null. This will reduce the amount of network communication that occurs, especially if you are dealing with wide rows, since the ResultSet will be null if no data is returned. Karl. Snip ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB?
Folks, I have several entity EJB's that model database tables. Rows in the tables are never physically deleted, but rather they are logically deleted by setting a obsolete_indicator column Y. Can I use ejbRemove() to simply modify the row (setting this flag to Y) or will this break application server caching? Are there any other reasons why I should not use ejbRemove()? Thanks in advance Adam ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB?
Yes, The beans use BMP. Sorry I forgot to mention that :-) Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Maurice le Rutte Sent: 18 September 2001 13:28 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB? I have several entity EJB's that model database tables. Rows in the tables are never physically deleted, but rather they are logically deleted by setting a obsolete_indicator column Y. Can I use ejbRemove() to simply modify the row (setting this flag to Y) or will this break application server caching? Are there any other reasons why I should not use ejbRemove()? I can't answer this, but I assume you are not using CMP? Otherwise your beans would still be accessible with findByPrimaryKey. Maurice. ___ 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] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()
Folks, JBoss 2.4.0 with Tomcat 3.2.3 - I have a strange problem that has completely foxed me: The sequence of events on a BMP entity bean is as follows. All steps are called from a client in separate transactions: 1. Bean Created 2. Bean Read State OK at this point 3. Bean Updated State written to DB OK, beans internal value object is updated OK. 4. Bean Read. State retrieved is state *before* update in step 3. 5 Bean Updated 6. Bean Read The problem is that the read at (4) retrieves the bean state that was present *before* the update at (3) was processed. I have checked the database and the update in (3) does get written to the DB. I have debugged the code and the ejbStore() and ejbLoad() methods get called as expected. As far as I can see, the cached bean does not accurately reflect the contents of the DB. Its almost as if findByPrimaryKey() is getting the wrong bean instance from the cache. I am using commit-option A as JBoss is only thing talking to the DB. The code that updates the bean is as follows: (Note details is a ContactModel value object instance) -- // Find Contact instance first in case it does not exist ContactKey primaryKey = details.getContactPrimaryKey(); Contact contact = contactHome.findByPrimaryKey(primaryKey); // Modify Bean and re-read in case DB has massaged the data contact.modifyDetails(details); contact = contactHome.findByPrimaryKey(primaryKey); ContactModel updatedDetails = contact.getDetails(); --- and the ejbStore method looks like: (contactDetails is the beans internal value object holding the bean state) - try { setDAO(); this.contactDetails = (ContactModel) contactDao.update(this.contactDetails); modified = false; logger.info(contact bean stored, contactDetails = + this.contactDetails); } catch (DAOFinderException ex) { context.setRollbackOnly(); throw new NoSuchEntityException(ex.getMessage()); } catch (DAOApplicationException ex) { context.setRollbackOnly(); throw new EJBException(ex.getMessage()); } catch (DAOSystemException ex) { context.setRollbackOnly(); throw new EJBException(ex.getMessage()); } Does anyone have any ideas? I am completely stumped... Thanks in advance - Adam ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] 2 WEEKS EVICTION NOTICE
Can I add my voice to the please dont camp? I find browsing an email folder far easier/quicker than using a web i/f. The mailing list is my primary jboss support. One can see at a glance the details of the problem rather than having to deduce from the (not always useful) web i/f header. Just my six ha'porth... Cheers - Adam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss.xml / JNDI lookup problems (lengthy)
Folks, I am getting ever more confused about how to lookup JNDI references. Take a simple stateless SessionBean being looked up from SOAP service. The SOAP service is invoked from the emebedded Tomcat via Apache SOAP 2.2: The ejb-jar.xml contains: ejb-jar display-nameOrganisationListEJB/display-name enterprise-beans session display-nameOrganisationListEJB/display-name ejb-nameOrganisationListBean/ejb-name homeuk.co.landmark.contactmanager.server.organisation.ejb.OrganisationList Home/home remoteuk.co.landmark.contactmanager.server.organisation.ejb.OrganisationLi st/remote ejb-classuk.co.landmark.contactmanager.server.organisation.ejb.Organisatio nListBean/ejb-class etc /ejb-jar The jboss.xml file contains: jboss enterprise-beans ejb ejb-nameOrganisationListBean/ejb-name jndi-nameejb/organisation/OrganisationList/jndi-name /ejb /enterprise-beans /jboss My understanding is that the OrganisationListBean is bound to a JNDI name of ejb/organisation/OrganisationList If one looks it up from outside the EJB container one should use ejb/organisation/OrganisationList, whereas from within the EJB container one should use java:comp/env/ejb/organisation/OrganisationList Is this correct? When the soap service looks up the bean, the code is: initialContext.lookup(ejb/organisation/OrganisationList); When running the code, the following is displayed in the jboss window: [] looking up Home interface ejb/organisation/OrganisationList [] Failed to find Home interface javax.naming.NameNotFoundException: ejb not bound at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(InitialContext.java:350) at uk.co.landmark.contactmanager.server.common.soapservice.SoapService.initHome InterfaceRefe rence(SoapService.java:131) (The [] are my log4j debug statements.) The JNDIView output is: Application: file:/J:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/ContactManager.ea r/ java:comp namespace of the OrganisationListBean bean: +- env (class: org.jnp.interfaces.NamingContext) | +- ejb (class: org.jnp.interfaces.NamingContext) | | +- organisation (class: org.jnp.interfaces.NamingContext) | | | +- OrganisationDAOClass (class: java.lang.String) So, can anyone shed any light on what is going wrong here? I am not a JNDI expert, and I am close to tears with this one :-) Thanks humungously Adam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Jboss.xml / JNDI lookup problems (lengthy)
Hi Burkhard, I get the a similar (or same) exception: [] looking up Home interface java:comp/env/ejb/organisation/OrganisationList [] Failed to find Home interface javax.naming.NameNotFoundException: env not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:473) at org.jnp.server.NamingServer.getBinding(NamingServer.java:481) at org.jnp.server.NamingServer.getObject(NamingServer.java:487) at org.jnp.server.NamingServer.lookup(NamingServer.java:253) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:457) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) Confused Cheers - Adam. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Burkhard Vogel Sent: 12 July 2001 12:37 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Jboss.xml / JNDI lookup problems (lengthy) Hi, Can you try looking up java:comp/env/ejb/organisation/OrganisationList and tell what happens. Burkhard ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] local reference to the DTD
Try this: file:///the-path-to-your-local-dtd-directory/web-app_2_2.dtd Works for me. Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 12 July 2001 14:52 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [JBoss-user] local reference to the DTD I still get the same error, I am putting the local copy of the dtd under the htdocs folder which resides in apache home, could that be the problem? also I cant view the web.xml file in IE 5 I get an error :cannot have multiple DOCTYPE declarations Line 1 position 11 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional //EN --^ this is the web.xml: ? xml version =1.0 encoding =ISO-8859-1? !DOCTYPE web-app SYSTEM http://supersunbob.tbcds.destin.com/htdocs/web-app_2_2.dtd; web-app servlet servlet-name HelloEJB /servlet-name servlet-class org.jboss.test.tomcat.servlet.HelloEJB /servlet-class /servlet /web-app Does the first line generate some type of DOCTYPE? this is a little more detail of jboss error 2001-07-12 08:20:31 - ContextManager: Adding context Ctx( /jboss ) [Auto deploy] ERROR reading /jboss/tmp/deploy/Default/tomcat-test.ear/web1006/WEB-INF/web.xml [Auto deploy] At External parameter entity %[dtd]; has characters after markup. [Auto deploy] ERROR reading /jboss/tmp/deploy/Default/tomcat-test.ear/web1006/WEB-INF/web.xml [Auto deploy] org.xml.sax.SAXParseException: External parameter entity %[dtd]; has characters after markup. [Auto deploy] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035) [Auto deploy] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029) [Auto deploy] at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2757) [Auto deploy] at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154) [Auto deploy] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488) [Auto deploy] at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) [Auto deploy] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) [Auto deploy] at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) [Auto deploy] at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) [Auto deploy] at javax.xml.parsers.SAXParser.parse(SAXParser.java:260) [Auto deploy] at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) [Auto deploy] at org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader.java:2 02) [Auto deploy] at org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java:109) [Auto deploy] at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) [Auto deploy] at org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:144) [Auto deploy] at org.jboss.tomcat.EmbeddedTomcatServiceSX.performDeploy(EmbeddedTomcatService SX.java:117) [Auto deploy] at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:178) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) Any Help would be appreciated!Graham Burkhard, If it is inappropriate to cc to you tell me as I am new to this list -Original Message- From: Burkhard Vogel [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 4:27 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] local reference to the DTD Hi, try using ! DOCTYPE web-app SYSTEM Http://supersunbob.tbcds.destin.com/subfolder/web-app_2_2.dtd; Whats the error now? Burkhard - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 7:27 PM Subject: RE: [JBoss-user] local reference to the DTD That doesnt work either. I get the following parser error: External parameter entity %[dtd]; has characters after markup. I also get this same error when I put the dtd in a subfolder and reference it like this: ! DOCTYPE web-app PUBLIC -//Sun Microsystems,Inc.//DTD Web Application 2.2//EN Http://supersunbob.tbcds.destin.com/subfolder/web-app_2_2.dtd; WHAT GIVES? Probably me! PS sorry if I am not supposed to cc to you alex I am new to list -Original Message- From: Alex Radka [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 9:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] local reference to the DTD I would have thought that would work but try file:///some/directory/structure/web-app_2_2.dtd Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 9:12 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] local reference to the DTD Importance: Low Help!! I am trying to associate a reference to a local copy of the sun DTD, since I dont have external access to it. This is what I have tried to no avail: I am running
RE: [JBoss-user] Jboss.xml / JNDI lookup problems (lengthy)
I have worked it out: The jboss.xml that does not work: jboss enterprise-beans ejb ejb-nameOrganisationListBean/ejb-name jndi-nameejb/organisation/OrganisationList/jndi-name /ejb /enterprise-beans /jboss The jboss.xml that *does* work: jboss enterprise-beans ejb session ejb-nameOrganisationListBean/ejb-name jndi-nameejb/organisation/OrganisationList/jndi-name /session? /ejb /enterprise-beans /jboss Note the session tag. I suppose it is required How did I miss that one? g Cheers - Adam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Security in JBoss Howto?
Folks, A couple of people and myself are evaluating JBoss as a production quality app server. We are new to J2EE, so apologies if these questions have obvious answers :-) The initial proposed intended architecture is: Client -- (SOAP) -- Servlet -- (RMI) -- EJB (SQLJ/JDBC) -- Oracle I have got a basic round-trip working successfully, and happy so far. However, the other team members are concentrating on the security aspects, and are frustrated that that they cannot find a definitive howto on security issues. A couple of their questions are: How do we ensure only authorised clients can access out SOAP servlet? (Apache SOAP 2.2) How do we ensure that no-one can call our EJB's directly via RMI? (I know a firewall helps here, but is there a built-in mechanism?) They are getting to the point where they feel that they could spend another couple of weeks/months experimenting with Jboss security and not achieve definitive answers on how it should be done. They are recommending looking at WebLogic and WebSphere, mainly because (presumably) they come with a manual that covers these issues. So, my questions are: Is there a HOWTO for security? What options are available for authenticating clients from a SOAP servlet? How does one prevent access to EJB's via RMI? Any help gratefully received... Adam Lipscombe ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Security in JBoss Howto?
Folks I am glad to report that my colleagues are now making progress with the help of the JAAS howto. Thanks very much for the help - Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark Sent: Friday, June 01, 2001 5:13 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Security in JBoss Howto? However, the other team members are concentrating on the security aspects, and are frustrated that that they cannot find a definitive howto on security issues. A couple of their questions are: How do we ensure only authorised clients can access out SOAP servlet? (Apache SOAP 2.2) This is a basic how to I secure a servlet question and can be handled with the 2.2 Servlet spec declarative security model. How do we ensure that no-one can call our EJB's directly via RMI? (I know a firewall helps here, but is there a built-in mechanism?) In JBoss anyone can lookup the EJB home interface. Invocation of any method on the home or remote interface can be secured using the EJB 1.1 spec declarative security model. Both of these are described in the online JAAS howto which can be found here: http://www.jboss.org/documentation/HTML/ch11s83.html ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Sample client using SOAP with JBoss/ZOAP
ZOAP is dead. Use Apache SOAP 2.1 with the Apache Xerces parser 1.3.0. It works. Its vital (and IMHO quite difficult) to get JBoss configuration correct. Let me know if you have problems and I'll send you sample config files. Cheers - Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rafael S. V. Guimarães Sent: Tuesday, May 22, 2001 7:29 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Sample client using SOAP with JBoss/ZOAP Hi, Somebody has sample client using SOAP with JBoss/ZOAP, or tutorial? Thanks. - Rafael Simões Vieira Guimarães Grupo Stela Programa de Pós-Graduação em Engenharia de Produção - PPGEP Universidade Federal de Santa Catarina - UFSC - E-mail : [EMAIL PROTECTED] Home-page : http://www.stela.ufsc.br Fone/fax : +55 48 331-7016 Endereço : Rua Lauro Linhares, 2123 - Edif. Trindade Center - Bloco B, 2o. andar CEP 88036-000 - Florianópolis - SC - Brasil - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ClassPathExtension mechanism does not seem to work...
Hi All, Does anyone know how the org.jboss.util.ClassPathExtension mechanism works in jboss.conf? I added my libs there, and the server log reports that they have been loaded. However I get a ClassNotFoundException at runtime. The only way I can get JBoss/Tomcat to see the extra libs is to specify them as the -classpath arg when starting jboss via run.bat. Is the ClassPathExtension broken? Cheers - Adam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Another Classpath extension question
Class HttpServlet is in webserver.jar, which is a fundamental tomcat library. I found that some adding some libs to the classpath passed to JBoss at start-up time (i.e. the -classpath / JBOSS CLASSPATH statements) completely stuffed the libraries that JBoss could see. Are you passing any extra libs to JBoss at start-time? It could be that... This problem is obviously vexing a number of folks. It would be really helpful to have a definitive statement of when to use -classpath / JBOSS_CLASSPATH and when to use the classpath extension mechanism. I wonder if any developers could shed light on it? Equally, does one specify a jar file explicitly in the classpath extension? Or merely the directory that its in? Or doesn't it matter? HTH - Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ed Swierk Sent: Monday, May 21, 2001 9:16 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Another Classpath extension question I'm having trouble getting a servlet to run when I start JBoss (2.2.1 with Tomcat 3.2.1) with the run_with_tomcat.bat script. The log file shows servlet.jar, among others, being added to the classpath: [Classpath extension] Added directory:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/ [Classpath extension] Added directory:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/jboss/db/ [Classpath extension] Added library:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/tomcat/lib/ant.jar [Classpath extension] Added library:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/tomcat/lib/jasper.j ar [Classpath extension] Added library:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/tomcat/lib/jaxp.jar [Classpath extension] Added library:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/tomcat/lib/parser.j ar [Classpath extension] Added library:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/tomcat/lib/servlet. jar [Classpath extension] Added library:file:/C:/Documents and Settings/eswierk/Cogenia/Server/JBoss-2.2.1_Tomcat-3.2.1/tomcat/lib/webserve r.jar But then when I hit the server from my web browser, I get an exception: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad er.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) If the Jar is actually being added to the classpath, how is it possible to get this exception? Thanks, --Ed ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How does the tomcat classpath get set when started as a Jboss service?
Folks, How does the Tomcat classpath get set when starting it via JBoss? I can get the Apache SOAP examples to work when tomcat is run stand-alone without JBoss. i.e. Tomcat is started by tomcat/bin/startup.bat(sh) script. However, some tweaking of the CLASSPATH was required in startup.bat. But, when I start JBoss, which then starts tomcat as a service, the examples wont work. Methinks its a classpath issue with Tomcat... Thanks - Adam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Apache SOAP 2.1 example does not work with JBoss 2.2.1 with embedded Tomcat 3.2.1 (Long and involved)
Folks, I am tearing my hair out trying to get the SOAP 2.1 examples to work with JBoss. Any help will be very gratefully received. Set-up: NT 4.0, JDK 1.3, Apache Soap 2.1, JBoss 2.2.1 / Embedded Tomcat 3.2.1, Xerces 1.2.3. (Already been through the Xerces 1.3.1 pain :-)) soap.jar and xerces.jar are located in the tomcat\lib dir. Presumably they are picked up automatically by Tomcat from there? The Jboss run.bat file is: - @echo off @if not %ECHO% == echo %ECHO% @if %OS% == Windows_NT setlocal set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;run.jar REM Add all login modules for JAAS-based security REM and all libraries that are used by them here set JBOSS_CLASSPATH=;%JBOSS_CLASSPATH% REM Add the XML parser jars and set the JAXP factory names REM Crimson parser JAXP setup(default) REM set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar REM set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu mentBuilderFactoryImpl REM set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAX ParserFactoryImpl REM Added Xerces XML parser. A.L. set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;..\..\tomcat\lib\xerces.jar set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Docum entBuilderFactoryImpl set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXP arserFactoryImpl REM Add Apache SOAP samples for testing. A.L. set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;D:\Development\Landmark\Soap\soap-2_1; echo JBOSS_CLASSPATH=%JBOSS_CLASSPATH% java %JAXP% -classpath %JBOSS_CLASSPATH% org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 pause - Note crimson is commented out and xerces is used instead. Also D:\Development\Landmark\Soap\soap-2_1 added to classpath so the server can find the example classes. The stockquote examples deploy and undeploy OK, however when running the GetQuote() test it fails. The output from java samples.stockquote.GetQuote http://localhost:8989/soap/servlet/rpcrouter IBM is: - Ouch, the call failed: Fault Code = SOAP-ENV:Server.Exception: Fault String = org/apache/soap/util/xml/XMLParserLiaison - The tunnel monitor displays: -- faultcodeSOAP-ENV:Server.Exception:/faultcode faultstringorg/apache/soap/util/xml/XMLParserLiaison/faultstring faultactor/soap/servlet/rpcrouter/faultactor detail stackTracejava.lang.NoClassDefFoundError: org/apache/soap/util/xml/XMLParserLiaison at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(ServerHTTPUtils. java:224) at org.apache.soap.providers.RPCJavaProvider.locate(RPCJavaProvider.java:113) at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:26 5) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) /stackTrace - It seems to me that the server cant find soap.jar,as this contains the org/apache/soap/util/xml/XMLParserLiaison class. So, I added soap.jar to the run.bat classpath thus: - REM Add Apache SOAP samples for testing. A.L. set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;.\..\tomcat\lib\soap.jar;D:\Development\La ndmark\Soap\soap-2_1; - This causes mayhem. The example wont deploy or undeploy. The output from GetQuote is: Exception in thread main [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type text/html , must be: text/xml. Response was: h1Error: 500/h1 h2Location: /soap/servlet/rpcrouter/h2bInternal Servlet Error:/bbrprejava.lang.NoClassDefFoundError: javax/s ervlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
RE: [JBoss-user] Jbuilder 4.0 Foundation JBoss2.2.1 HowTo Guide
John, Thanks for such good info! I have got a problem though: when trying to run or debug the project, the CPU goes to 100% and stays there for ages. After 10 minutes I gave up waiting and ended the process. Did you experience this? Any work-arounds? I tried without the -classic but the results were the same. Cheers - Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John P. Coffey Sent: Wednesday, May 16, 2001 1:48 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Jbuilder 4.0 Foundation JBoss2.2.1 HowTo Guide Well after pulling my hair out for the last couple of days here is how to get JBoss and JBuilder as friends... Instructions for integrating JBuilder 4.0 Foundation or Higher with JBoss for source level debugging - Install the JBoss Server For the purposes of this howto, I installed teh JBossTomcat release version 2.2.1 into d:\JBoss-2.2.1_Tomcat-3.2.1. Download this from http://www.jboss.org and select the binary link from the page. This is a little confusing as it also contains the source (in the best interests of open source of course). - Create a JBuilder 4.0 Project I typically point this to the source for my EJB code. - Create a JBoss-Server library This is the most difficult part of the setup to get right, however once completed it does not need to be changed so you can setup multiple ejb projects and reuse this library (well done Borland) - Project / Project Properties / RequiredLibraries / Add... Add the following library entries to the JBoss-Server classpath (the order is crucual here). Pay specific attention to the log and tmp folders, faulure to put these in the Library class path will cause the classloader to spit out error messages, the most confusing of which is that /log.properties or /tmp.properties files could not be located. This is because the folders containing these files need to be in the classpath and the class loader complains. /$JBOSS_TOMCAT_HOME/jboss/lib/crimson.jar /$JBOSS_TOMCAT_HOME/jboss/bin/run.jar /$JBOSS_TOMCAT_HOME/jboss/bin /$JBOSS_TOMCAT_HOME/jboss/conf /$JBOSS_TOMCAT_HOME/jboss/lib/jaas.jar /$JBOSS_TOMCAT_HOME/jboss/lib/jboss-jaas.jar /$JBOSS_TOMCAT_HOME/jboss/lib/jdbc2_0-stdext.jar /$JBOSS_TOMCAT_HOME/jboss/lib/jmxri.jar /$JBOSS_TOMCAT_HOME/tomcat/lib/parser.jar /$JBOSS_TOMCAT_HOME/tomcat/lib/servlet.jar /$JBOSS_TOMCAT_HOME/tomcat/lib/jaxp.jar /$JBOSS_TOMCAT_HOME/tomcat/lib/webserver.jar /$JBOSS_TOMCAT_HOME/tomcat/lib/jasper.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/activation.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/awt.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/dynaserver.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/ejb.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/ejxeditor.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/ejxejb.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/ejxjaws.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/ejxjboss.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/hsql.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/idb.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jboss.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jetty-service.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jms.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jmxtools.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jndi.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jnpserver.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jpl-util-0_5b.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jta-spec1_0_1.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/mail.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/tomcat-service.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jbossmq.jar /$JBOSS_TOMCAT_HOME/jboss/db /$JBOSS_TOMCAT_HOME/jboss/conf/default /$JBOSS_TOMCAT_HOME/jboss/lib/ext/log4j.jar /$JBOSS_TOMCAT_HOME/jboss/log /$JBOSS_TOMCAT_HOME/jboss/tmp /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jbosssx.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/jbosscx-0.2.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/connector.jar /$JBOSS_TOMCAT_HOME/jboss/lib/ext/minerva-1_0b3.jar In the source tab for the JBoss-Server library point to /$JBOSS_TOMCAT_HOME/jboss/src. This is how JBuilder resolves where to find the source for stepping through the code. Without this step typically you will be able to step through the code but the Main.java will appear as Main.class. Set the main class to 'org.jboss.Main'. This is the main startup entry for the JBoss server. Also make sure that you set the working directory to $JBOSS_TOMCAT_HOME/jboss/bin cut and paste the following line and place it into the 'vm parameters' entry field (Project/Properties/Run) -classic -Dtomcat.home=D:\$JBOSS_TOMCAT_HOME\tomcat -Duser.dir=D:\$JBOSS_TOM CAT_HOME\jboss\bin -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.j axp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apac he.crimson.jaxp.DocumentBuilderFactoryImpl The starup argument should be left blank with the above setting. If you want to run with the integrated tomcat you can put tomcat as the argument, howevre beware that you MAY need to replace the /$JBOSS_TOMCAT_HOME/jboss/conf/default with /$JBOSS_TOMCAT_HOME/jboss/conf/tomcat If the above steps have been done
RE: [JBoss-user] Using Xerces
Folks, I tried to configure JBoss to use Xerces as suggested but get the following error at start-up: JBOSS_CLASSPATH=;/lib/tools.jar;D:\Development\Landmark\Xerces\Xerces-1_3_1\ xerces.jar;run.jar;D:\Development\Landmark\Xerces\Xerces-1_3_1\xerces.jar;.. /lib/crimson.jar jboss.home = C:\JBoss-2.2.1_Tomcat-3.2.1\jboss Using configuration tomcat [Info] Java version: 1.3.0,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc. [Info] System: Windows NT 4.0,x86 [Shutdown] Shutdown hook added [Service Control] Registered with server Exception in thread main [Default] javax.xml.parsers.FactoryConfigurationError: org/apache/xerces/jaxp/DocumentBuilder FactoryImpl -Djavax/xml/parsers/SAXParserFactory=org/apache/xerces/jaxp/SAXP arserFactoryImpl [Default] at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory. java:154) [Default] at org.jboss.Main.init(Main.java:192) [Default] at org.jboss.Main$1.run(Main.java:107) [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] at org.jboss.Main.main(Main.java:103) [Default] Shutting down [Service Control] Stopping 0 MBeans [Service Control] Stopped 0 services [Service Control] Destroying 0 MBeans [Service Control] Destroyed 0 services [Default] Shutdown complete Any ideas? The overall problem is that I want to use SOAP. JBoss ZOAP doesnt appear to be supported at the mo, so I downloaded Apache SOAP 2.1 whiuch needs the Xerces parser... Thanks in advance - Adam. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Winters Sent: Monday, May 14, 2001 2:48 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Using Xerces * Manuel Alzola ([EMAIL PROTECTED]) [010512 12:09]: Hello, I´m trying to use xerces on jboss-tomcat, as I was doing in standalone tomcat, but it continues using crimsom , and I suppose it becouse of this lines in jboss run.bat set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu mentBuilderFactoryImpl set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAX ParserFactoryImpl I have not found in xerces docs a JAXP equivalent, and I need Xerces becouse crimson fails me when working with Xalan for xsl processing. As long as you've got the xerces classes in the classpath, the following should work: set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Docum entBuilderFactoryImpl set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAX ParserFactoryImpl Hope this helps. Chris ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to install ZOAP?
Folks, What's happening with ZOAP? The links from the projects page (http://www.jboss.org/zoap/zoap.htm) is dead. Has anyone used ZOAP? Are there any examples? Thanks - dam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBuilder Integration for edit/compile/test
Hi, Is it possible to integrate JBoss with JBuilder4? I need to create EJB's and minimise the edit/compile/test cycle. Ideally I want JB4 to compile and then deploy the bean to JBoss automatically. I believe (bit I haven't tried it) that JB4 can do this with the Inprise App Server and Weblogic... If anyone has achieved this I would love to know how... Thanks - Adam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user