[JBoss Messaging] - problem wiht NDC used in multiple threads
by jerome maraninchi
jerome maraninchi [http://community.jboss.org/people/geek_nissa] created the discussion
"problem wiht NDC used in multiple threads"
To view the discussion, visit: http://community.jboss.org/message/623933#623933
--------------------------------------------------------------
Hello everybody,
I'm an issue after the migration from JBoss 3.2 to JBoss 6.0. All run expect log. I use jboss-logging.xml for each EAR deployed on JBoss to specify, the level, the pattern and the destination. After migrate on the code, to use org.jboss.logmanager and not org.apache.log4j I am problem to display the context with %x.
it can't give the context and i see this error : Log stack integrity error (there are currently 1 contexts into it) the number of context is give whith NDC.getDepth.
I thougth I have this problem because all ear isn't isolated but no because I'm tested after isolated and i have the same problem
You can see the log is good expect the context between the two chevron in red
*<>* <2011-08-31 07:55:09,129> <soap> <INFO> <generated : 54561>
This is the pattern used in jboss-logging.xml
<pattern-formatter pattern="<%x> <%d{yyyy-MM-dd HH:mm:ss,SSS}> <soap> <%p> <%m>%n"/>
Thank you for your help and have a good day
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623933#623933]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - jbpm drools grid error
by Luis Tamayo
Luis Tamayo [http://community.jboss.org/people/luis.tamayo] created the discussion
"jbpm drools grid error"
To view the discussion, visit: http://community.jboss.org/message/623876#623876
--------------------------------------------------------------
hi,
Please, I am running jbpm5.1.final, drools 5.2.0.final, HornetQ 2.0.0.GA.
When i try to create a remote node, when I call conf.configure(grid);, it throws a null pointer error:
private Map<String, GridServiceDescription> coreServicesMap;
private Grid grid;
private GridNode remoteN1;
public void createRemoteNode() {
grid = new GridImpl(new HashMap<String, Object>());
configureGrid1(grid,
8000,
null);
GridNode n1 = grid.createGridNode("n1");
grid.get(SocketService.class).addService("n1", 8000, n1);
GridServiceDescription<GridNode> n1Gsd = grid.get(WhitePages.class).lookup("n1");
GridConnection<GridNode> conn = grid.get(ConnectionFactoryService.class).createConnection(n1Gsd);
remoteN1 = conn.connect();
}
private void configureGrid1(Grid grid,
int port,
WhitePages wp) {
System.out.println( "=================>Esta en configure grid" );
//Local Grid Configuration, for our client
GridPeerConfiguration conf = new GridPeerConfiguration();
//Configuring the Core Services White Pages
GridPeerServiceConfiguration coreSeviceWPConf = new CoreServicesLookupConfiguration(coreServicesMap);
conf.addConfiguration(coreSeviceWPConf);
//Configuring the Core Services Scheduler
GridPeerServiceConfiguration coreSeviceSchedulerConf = new CoreServicesSchedulerConfiguration();
conf.addConfiguration(coreSeviceSchedulerConf);
//Configuring the WhitePages
WhitePagesLocalConfiguration wplConf = new WhitePagesLocalConfiguration();
wplConf.setWhitePages( wp );
conf.addConfiguration(wplConf);
if (port >= 0) {
//Configuring the SocketService
MultiplexSocketServiceCongifuration socketConf = new MultiplexSocketServiceCongifuration(new MultiplexSocketServerImpl("127.0.0.1",
new MinaAcceptorFactoryService(),
SystemEventListenerFactory.getSystemEventListener(),
grid));
socketConf.addService(WhitePages.class.getName(), wplConf.getWhitePages(), port);
conf.addConfiguration(socketConf);
}
conf.configure(grid);// here produce null pointer exception
}
17:06:23,521 ERROR [STDERR] java.lang.NullPointerException
17:06:23,523 ERROR [STDERR] at org.drools.grid.timer.impl.CoreServicesSchedu
lerConfiguration.configureService(CoreServicesSchedulerConfiguration.java:23)
17:06:23,526 ERROR [STDERR] at org.drools.grid.conf.impl.GridPeerConfigurati
on.configure(GridPeerConfiguration.java:22)
thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623876#623876]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - Web console report - HTTP Status 500
by Chris Nash
Chris Nash [http://community.jboss.org/people/code_monkey] created the discussion
"Web console report - HTTP Status 500"
To view the discussion, visit: http://community.jboss.org/message/624129#624129
--------------------------------------------------------------
I have the jbpm-installer installed and running. I was following the demo and the screencast for the web console ( http://people.redhat.com/kverlaen/install-gwt-console-jbpm.swf http://people.redhat.com/kverlaen/install-gwt-console-jbpm.swf) and everything operates perfectly (to a point). When I get to the Reporting segment (at about 1:23), I get a big Error window. Titled *HTTP Status 500 -*, it says:
org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: *Report server not initialized*. Please check the server logs for further details.
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
The server.log says exactly the same thing. When I close the window, I get a blank "Report configuration" window (it has a combobox without any contents).
How do I initialize the Report Server? Am I missing a component? I have jbpm-5.1.0.Final-gwt-console.zip installed.
Thanka for any help!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624129#624129]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[IronJacamar] - class loading of an inbound resource adapter?
by Kai Grunert
Kai Grunert [http://community.jboss.org/people/kgrunert] created the discussion
"class loading of an inbound resource adapter?"
To view the discussion, visit: http://community.jboss.org/message/623879#623879
--------------------------------------------------------------
Hello,
I have just written an inbound resource adapter and everything seems to work fine with it. When I deploy my RA to the JBoss 7.0.1 AS, the container calls the ResourceAdapter.start(BootstrapContext ctx) method and I get a log message that the resource adapter has been started successfully.
In the next step, I try to activate an endpoint for my MDB using the following annotations:
...
import de.RATest.UDPMessageListener;
@MessageDriven(messageListenerInterface = UDPMessageListener.class,
activationConfig={
@ActivationConfigProperty(propertyName = "port", propertyValue="15660")
})
public class UDPMessageDrivenBean implements UDPMessageListener{
public void onMessage(String str){
...
}
}
Unfortunately when I deploy the MDB, I end up with a NoClassDefFoundError and ClassNotFoundException for the MessageListener Interface:
23:56:30,367 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."MDB_RA_TEST.ear"."MDBs.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."MDB_RA_TEST.ear"."MDBs.war".INSTALL: Failed to process phase INSTALL of subdeployment "MDBs.war" of deployment "MDB_RA_TEST.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
Caused by: java.lang.LinkageError: Failed to link UDPMessageDrivenBean (Module "deployment.MDB_RA_TEST.ear.MDBs.war:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
at org.jboss.modules.Module.loadModuleClass(Module.java:588)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at java.lang.Class.forName0(Native Method) [:1.6.0_26]
at java.lang.Class.forName(Class.java:247) [:1.6.0_26]
at org.jboss.as.ee.component.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:124)
at org.jboss.as.ee.component.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:114)
at org.jboss.as.ee.component.LazyValue.get(LazyValue.java:40)
at org.jboss.as.ee.component.EEApplicationDescription.getClassConfiguration(EEApplicationDescription.java:183)
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription.createConfiguration(MessageDrivenComponentDescription.java:78)
at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:63)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: java.lang.NoClassDefFoundError: de/RATest/UDPMessageListener
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_26]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_26]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_26]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_26]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
... 22 more
Caused by: java.lang.ClassNotFoundException: de.RATest.UDPMessageListener from [Module "deployment.MDB_RA_TEST.ear.MDBs.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
... 27 more
I'm relatively new in the Java EE world and have not a lot of experiences with resource adapters, but this exceptions seems to me that the classes of the .RAR-file are not loaded correctly. I have read parts of the specification and also tried a lot with different combinations of archives, for example: a standalone .rar and a .ejb-jar file, everything inside of an .ear-file and a lot of other combination - but nothing has worked.
I am actually not sure anymore, that the resource adapter is completely correct. I have some questions that maybe could solve my problem:
* do I need an JBoss specific deployment descriptor for the resource adapter?
* do I have to modify the standalone-preview.xml also for an inbound resource adapter?
* do I need something like the @ResourceAdapter annotation in my MDB?
* if my inbound resource adapter is correct, should I see it in the management console under "Connector" -> "Resource Adapters"?
Here are some more facts, that could be important:
* use of JCA 1.6
* only annotations, so I have no ra.xml or ironjacamar.xml
* I have started the standalone-preview.xml without any modifications
* I have checked the RA with the ironjacamar validator and ended up with a "Validation successful"
I have really no clue how to go on and hope that you can help me. To simplify matters I have attached the sources.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623879#623879]
Start a new discussion in IronJacamar at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Tools] - Code assist in JBoss Tool HTML Editor for EL in XHTML
by Torsten Knopp
Torsten Knopp [http://community.jboss.org/people/TorstenKnopp] created the discussion
"Code assist in JBoss Tool HTML Editor for EL in XHTML"
To view the discussion, visit: http://community.jboss.org/message/623968#623968
--------------------------------------------------------------
Hello!
I use Eclipse 3.7 Indigo for EE-Developers with JBoss tools 3.3.0 M2 plugin and didn't get code assist in xhtml files for EL!
I work with Apache Myfaces 2.0 implementation.
Here is the managedBean:
/*
* customer profile
*/
@ManagedBean
@SessionScoped
public class Customer {
private String firstName;
private String lastName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String save() {
return "/showCustomer.xhtml";
}
}
and here is the xhtml-File:
<h:inputText id="firstName" value="#{customer.???????? }"/>
When I press Ctrl + space i get: "No JBoss JSF EL proposals"
I read in this forum:
h2. Proposals for XML/JSP/XHTML Expression Language (JSF and/or Seam EL-expressions)
Some Runtimes allow a user to use Expression Language inside the XML, JSP and XHTML pages. Depending on the Content Type of the page there are different regions where the EL-expressions can be used as:
* attribute values: in XML, JSP and XHTML files;
* part of text regions (Default Text): in XML and XHTML files.
The EL-expressions are to be surrounded either by "#{…}", or "${…}" character sequence. In case of absent EL closing character sequence it will be added to the text automatically after some of EL proposals is applied to the text.
There are two ways to invoke the CA:
* Manual: You could place cursor into a text inside a text between the EL opening and closing character sequences and then press Ctrl-Space key combination.
* Automatic: You could type one of the CA-auto start characters in inside the EL-expression (in a text or an attribute value region depending on the Content Type). The characters are ".", "[". In this case the CA for tag name proposals will be invoked automatically. Also the CA will be invoked automatically if you type the "{"-character right after the "$"-character or "#"-character.
Any idea what I'm doing wrong?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623968#623968]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months