[Design of JBossXB] - Too much resolution?
by scott.stark@jboss.org
I seem to be seeing many more of these debug msgs currently running the metadata tests:
anonymous wrote :
| 18:07:14,709 DEBUG [JBossEntityResolver] Cannot resolve [publicID=http://www.jboss.com/xml/ns/javaee,systemID=null]
| 18:07:15,360 DEBUG [JBossEntityResolver] Cannot resolve [publicID=null,systemID=http://www.jboss.com/xml/ns/javaee]
| 18:07:15,360 DEBUG [JBossEntityResolver] Cannot resolve [publicID=http://www.jboss.com/xml/ns/javaee,systemID=null]
| 18:07:15,813 DEBUG [JBossEntityResolver] Cannot resolve [publicID=null,systemID=http://www.jboss.com/xml/ns/javaee]
| 18:07:15,814 DEBUG [JBossEntityResolver] Cannot resolve [publicID=http://www.jboss.com/xml/ns/javaee,systemID=null]
| 18:07:16,020 DEBUG [JBossEntityResolver] Cannot resolve [publicID=null,systemID=http://www.jboss.com/xml/ns/javaee]
| 18:07:16,020 DEBUG [JBossEntityResolver] Cannot resolve [publicID=http://www.jboss.com/xml/ns/javaee,systemID=null]
|
The majority seem to be coming from this code, triggered by elements like proxy-factory-config:
| if(resolver != null)
| {
| // this is wildcard handling
| String schemaLocation = attrs == null ? null : Util.getSchemaLocation(attrs, qName.getNamespaceURI());
| SchemaBinding schema = resolver.resolve(qName.getNamespaceURI(), null, schemaLocation);
| if(schema != null)
| {
| element = schema.getElement(qName);
| }
| }
|
Is there a way to improve this? Its really slowing down the tests.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095059#4095059
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095059
18 years, 6 months
[Design of Security on JBoss] - Customized LoginModule
by jdsignature
Login security data needed: username, password, client IP Adress
One custmized loginModule named XYZLoginModule has been created, here is what I am thinking:
1. collect the userid, password, and client ip address via new PassiveCallbackHandler(userid, password, clientIP) ; Then pass the callbackhandler to LoginContext via new LoginContext(config, passiveCallbackHandler).
2. per step 1, all the code will be handled in the application code, are there a way to have the JBOSS container handle this? can somebody point out a way on how to all of these, for instance, the sample login-config, jboss.xml, web.xml,
thanks in advance for any clue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094883#4094883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094883
18 years, 6 months
[Deployers on JBoss (Deployers/JBoss)] - Getting Error while executing servlet in Jboss server
by pkalpana2k
Hi,
I am using jboss-4.0.3 and I have an application that it works correctly.
However, after some days when I try to access my home page, this gets stucked.
And looking for a log I see the following error:
2007-10-12 12:31:14,500 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/xpro].[ActionMenuServlet]] Servlet.service() for servlet ActionMenuServlet threw exception
java.lang.NullPointerException
at apple.xprovision.ActionMenuServlet.doGet(ActionMenuServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:613)
Finally, when I start JBoss, everything seems fine. But, does anyone have any idea as to how to resolve this?. I tried searching about this problem but have not found anything.
Thanks in Advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094809#4094809
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094809
18 years, 6 months
[Design of JBossXB] - Re: @XmlElementWrapper/@XmlElements
by jason.greene@jboss.com
Ah Ok. For that We would need a spec (or proprietary) enhancment:
@XmlElementWrapper(eachElement=true)
You can do this with an adapter, but keep in mind this representation isn't a complete mapping to application.xml since you lose the alt-dd element.
|
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "application")
| public class Foo2 {
| @XmlElement(required = true)
| @XmlJavaTypeAdapter(Adapter.class)
| public List<Component> module;
|
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "")
| public static class Module {
| @XmlElements({
| @XmlElement(name="connector", type=Connector.class),
| @XmlElement(name="java", type=Java.class)
| })
| public Component component;
|
| @XmlElement(name="alt-dd")
| public String altDD;
| }
| public static interface Component
| {
| }
|
| public static class Connector implements Component
| {
| }
|
| public static class Java implements Component
| {
| }
|
| public static class Adapter extends XmlAdapter<Module, Component>
| {
|
| public Component unmarshal(Module module)
| {
| return module.component;
| }
|
| public Module marshal(Component component)
| {
| return null;
| }
| }
| }
|
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094764#4094764
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094764
18 years, 6 months