[Security & JAAS/JBoss] - Mixing Axis (BASIC) and web browser (form-based) authenticat
by mjhammel
I'm pretty new to Java/JBOSS (I'm a C developer by trade), so forgive me if some of what I say seems nonsensical.
Background:
I've got an application running under JBOSS 4.0 that requires both browser based and remote Java client based logins. I've got the browser based interfaced working using forms-based authentication. When I log out, the logout is complete and any attempts to access another page takes me back to the login page. That's exactly what I want. If I switch this to BASIC authentication then the browser can cache the session info and get back in after the logout invalidates it without forcing the user to login again. That's not acceptable, so the form-based authentication appears to be what I want for the browser based interface into the application.
I also have a standalone client built using Axis that needs to log into the same server. It originally was written to work with BASIC authentication. Switching to form-based authentication broke it. I've read what feels like a bazillion web pages (including the security FAQ here and the JBOSS 4.0 manual) and it appears AXIS only supports BASIC authentication and one other certificate-based type that (according to the JBOSS manual) nobody really uses. So if I want to build a standalong application using an RPC-over-SOAP interface I'll need to use BASIC authentication.
Questions:
As far I can tell I can't mix the two types of authentication for a single JBOSS application, can I? If I put two login-config sections in the web.xml then the JBOSS server prints error messages that I can't yet decipher.
I inherited the project and the use of Axis (or at least some kind of RPC mechanism) is desirable by the project team. Is there some other way to do RPC from the standalone Java client to the application running in JBOSS?
I considered dropping the RPC requirement and integrating our client with JDIC in order to do desktop related things and still access the server via a browser interface. How feasible does this sound? I need the client to be able to pass files back and forth to the JBOSS application, potentially very large files. Of course, I wasn't able to build JDIC on FC5, but that's a problem I can eventually resolve, if it's worth my time investigating further.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970793#3970793
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970793
19 years, 7 months
[JBoss Seam] - Re: MyFaces Tomahawk schedule component does not work.
by gus888
You need to add something according to following codes, or refer to http://www.nabble.com/Schedule-component%2C-mouseListener-is-not-triggere...
public class ScheduleComponentHandler extends HtmlComponentHandler {
| // private static final Log logger = LogFactory.getLog(ScheduleComponentHandler.class);
|
| private static final String RENDER_ZERO_LENGTH_ENTRIES_ATTRIBUTE_NAME = "renderZeroLengthEntries";
| private static final String MOUSE_LISTENER_METHOD_ATTRIBUTE_NAME = "mouseListener";
| private static final String EXPAND_TO_FIT_ENTRIES_ATTRIBUTE_NAME = "expandToFitEntries";
|
| public ScheduleComponentHandler(ComponentConfig tagConfig) {
| super(tagConfig);
| }
|
| protected MetaRuleset createMetaRuleset(Class type){
| MetaRuleset m = super.createMetaRuleset(type);
| m.addRule(new MethodRule(MOUSE_LISTENER_METHOD_ATTRIBUTE_NAME, null, new Class[] {ScheduleMouseEvent.class }));
| return m;
| }
|
| @Override
| protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) {
| if (getAttribute(RENDER_ZERO_LENGTH_ENTRIES_ATTRIBUTE_NAME) != null) {
| component.getAttributes().put(RENDER_ZERO_LENGTH_ENTRIES_ATTRIBUTE_NAME, getAttribute(RENDER_ZERO_LENGTH_ENTRIES_ATTRIBUTE_NAME).getObject(context));
| }
|
| if (getAttribute(EXPAND_TO_FIT_ENTRIES_ATTRIBUTE_NAME) != null) {
| component.getAttributes().put(EXPAND_TO_FIT_ENTRIES_ATTRIBUTE_NAME, getAttribute(EXPAND_TO_FIT_ENTRIES_ATTRIBUTE_NAME).getObject(context));
| }
| }
| }--tomahawk.taglib.xml
| ...
| <tag>
| <tag-name>schedule</tag-name>
| <component>
| <component-type>org.apache.myfaces.Schedule</component-type>
| <renderer-type> org.apache.myfaces.Schedule</renderer-type>
| <handler-class>com.genchik.componenthandlers.ScheduleComponentHandler</handler-class>
| </component>
| </tag>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970791#3970791
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970791
19 years, 7 months
[Installation, Configuration & Deployment] - freebsd 6.1+ jboss 4.0.3SP1
by Tadas
Hello,
I am trying to run jboss on freebsd. Installation was successfull but then i try to run i get an exception:
17:43:13,016 INFO [Server] Starting JBoss (MX MicroKernel)...
17:43:13,017 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200609111656)
17:43:13,019 INFO [Server] Home Dir: /usr/local/jboss4
17:43:13,019 INFO [Server] Home URL: file:/usr/local/jboss4/
17:43:13,019 INFO [Server] Patch URL: null
17:43:13,019 INFO [Server] Server Name: default
17:43:13,020 INFO [Server] Server Home Dir: /usr/local/jboss4/server/default
17:43:13,020 INFO [Server] Server Home URL: file:/usr/local/jboss4/server/default/
17:43:13,020 INFO [Server] Server Temp Dir: /usr/local/jboss4/server/default/tmp
17:43:13,020 INFO [Server] Root Deployment Filename: jboss-service.xml
17:43:13,424 INFO [ServerInfo] Java version: 1.5.0-p2,Sun Microsystems Inc.
17:43:13,424 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0-p2-root_11_sep_2006_13_01,Sun Microsystems Inc.
17:43:13,444 INFO [ServerInfo] OS-System: FreeBSD 6.1-RELEASE,i386
17:43:14,138 INFO [Server] Core system initialized
17:43:17,385 INFO [WebService] Using RMI server codebase: http://wf.networksolutions.com:8083/
17:43:17,495 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
17:43:18,005 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
17:43:21,369 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.hbm2ddl.auto=create-drop, hibernate.connection.datasource=java:/DefaultDS, hibernate.connection.release_mode=after_statement}
17:43:21,380 ERROR [SocketServerInvoker] Error starting ServerSocket. Bind port: 3873, bind address: /205.178.189.131
17:43:21,380 ERROR [Connector] Error starting connector.
java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
......... skipped.....
and where this ip address cames from 205.178.189.131 :-/?
Any ideas?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970788#3970788
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970788
19 years, 7 months