[JBoss OSGi] - Re: OSGi features
by trouby
Hey,
As I see the last replies to this post are only month ago so I guess things are in progress now :-)
I think OSGI implementation is very important, Geronimo, Jonas/WS/etc.. are already there so it'll be great having it in Jboss too!
I have some points which I think could be real helpful:
- Integration with EJB/seam, activating a bundle with EJB/seam components easily.
- Extensible components, I think JavaEE is really lacking here, it is very hard to build today a platform where external bundles can modify your app layers(core/services/gui/etc), as JavaEE packaging is really strict (all the descriptors, packing structure/etc...),
I'm not sure the second point is apart of the spec, but it could be real great,
Nuxeo(OSS ECM) took this step forward, they had to deploy their application on Eclipse server and Jboss as well, so they have their own OSGI implementation with Jboss adpater which hook Jboss j2ee/javaee behaviors with the OSGI model
You guys better take a look, they also have component extensibility where each component can declare extension-points and can contribute to other components (but yet again, I'm really not sure this is a part of the OSGI spec),
http://www.nuxeo.org/sections/projects/runtime/
It is also LGPL and I think it is well written..
Well, I'd also like to see your plans and help with testing and maybe some coding here and there :)
Cheers,
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104335#4104335
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104335
18 years, 8 months
[Security & JAAS/JBoss] - org.jboss.web.jsf.integration.config.JBossJSFConfigureListen
by maximuszen
Can you help me understand this error?
Windows XP, Java SDK 1.5, JBoss 4.2.2
Here is my code:
default/conf/login-config.xml
<application-policy name = "zzz">
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "dsJndiName">java:/PostgresDS</module-option>
<module-option name = "principalsQuery">SELECT password FROM xuser WHERE username=?</module-option>
<module-option name = "rolesQuery">SELECT name, 'Roles' FROM role WHERE id = ANY
( SELECT role_id FROM user_role WHERE user_id = ANY
( SELECT id FROM xuser WHERE username = ? ) )
</module-option>
</login-module>
</application-policy>
default/conf/auth.conf(I removed this) and
the VM argument -Djava.security.auth.login.config=auth.conf
zzz{
// jBoss ClientLoginModule
org.jboss.security.auth.spi.DatabaseServerLoginModule required
;
};
LoginServlet
public class Login extends Command {
public String perform(HttpServletRequest request) {
String username = request.getParameter("u");
String password = request.getParameter("p");
UsernamePasswordHandler handler = new UsernamePasswordHandler(username,password);
Subject subj = null;
try {
LoginContext lc = new LoginContext("zzz",handler);
lc.login();
} catch (LoginException e1) {
return error;
}
subj = lc.getSubject();
Log.info("subj = "+subj);
return ok;
}
}
web.xml in application
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet-name>Security</servlet-name>
<servlet-class>servlet.Security</servlet-class>
<servlet-mapping>
<servlet-name>Security</servlet-name>
<url-pattern>/s</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>login</web-resource-name>
<url-pattern>/s</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>zzz</realm-name>
</login-config>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104324#4104324
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104324
18 years, 8 months
[JBoss Messaging] - Re: Message stranded in cluster
by chip_schoch
Thanks Tim. I changed to XAConnectionFactory for the services that consume from the local node and that works fine. However, my cluster is running under RedHat but I have two non clustered JBoss servers running under windows. These are each running a service that is a consumer of messages that are posted to the clustered queue running under redhat. They are connecting use the following:
<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
| name="jboss.messaging:service=JMSProviderLoader,name=ConversionJMSProvider">
| <attribute name="ProviderName">ConversionJMSProvider</attribute>
| <attribute name="ProviderAdapterClass">
| org.jboss.jms.jndi.JNDIProviderAdapter
| </attribute>
|
| <attribute name="FactoryRef">ClusteredXAConnectionFactory</attribute>
| <attribute name="QueueFactoryRef">ClusteredXAConnectionFactory</attribute>
| <attribute name="TopicFactoryRef">ClusteredXAConnectionFactory</attribute>
|
| <attribute name="Properties">
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=172.17.20.60:1100, 172.17.20.61:1100
| jnp.disableDiscovery=false
| jnp.partitionName=dev.application
| jnp.discoveryGroup=228.1.2.4
| jnp.discoveryPort=1102
| jnp.discoveryTTL=16
| jnp.discoveryTimeout=5000
| jnp.maxRetries=1
| </attribute>
| </mbean>
It appears that both of these windows servers is connecting to the first provider in the list. Messages that are posted to the second provider (i.e. the partial queue on server 172.17.20.61) are never getting consumed.
I thought that clients of the clustered queue could connect to whichever node they found first and they would get messages from any partial queue. Is this incorrect?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104319#4104319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104319
18 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Exception during upgrade of JBoss 4.0.4.GA to JBoss 4.2.2 GA
by mendaye
Hello All:
I've upgraded for our enterprise application from JBoss 4.0.4 GA to JBoss 4.2.2 GA. After several code and configuration change, I was to start the server. But, I am still seeing the following exception which prevent opening Jboss jmx consol and application client. Can some help how to resolve the following exception?
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.compiler.JDTCompiler$2.acceptResult(JDTCompiler.java:346)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:405)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
| 2007-11-13 13:29:31,475 [http-127.0.0.1-8080-1] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp] - Servlet.service() for servlet jsp threw exception
|
|
Thanks inadvance for helping me to fix this issue.
Surafel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104318#4104318
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104318
18 years, 8 months