[JBoss-user] [Beginners Corner] - the HelloWorld servlet
i have been trying to figure out if what i am doing is correct or not. i run the server from here: C:\jboss-4.0.1sp1\bin\run.bat the server is running correctly, no errors. everything is fine. no errors with classpath or anything then i open http://localhost:8080/jmx-console/ working fine also i go to the command line and i compile the servlet javac sallamServlet.java compiled. now, what do i do to run the servlet? i went to IE and typed down http://localhost:8080/jmx-console/FirstServlet.sallamServlet not working this is the path: C:\jboss-4.0.1sp1\server\default\deploy\FirstServlet 1) .project ?xml version=1.0 encoding=UTF-8? FirstServlet 2) sallamServlet.java package deploy.FirstServlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** This servlet Says Sallam to the user in a HTML page. */ public class sallamServlet extends HttpServlet { /** * This method will be called by the Servlet Container when * this servlet is being placed into service. * @param config - the ServletConfig object that * contains configutation information for this servlet. */ public void init(ServletConfig config) { System.out.println(sallamServlet: init()); } /** * This method handles the HTTP GET requests for this servlet. * It says Sallam to the user in an HTML page. * @param request - object that contains the request the * client has made of the servlet. * @param response - object that contains the response the servlet * sends to the client. * @exception java.io.IOException - if an input or output error is * detected when the servlet handles the GET request. * @exception ServletException - if the GET request could not be handled. */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // write the response to be displayed // set the response type response.setContentType(text/html); // obtain the writer to write the response PrintWriter out = response.getWriter(); // write the page title out.println(); out.println(Servlet Example - Sallam); out.println(); // write sallam out.println(H1Sallam/H1); // close the page out.println(); // close the writer out.close(); }//doGet /** This method will be called by the Servlet Container when this servlet ** is being taken out of service. */ public void destroy() { System.out.println(sallamServlet: destroy()); }//destroy }//Class sallamServlet 3) sallamServlet.class was created when i compiled the java file 4) sallam.html not sure why i wrote this one :s Sallam H3Sallam/H3 --- Thanks, Maha View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877769#3877769 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877769 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: 16:22:50,265 ERROR [SOAPElementAxisImpl] Cannot convert
I found a way to make it work on 4.0.2. I didn't test it back to 4.0.1: | SOAPMessageContext soapContext = (SOAPMessageContext) messageContext; | SOAPMessage soapMsg = soapContext.getMessage(); | Source source = soapMsg.getSOAPPart().getContent(); | StringWriter writer = new StringWriter(); | Result result = new StreamResult(writer); | Transformer xformer = TransformerFactory.newInstance().newTransformer(); | xformer.transform(source, result); | return writer.toString(); | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=380#380 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=380 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: 4.0.1 to 4.0.2 ClassCastException on PortableRemoteObjec
Hi tigerref, I thing the problems comes from the fact that the classes in question exist in two places in your EAR: once in the EJB jar and once in the war (WEB-INF/classes). anonymous wrote : Servlet o's CL: [EMAIL PROTECTED] url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp27550TSmartApp.ear ,addedOrder=40} target's CL: WebappClassLoader | delegate: false | repositories: | /WEB-INF/classes/ | In that case, a change in webapp class loading will have an impact. So, two options: - fight with the CL setting - or (easier) remove the duplicate classes from the WAR. Cheers View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=382#382 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=382 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - How to use a custom DataSource impl?
We're a bit stuck on this one. Here's the context: We need to implement a JDBC connection pool that spreads its load across a horizontal tier of identical databases. The application feature we're supporting is a reporting system; when a new report is first executed all the results are prepared and cached in the database. Subsequently, the app retrieves results one block at a time from the cache. Almost a readonly situation, but not quite. So the desired solution will have a getConnection(...) that takes a parameter that identifies the report object. When a new report is observed, the pool will allocate a connection to the database node that is currently under the least load. Subsequent connections keyed by that report will return to the same database (because that's the node with the cache). Now the question. We can see how to do this with a custom JCA connector, but we're so darn lazy we'd rather just implement a ConnectionPoolDataSource. We're using JBoss 3.2, and the -ds.xml configurations require that we specify a Driver vice a DataSource. How do we tell JBoss to use our pooling DataSource? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=383#383 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=383 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: How to use a custom DataSource impl?
Oops, just found the IWantToPluginACustomThirdpartyDataSource topic in the Wiki. So I suppose it's going to be a full JCA implementation, huh? At least we don't need transactions. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=384#384 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=384 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Persistance of JMS messages in filesystem instead of Hyperso
Hi, how do I configure JBoss-4.0.1sp1 to persist JMS messages in the filesystem instead of the Hypersonic database? Thank you, Peter View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=387#387 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=387 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: starup error: can't find data source
sorry, It is a post mistake, in fact my mysql-ds.xml is: ?xml version=1.0 encoding=UTF-8? local-tx-datasource jndi-namemedrec/jndi-name connection-urljdbc:mysql://localhost/medrec/connection-url driver-classcom.mysql.jdbc.Driver/driver-class user-namemedrec/user-name medrec min-pool-size50/min-pool-size max-pool-size20/max-pool-size idle-timeout-minutes0/idle-timeout-minutes track-statementstrue/track-statements /local-tx-datasource View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=389#389 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=389 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - From Localhost to IP adress
Hello, I'm a newbie on JBoss and i got the following problem: When I go to the following link: http://localhost:8080/ Then i see the Jboss start page, but when I change the localhost into my IP adress, it stops working. Why is that? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877780#3877780 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877780 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Problem setting custom URI for SessionBean deployment
I am having trouble setting a custom URI for a session based bean. All references indicate that jboss.xml needs to be modified to add a port-component element with port-component-uri/someuri/port-component-uri. This does not seem to work. The dtd seems to be violated and this is confirmed when JBOSS will not deploy the service. I am using release 4.0.2. Any help would be appreciated. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877781#3877781 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877781 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Problem setting custom URI for SessionBean deployment
Update. I did find a helpful link. http://www.jboss.org/index.html?module=bbop=viewtopicp=3874451#3874451 This worked but I still had to eliminate the DOCTYPE element from jboss.xml in order for it to load correctly. Also when using /ws4ee/services to see deployed services the new uri was not shown. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877782#3877782 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877782 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Theme API Doc added
You can find the chapter here: http://docs.jboss.org/jbportal/v2.0RC/reference-guide/en/html/themeandlayouts.html You can find the sample war here: http://download.jboss.com/jbossportal/themes/myLayout.war.zip View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877783#3877783 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877783 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Filtering out security exceptions
Is there really no way to do this? Thanks in advance for any help. -Eric View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877785#3877785 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877785 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Filtering out security exceptions
Never mind, I found a solution. For those interested, I dug up this suggestion in the forums: appender-ref ref=JSR77/ This seems to work. Good luck. Eric View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877786#3877786 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877786 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Filtering out security exceptions
That solution didn't come out quite right, here it is again... [category name=org.jboss.ejb additivity=false] [priority value=ERROR/] [appender-ref ref=JSR77/] [/category] View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877787#3877787 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877787 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Shutdown of multiple instances of Jboss on same server
This is for JBoss 4.0.2 running on Redhat ES3. Could someone clarify something for me? I've started multiple instances of JBoss from the command line, meaning two different configurations, each bound to it's own IP address as in the following command: | /usr/local/jboss/bin/run.sh -Djboss.server.base.dir=/home/httpd/vhosts/ -Djboss.server.base.url=file:/home/httpd/vhosts/ --host=xxx.xxx.xxx.xxx -c mydomain.com/webapps | Run this command twice with differing host and -c settings and you now have two instances of JBoss running from the same installed base. Now the problem remains, how the hell do I shutdown one instance or the other? And I mean without using kill -9? I know the shutdown options, which are found on http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch01.html, but can't seem to get any of them to work. I tried this: | /usr/local/jboss/bin/shutdown.sh -s xxx.xxx.xxx.xxx:1099 -S | ...but all I get is an error: | Exception in thread main javax.naming.NameNotFoundException: jmx not bound | Now the test JBoss configurations I am using are just copies of the minimal configurations that come with the JBoss installation, and I think that means that JMX services are not part of that config which would explain the above error, but if that's the case, then how are you supposed to shut down a server from the command line without that service running? Can anyone clue me in? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877790#3877790 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877790 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - NoClassDefFoundError: org/aspectj/lang/Signature
Hi, I am using jboss portal (jboss-portal-2.0-RC-mysql-bin) with jboss (jboss-4.0.1sp1). I think the database is correct (I can connect to it and the tables are created). But when I start the server I got this error message. Any help ? 2005-05-15 19:53:40,731 INFO [net.sf.hibernate.dialect.Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialect 2005-05-15 19:53:40,735 INFO [net.sf.hibernate.cfg.SettingsFactory] Maximim outer join fetch depth: 2 2005-05-15 19:53:40,736 INFO [net.sf.hibernate.cfg.SettingsFactory] Use outer join fetching: true 2005-05-15 19:53:40,813 INFO [net.sf.hibernate.util.NamingHelper] JNDI InitialContext properties:{} 2005-05-15 19:53:40,814 INFO [net.sf.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:PortalDS 2005-05-15 19:53:40,818 INFO [net.sf.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: net.sf.hibernate.transaction.JTATransactionFactory 2005-05-15 19:53:40,819 INFO [net.sf.hibernate.util.NamingHelper] JNDI InitialContext properties:{} 2005-05-15 19:53:40,822 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transaction.JBossTransactionManagerLookup 2005-05-15 19:53:40,823 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup 2005-05-15 19:53:40,949 INFO [net.sf.hibernate.util.NamingHelper] JNDI InitialContext properties:{} 2005-05-15 19:53:40,951 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transaction.JBossTransactionManagerLookup 2005-05-15 19:53:40,951 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup 2005-05-15 19:53:40,958 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 90 old interval: 9223372036854775807 2005-05-15 19:53:40,958 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1116198070958, new next: 1116198070958 2005-05-15 19:53:40,959 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=portal, password=--hidden--} 2005-05-15 19:53:40,959 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Checking driver for URL: jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false 2005-05-15 19:53:40,959 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver not yet registered for url: jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false 2005-05-15 19:53:41,025 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null java.lang.NoClassDefFoundError: org/aspectj/lang/Signature at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:266) at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:150) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:508) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207) at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:534) at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:396) at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:299) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:448) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:838) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102) at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59) at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73) at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789) at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:583) at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551) at
[JBoss-user] [Beginners Corner] - classpath tag clarification sought
Hello Please help me understand the classpath flavor. the service I am trying to deploy using MBean requires two jars, a lib file and dll. How do I specify this in jboss-service.xml for multiple jars I would do this: on wiki I came across Would this second form be sufficient to include one or more jars, lib and dll files? I am also suffering a disconnect regarding the purpose of jboss-service.xml, fix-service.xml. When are these DDs relevant? Why is jboss-service.xml NOT enough? Thank you for your clarification. -- Raman View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877796#3877796 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877796 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: jboss 4.0.2 not deploying hibernate-service in exploded
Hi, I am also experiencing same issues!!! What's wrong with 4.0.2? Or is anything extra needs to be done with the HAR ? Please help . Regards, Amit View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877797#3877797 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877797 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user