[Installation, Configuration & DEPLOYMENT] - howto install and run jboss 4.2.2 GA on mac os x 10.5 leopar
by gilliganmw
hi
i am new in the macworld... i bought me a macbook
is there a chance to run jboss 4.2.2.GA on mac os x 10.5?
please do you know a link to a howto or maybe you can write a short instruction here?
what i tried so far is... i downloaded the zip, extracted it, made a new server configuration in eclipse. but when i try to start it, i get the following error
run.bat: unused non-option argument: -
| run.bat: unused non-option argument: type
| run.bat: unused non-option argument: your
| run.bat: unused non-option argument: own
| run.bat: unused non-option argument: here
| 00:18:01,940 INFO [Server] Starting JBoss (MX MicroKernel)...
| 00:18:01,941 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
| 00:18:01,949 INFO [Server] Home Dir: /Applications/jboss-4.2.2.GA
| 00:18:01,949 INFO [Server] Home URL: file:/Applications/jboss-4.2.2.GA/
| 00:18:01,950 INFO [Server] Patch URL: null
| 00:18:01,950 INFO [Server] Server Name: default,all,minimal,other
| 00:18:01,950 INFO [Server] Server Home Dir: /Applications/jboss-4.2.2.GA/server/default,all,minimal,other
| 00:18:01,950 INFO [Server] Server Home URL: file:/Applications/jboss-4.2.2.GA/server/default,all,minimal,other/
| 00:18:01,950 INFO [Server] Server Log Dir: /Applications/jboss-4.2.2.GA/server/default,all,minimal,other/log
| 00:18:01,951 INFO [Server] Server Temp Dir: /Applications/jboss-4.2.2.GA/server/default,all,minimal,other/tmp
| 00:18:01,951 INFO [Server] Root Deployment Filename: jboss-service.xml
| 00:18:02,923 INFO [ServerInfo] Java version: 1.5.0_13,Apple Inc.
| 00:18:02,923 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_13-119,Apple Inc.
| 00:18:02,923 INFO [ServerInfo] OS-System: Mac OS X 10.5.1,i386
| 00:18:03,426 INFO [Server] Core system initialized
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: url file:/Applications/jboss-4.2.2.GA/server/default,all,minimal,other/conf/jboss-service.xml could not be opened, does it exist?
| at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:781)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:613)
| 00:18:03,441 INFO [Server] Runtime shutdown hook called, forceHalt: true
| 00:18:03,441 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
| 00:18:03,448 INFO [Server] Shutdown complete
| Shutdown complete
| Halting VM
|
please can you post me how install and run jboss on mac os x 10.5
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118097#4118097
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118097
18 years, 3 months
[JBoss Seam] - HTTPS Scheme in pages.xml without httpsport or default port
by nkhilnani
Hi,
I have been using https with Seam for a while not and in our environment we have http and https setup at the load balancer level.
An hrrp request comes to the load balancer. The load balancer internally forwards requests to tomcats that only have http setup. We do this to avoid setting up https and related certificates for every tomcat in our pools. Each tomcat in the pool is setup on a different port only accessible internally.
After looking at the Seam documentation and org.jboss.seam.navigation.pages file. It seems that if a page view-id is marked with scheme=https, the framework appends port info. If no httpsport is defined, it retrieves the server instance port and appends that.(see code at end of this post)
In our case, this could would return internal tomcat port, not the externally accessible port (no port or port 80). this will cause a redirect to the incorrect port. eg.
external url: http://mysite.com and https://mysite.com
two tomcats in pool at http://tomcats.com:123 and http://tomcats.com:124
in pages.xml or somewhere else, would it be possible to indicate scheme https for view-ids but not append ":PORT"?
eg redirection http://mysite.com to https:://mysite.com with no appended port info.
The code i looked at is below.
Thanks in advance
Nik Khilnani
| public String encodeScheme(String viewId, FacesContext context, String url)
| {
| String scheme = getScheme(viewId);
| if (scheme != null)
| {
| String requestUrl = getRequestUrl(context);
| if (requestUrl!=null)
| {
| try
| {
| URL serverUrl = new URL(requestUrl);
|
| StringBuilder sb = new StringBuilder();
| sb.append(scheme);
| sb.append("://");
| sb.append(serverUrl.getHost());
|
| if ("http".equals(scheme) && httpPort != null)
| {
| sb.append(":");
| sb.append(httpPort);
| }
| else if ("https".equals(scheme) && httpsPort != null)
| {
| sb.append(":");
| sb.append(httpsPort);
| }
| else if (serverUrl.getPort() != -1)
| {
| sb.append(":");
| sb.append(serverUrl.getPort());
| }
|
| if (!url.startsWith("/")) sb.append("/");
|
| sb.append(url);
|
| url = sb.toString();
| }
| catch (MalformedURLException ex)
| {
| throw new RuntimeException(ex);
| }
| }
| }
| return url;
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118081#4118081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118081
18 years, 3 months
[Security & JAAS/JBoss] - Re: Basic auth apache fronting JBoss!
by java123
After doing some extra digging this is what I found out.
JBossSecurityMgrRealm created a roleMap keyed by principal(SimplePrincipal) . When user only get authenticated bu JBoss, request does not contain principle therefore authenticate method is called in JBossSecurityMgrRealm. Here SimplePrincipal object is created by the passed in user name and then roles lookup by this key.
BUT!!! If user get initially authenticated by the web server(apache) then CayoteInvoker that handles request for tomcat sees that user exist in request then creates a CayotePrincipal with in a request. Now the authenticate of JBossSecurityMgrRealm is NOT called. Role look up fails because roles are keyed by SimplePrincipal and look up is done with CayotePrincipal object.
I hope what I said makes sense to everyone. But this is causing a problem for us. I am sure someone else ran into this before. How do we get around it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118075#4118075
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118075
18 years, 3 months