[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jndi.properties and RMI
yes, I have. I am using the default for app1 and 'port-01' for app 2, so the default ports are 1099 and 1199. So finally what I did was, since I wanted custom ports, I changed these to the custom ports (in jboss-service.xml for app1 and my-bindings.xml for app2 ) and now thigns appear to be working. But best practise wise, where should one define these ports? in the jboss-service.xml, custom-bindings.xml or jndi.properties? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170571#4170571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - jndi.properties and RMI
Hi All, I have two applications in JBoss app1 and app2 inside two configuration folders of the same name. They have code to communicate using RMI (app1=server app2=client). When I use try to define custom ports using the jndi.properties file, I get connection refused eeception for both. When I don't the client - server communicate nicely using the default settings. My question was, what am I missing? do I need to define the jndiport somewhere other than jndi.properties too? What other properties can I define in this file. Right now, one of the props file looks like this: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jnp.interfaces java.naming.provider.url=jnp\://localhost\:2999 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170451#4170451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: EAR validation?
I tried by removing Root.war. Still get the same error. I also tried adding / removing tags from application.xml and jboss-web.xml. Get the same exception. Am I missing defining the root context somewhere? btw I would want to keep it default. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169628#4169628 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169628 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: EAR validation?
oh, or maybe the 'tmp' directory is only used when the ear/war are unexploded. sorry for misguiding but the problem remains for me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169415#4169415 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: EAR validation?
thanks, that worked to a degree, but I am getting another exception now (see below). I have not 'jarred' these files since I thinkthat exploded directories should work in JBoss(?), so the .ear, .war, .ejb are folders: I think the problem might be in line 3 from below, as usually WAR URL should point to the tmp directory eg: ' warUrl=.../tmp/deploy/tmp20973example3.ear-contents/example3-exp.war/' But I don't know what the cause is. 16:53:57,210 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/ 16:53:57,585 INFO [EARDeployer] Init J2EE application: file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1.ear/ 16:53:57,851 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/app1.ear/app1.war/ 16:53:57,976 ERROR [Digester] End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUtils.java:932) at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:792) at org.apache.tomcat.util.digester.Rule.end(Rule.java:229) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1136) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1643) at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169411#4169411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: EAR validation?
Ok. I am pasting the log I get per file. I get the same message for a bunch of other files: 2008-08-06 17:30:44,415 DEBUG [org.jboss.deployment.MainDeployer] Deployment of package: file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/app1-war/index.jsp is waiting for an appropriate deployer. 2008-08-06 17:30:44,415 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/app1-war/index.jsp -> file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/app1-war/index.jsp 2008-08-06 17:30:44,415 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- [EMAIL PROTECTED] { url=file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/META-INF/application.xml } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/META-INF/application.xml altDD: null lastDeployed: 1218058244040 lastModified: 1218058244040 mbeans: Similar messages for multiple files ending with: [EMAIL PROTECTED] { url=file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/app1-war/index.jsp } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/C:/software/jboss-4.2.2.GA/server/default/deploy/app1/app1-war/index.jsp altDD: null lastDeployed: 1218058244415 lastModified: 1218058244383 mbeans: View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169345#4169345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169345 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - EAR validation?
Is there a tool that does EAR format validations? Things like if all the descriptors are present as hosuld be etc? Basically trying to deploy an EAR from JRun to JBoss and get the following messages for a lot of XML, JSP and other property files: Package waiting for deployer. In some other post I had read that this might happen if the EAR is named as deploy.ear, but that is not the case in my scenario. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169318#4169318 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169318 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Migration from Jrun to Jboss
Hi Ravi, I am looking at a similar porting activity. Any tips, suggestions, things to look out for or website links you can share? Would appreciate it. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169142#4169142 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: question on multiple instance of JBoss
own, seperate JVMs View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168585#4168585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - question on multiple instance of JBoss
Hi, I think I my answer would be yes to this question, but still want to confrim with somebody. I have two configurations set up with their own applications (jboss/server/app1 and jboss/server/app2). I use -c option to start each. When they are both up and running, these are in their own JVM correct? Is their a way to verify this? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168584#4168584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - dynamic Jboss launcher
Following up on my previous post, I have been trying various things and was able to deploy 1) 2 ears on the same instance using suggestions made by PeterJ, and 3) run multiple instances of Jboss on same machine (command line) from the JBoss documentation: 'multiple web apps in the SAME JBoss instance' I have been doing some look ups, and I found this one pager in JBoss's website, that talks about a dynamic jboss launcher. I see that one needs a third party Java Warpper application to do this, but other than that, does any one have any information on further documents / reading on this? Is anyone using it in production environment? is it recommended or one should stick to the command line start of multiple instances (if going for multiple instances)? Any thoughts, suggestions welcome.: https://docs.jbosson.redhat.com/confluence/display/DOC/Dynamic+JBoss+Launcher Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167064#4167064 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167064 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
Hi Peter, I also noticed that starting the WAr doesn't work either, so basically only stopping the WAR works for me. Stopping the WAR, starting /stoppping the EAR does not. Are you on version 4.2.2GA too? Are there any alternate means of achieving this functionality? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166503#4166503 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
Hi Peter, yes the link you mention below, but for me it is under jboss.j2ee, not jca (I am guessing it might be the same for you). Btw, I am on JBoss 4.2.2 GA. I think as a first step, if the app gets undeployed (just like the WAR), it would work for me. Only that it is not doing so :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166280#4166280 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166280 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: is authenticated login cached anywhere?
I figured this out. It is the defaultcachetimeout and defaultcacheresolution variables in jboss-service xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166275#4166275 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166275 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
Thanks Peter, this was helpful. I went through the JMX console, but still get another exception when trying to stop my EARDeployment service. Though, when I try stopping the WAR, it undeploys the WAR file!!. I see from the exception that JBoss doesnt find my EAR registered?? javax.servlet.ServletException: Failed to invoke operation org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:269) org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100) org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause javax.management.InstanceNotFoundException: jboss.j2ee:service=EARDeployment,url='example2.ear' is not registered. org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523) org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:666) org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:216) org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262) org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100) org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166255#4166255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - is authenticated login cached anywhere?
Is there a way to clear it before next login attempt? Is this a setting? Basically, I have a custom implementation of the login module, with a funtionality to check for number of times a user attempted bad logins before throwing a LoginException. Thing is, if I attempt a good login, then x amount of bad logins, then a good login, I can log in successfully, leading me to believe my first successful login is cached somewhere. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166253#4166253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Porting a simple RMI client-server app to JBoss
did anyone figure this out? I have a similar issue View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166227#4166227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
I see...though I am familiar with what MBeans are, starting / stopping is something I am not familiar with. 1) I went to the JMX console and under MBean>jboss.j2ee>my deployment ear and tried stopping it. It throws a security policy exception (operation not allowed). 2) Would I need to custom write an MBean, specially if I wanted to have one more level of directory inside deploy folder where I keep my app? Is there a some good reading source you could point me to? anything online or a book? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165944#4165944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
in continuation to my above post: My basic objective was to be able to deploy multiple independent apps / db conn, and have the ability to start /stop one without affecting the other. That was the reason I was thinking about using multiple custom configs, and hoping to start them using something like: ./run.sh -c app1 -c app2 etcI understand that other app servers like jRun allow that...is there no way / workaround in jBoss for this (except using multiple instances of JBoss)? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165912#4165912 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165912 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
Peter, my bad...guess what I meant to say was ' *I assume* in the scenario we would not be able to config some things', I haven't come across any, but are there things to keep in mind if I wanted two apps to work completely independently connecting to seperate DBs etcRight now both my application policies(for both apps) are defined in the same login-config xml, but I have seperate classes extending the DatabaseLoginModule in JBoss in my seperate apps, so I think security should be independent enough, but what other (if any) thing would I want seperate if I wanted completely independent applications running in the same instance of JBoss...is it possible to have custom directories by which to seperate these apps /ds.xml? Thanks for you help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165884#4165884 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165884 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: multiple web apps in the SAME JBoss instance
Thanks PeterJ, That was basically what I observed while trying this, and you confirmed it. What is the difference in terms of security? I have my custom classes on top of authentication mechanism provided by JBoss. I am thinking, apart from not being able to config a few things seperately, security wise things should be the same in both styles. Would you agree? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165715#4165715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - multiple web apps in the SAME JBoss instance
Hi, I think this should be possible and am trying to test it. I have 2 ears, 2 database with sperate DB connections inside two custom security folders. e.g: server/app1/deploy, server/app2/deploy. 1) How do I start JBoss to pick both deployments? Is it even possible? 2) I came across the topic to start Multiple Instances of JBoss in the same machine, in the JBoss wiki, but as you see, I want to start 2 security modules with seperate EAR / DB connections, in the same JBoss instance. Please point me to the appropriate documentation / forum / post if this has been discussed before. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165705#4165705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165705 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: own implementation of db connection / pooling
As an addendum, even if I don't define a ds.xml, I need to customise some modules which require DB connections and ideally do so by doing the datasource lookup. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160334#4160334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160334 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - own implementation of db connection / pooling
Apologize if this has been asked before. If I have a custom implementation for database connection and pooling in my application (connects to MS SQL server), is there a way to not configure / use -ds.xml / JBoss db connection pooling, and have JBoss connect to the DB? If so, how would one achieve this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160315#4160315 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user