[Beginners Corner] - Spawning processes from JBoss App Server
by dilip_anant
Hi There,
I am new to Jboss and this is my first post in the forum.
We have an application that does data collection from disparate systems and checks for their availability. My application checks if a system is up or not by pinging the IP and checking if certain services are running on machines by doing a command line check, for e.g doing a
sc \\servername query W3SVC to check if the IIS server is up or not. The code for the data collection is in Java and the data is used to view a dashboard. I was able to ping different machines and was able to get responses.
The problem is that in some cases my application gives me a negative result for a ping whereas i can see that iam able to get a response from the command prompt. I tried to understand why this was occuring and tried deploying the application in other secure systems but to no avail. Finally i thought that it could be some issue related to the JBoss security. In that hope i write here.
Is there any Jboss security policy that restricts new command processes (like ping, sc\\ query) from being spawned?
I would appreciate if anyone could help me with this.
thanks,
Dilip
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070840#4070840
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070840
18Â years, 8Â months
[JBoss Seam] - Issues with AS 4.0.5 / Seam 2.0 Beta1
by rvkishore
I am trying to port my Seam 2.0 application which runs fine on AS 4.2.1 to AS 4.0.5.
I followed the instructions in the docs to replace the myfaces jar files with the jsf-* files and modified the web.xml file. I am getting the following exception when I deploy my app's ear file
| 8-03 21:36:51,731 INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
| 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
| 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
| 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
| 2007-08-03 21:36:51,764 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dtl]] StandardWrapper.Throwable
| java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
| at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
| at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
|
Looking thru the log files, I see that the jsf-impl.jar file is being loaded by the server. Yet, it cant find the FacesContextFactory class.
| ar/commons-modeler.jar
| 2007-08-03 21:36:07,797 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-digester-1.6.jar
| 2007-08-03 21:36:07,799 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-beanutils.jar
| 2007-08-03 21:36:07,800 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-codec.jar
| 2007-08-03 21:36:07,802 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-collections.jar
| 2007-08-03 21:36:07,802 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/jsf-api.jar
| 2007-08-03 21:36:07,803 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/el-api.jar
| 2007-08-03 21:36:07,804 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-lang-2.1.jar
| 2007-08-03 21:36:07,805 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/jstl.jar
| 2007-08-03 21:36:07,806 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/el-ri.jar
|
Any ideas as to why this could be happening?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070836#4070836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070836
18Â years, 8Â months
[JBoss jBPM] - GPD-78 Adding ConfigInfoElements to Actions and nested Confi
by jorell
This is mainly to do with Jira issue GPD-78 http://jira.jboss.com/jira/browse/GPD-78. For some reason i was unable to create an account otherwise I would have re-opened the issue myself.
If someone else is getting the same problem could they re-open this issue.
Basically my process has an a node with an action element like this:
<action class="SomeActionHandler">
| <keys>
| <entry>
| <key>VarName</key>
| <value>1122</value>
| </entry>
| </keys>
| <receive>
| <element>030101</element>
| <element>030102</element>
| </receive>
| </action>
|
When I try to open this template the config info elements do not get created. I've narrowed the problem down to ConfigInfoElementDomAdapter.initialize() and ActionDomAdapter.initialize() methods which need the line addElements(configInfoElement.getConfigInfoElements()); at the end.
Another issue is with the getTextContent() method in XmlAdapter class. There should be a null check while getting the node value (this issue also comes up when you have nested configInfoElements). So the following in XmlAdapter.java :
| protected String getTextContent() {
| StringBuffer buffer = new StringBuffer();
| NodeList list = getNode().getChildNodes();
| for (int i = 0; i < list.getLength(); i++) {
| buffer.append(list.item(i).getNodeValue());
| }
| return buffer.toString().trim();
| }
|
should be changed to:
| protected String getTextContent() {
| StringBuffer buffer = new StringBuffer();
| NodeList list = getNode().getChildNodes();
| for (int i = 0; i < list.getLength(); i++) {
| String nodeValue = list.item(i).getNodeValue();
| if (nodeValue != null)
| buffer.append(nodeValue);
| }
| return buffer.toString().trim();
| }
|
I'd appreciate it if someone could confirm these issues for me.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070831#4070831
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070831
18Â years, 8Â months