[JBoss Tools (users)] - Re: appearance of div based on attribute
by kukeltje
well... yes and no...
The container page needs to be valid xhtml (valid xml for that matter). If you put this div in it's own namespace, it still is. Compare it to having richfaces tags in an xhtml source page. Most editors do not know how to render all these namespaced tags anyway, so...
With jsf the components spit out xhtml, and this is done in Chiba with an xslt. I do not see the difference and it is an
Would have been nice to create an jsf component set that did this. I think it would have been faster I think, but not sure.
But now I re-read your post... It is indeed selection based on an attribute, but how could I in my xforms module override the processing of the generic div? That is a bigger problem I think (and I do not want that) Choosing a template based on an attribute is not that important. That can always be done in java anyway... so...
Another milestone reached just now.... I can make inputs read-only, hidden, invalid etc... based on attributes... look and feel done with css... this is way cool... Now I just should not forget refactoring things, since a lot can be put in a generic BaseXFormsTemplate.
So little code remains.. well little...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213201#4213201
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213201
17 years, 1 month
[JNDI/Naming/Network] - Re: Name not Bound
by bacooper81
By the way, here is the stack trace:
exception
|
| net.sourceforge.stripes.exception.StripesServletException: Exception encountered processing request.
| net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:189)
| net.sourceforge.stripes.controller.DispatcherServlet.doGet(DispatcherServlet.java:65)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:201)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| javax.naming.NameNotFoundException: shadows not bound
| org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| javax.naming.InitialContext.lookup(InitialContext.java:392)
| com.castofshadows.web.JndiInterceptor.intercept(JndiInterceptor.java:25)
| net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
| net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:111)
| net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
| net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
| net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:98)
| net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:206)
| net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:140)
| net.sourceforge.stripes.controller.DispatcherServlet.doGet(DispatcherServlet.java:65)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:201)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213188#4213188
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213188
17 years, 1 month
[JNDI/Naming/Network] - Name not Bound
by bacooper81
Hi all. I'm getting a "javax.naming.NameNotFoundException: shadows not bound" error when I hit my app in a web browser. Its deployed on JBoss. I have a shadows.ear, which contains Shadows.jar, and Shadows.war.
I read the following on jndi naming:
"When the EJBs are deployed in an .ear file, the default jndi binding will be prepended by the name of the .ear file. So if the ear file name is foo.ear the default jndi names would be foo/EJB-NAME/remote and foo/EJB-NAME/local."
According to that, my jndi name should be shadows/EJB-NAME/local. So why would shadows not be bound?
I would really appreciate any help with this, as its been driving me crazy for a long time now. Let me know if there's any more info I should provide that would be helpful.
Thanks
Brian
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213185#4213185
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213185
17 years, 1 month
[JBoss Portal] - WSRP: Questions about resources and file upload/download
by user123213154
Hi,
I have some questions about resources on wsrp producers.
My environment is:
Jboss portal 2.7.1 bundled with jboss AS 4.2.3 (Download)
JBossPortletBridge-1.0.0.B6 as JSF bridge on producer side.
Remote portlets will be integrated into JBoss portal consumer (same version).
1.) My test JSF page contains the following code:
<h:graphicImage url="/img/test.jpg" />
The resulting URL at the consumer (and the client browser) points back to the Producer host. My question is, if this is normal behaviour or if I could load resources via JBoss WSRP.
If it is not possible, what are your suggestions:
- using a WebServer for static content which has to be known to the producer and available to the client?
What about performance, if resources are transferred by SOAP?
2.) How can I realize a file upload/download with JBoss JSF and WSRP? Unfortunately, a first try with tomahawk did not work for file upload.
Is ist possible with JBoss out of the box or do I have to write additional helper stuff like streaming servlets etc.?
Please could you tell me your best practices for file upload and file download (two requirements).
Do you have any working examples with JSF and WSRP?
Thanks in advance!
Chris
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213182#4213182
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213182
17 years, 1 month
[JCA/JBoss] - Rar deployment inside ear fails with deployment exception
by ewinston
I have a project that uses an inbound resource connector and an message driven bean. I am trying to deploy these on jboss 4.2.3. The app has the following layout :
| app.ear
| lib/logic.jar
| ejb.jar
| ra.rar
|
The ra.rar just contains the ra.xml and the manifest Class-Path refers to lib/logic.jar. The ejb.jar also uses lib/logic.jar, and the definition of the MDB is within this jar. I sorted out the deployment issues around ordering, so I know the deployment order is not a problem.
When I try to deploy, I get the following message :
| 15:17:27,806 INFO [EJBContainer] STARTED EJB: com.my.mdb.WebAlertRAMDB ejbName: WebAlertRAMDB
| 15:17:27,841 WARN [ServiceController] Problem starting service jboss.j2ee:ear=ear.ear,jar=ejb.jar,name=WebAlertRAMDB,service=EJB3
| org.jboss.deployment.DeploymentException: MessagingType 'com.my.api.WebAlertProcessor' not found in resource deployment jboss.jca:service=RARDeployment,name='ear.ear#ra.rar'
| at org.jboss.resource.deployment.RARDeployment.createActivationSpec(RARDeployment.java:252)
| at org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:218)
| at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
|
Any clues as to what I am doing wrong? I tried putting the class it is looking for in the ra.rar but that didn't help. I also tried putting it in ejb.jar, again to no avail. And I have tried putting the logic.jar at the same level as the modules (ejb.jar and ra.rar).
The jboss-app.xml has a custom class loader and the module order value of strict. Aside from that it is empty.
Thanks,
Edward
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213181#4213181
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213181
17 years, 1 month
[Security & JAAS/JBoss] - Minimal JBoss config to use GSSAPI/Kerberos acceptSecContext
by chriscorbell
Hi,
I'm hoping for some pointers on getting GSSAPI/Kerberos auth working in my JBoss-hosted application.
My challenge is that I'm attempting a very streamlined use of GSSAPI/Kerberos which seems to not be covered by most of the JBoss examples and threads out there, so I don't have a working code sample to start from. The single goal is to have acceptSecContext() succeed in validating the bytes of a (Kerberos) GSSAPI context token that the server has received.
The GSSAPI token is sent (base-64-encoded) in the payload of a SOAP message from rich C++ clients running on Mac and Windows - I am not trying to use WS-Security, SOAP headers, HTTP headers, Browser-based authentication, no direct use JAAS Subjects and Principals, etc. The bulk of the documentation on JBoss and Kerberos (including Negotiate) tends to assume use of one or more layers or API's that don't apply here, so it's been tricky trying to tease out what configuration instructions might apply to basic GSSAPI functioning and what's actually supporting other server-side behaviors.
I've attempted to follow Sun's tutorial on using GSSAPI without JAAS, and modifying run.sh I've had a little success at least in verifying the standard system properties are set and getting to square 1 with a GSSManager instance.
FWIW, the system properties I'm defining in run.sh are java.security.krb5.realm, java.security.krb5.kdc, javax.security.auth.useSubjectCredsOnly, and java.security.auth.login.config (not sure if the last one really gets used, the environment seems to prefer the login module from login-config.xml)
I've also defined an "other" security context in login-config.xml for com.sun.security.auth.module.Krb5LoginModule, and enabled security debug logging. The settings here do get dumped in debugging when I try to use GSSManager and friends, but I'm getting this exception when I try to create a GSSCredential object for the service:
2009-02-25 13:12:54,198 ERROR [STDERR] Feb 25, 2009 1:12:54 PM com.sun.xml.ws.server.PeptTie setRuntimeException
| SEVERE: fault.InvalidCredentialsException: Exception from GSSAPI; nested exception is:
| GSSException: No valid credentials provided (Mechanism level: Attempt to obtain new ACCEPT credentials failed!)
| javax.xml.ws.soap.SOAPFaultException: fault.InvalidCredentialsException: Exception from GSSAPI; nested exception is:
| GSSException: No valid credentials provided (Mechanism level: Attempt to obtain new ACCEPT credentials failed!)
The line that's causing this is a simple:
GSSCredentials myCred = manager.createCredential(servicePrincipalName,
| GSSCredential.INDEFINITE_LIFETIME,
| KERBEROS_OID,
| GSSCredential.ACCEPT_ONLY);
Any suggestions? Are there any great tutorials or examples out there I've overlooked which show how to do this type of barebones GSSAPI/Kerberos configuration for a JBoss app?
TIA,
Chris
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213180#4213180
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213180
17 years, 1 month
Re: Cannot find method addChild with this signature
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=64374 Posted on behalf of a User
Ok, after much wrangling I finally narrowed this down to several jars (in my case, some gwt jars) in my webapp/WEB-INF/lib directory. By removing these jars I was able to get around the particular deployment exceptions. How I'm to get this functionality back in is another question . . . . .
Todd
In Response To:
I just downloaded JBoss-5.0.0.GA. (released a few days ago) .
I am trying to configure with a configuration that worked flawlessly in JBoss 4.21 using an expanded war file (directory) named laser.war.
The following error is generated:
23:17:19,758 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/lasser state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL vfsfile:/opt/jboss-5.0.0.GA/server/default/deploy/lasser.war/ deployment failed
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:373)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4150)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
... 55 more
Is there some sort of config file for Tomcat that I am missing?
Any suggestions?
Thx.
Mike
17 years, 1 month