Re: [JBoss-user] jBoss + Catalina + SSL

2002-06-28 Thread Bruno Lowagie

Bruno Lowagie wrote:

> I debugged a little further and I saw the socketFactory never gets 
> instantiated
> because in method public void setSecurityDomainName(String jndiName)
> the iniCtx.lookup(jndiName) with jndiName = java:/jaas/RMI+SSL fails. 

Now I found out that the reason why it fails is this:
iniCtx.lookup("java:/jaas/RMI+SSL") returns an object if class
org.jboss.security.plugins.JaasSecurityManager
This is casted to a SecurityDomain object and throws
a ClassCastException.

Did I make an error in the configuration or is this a jBoss bug?

Bruno




---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jBoss + Catalina + SSL

2002-06-28 Thread Bruno Lowagie

Bruno Lowagie wrote;

> So I was able to pinpoint the error: for some reason the socketFactory 
> in class
> SSLServerSocketFactory is null. Can any of you help me any furher? 

I debugged a little further and I saw the socketFactory never gets 
instantiated
because in method public void setSecurityDomainName(String jndiName)
the iniCtx.lookup(jndiName) with jndiName = java:/jaas/RMI+SSL fails.

I am still very much a newbie. Can somebody tell me what's happening here?
Did I forget something somewhere?

Bruno




---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jBoss + Catalina + SSL

2002-06-28 Thread Bruno Lowagie

Hello,

I tried to combine jBoss with Catalina over SSL.
I followed every step in the FAQ and Forum I could find,
but I stranded here:
http://www.jboss.org/forums/thread.jsp?forum=61&thread=12152&message=3724076#3724076 

http://www.jboss.org/forums/thread.jsp?forum=49&thread=16537&message=3724084&q=SSL+Catalina+NullpointerException#3724084
 


I get the same error as described in the Forum, so I changed class
org.jboss.web.catalina.security.SSLServerSocketFactory:

 public ServerSocket createSocket(int port, int backlog, InetAddress 
ifAddress)
throws IOException
 {
 if (socketFactory == null) throw new IOException("the 
socketFactory is null!");
return socketFactory.createServerSocket(port, backlog, ifAddress);
 }

Now I get:
11:11:37,458 INFO  [STDOUT] Apache Tomcat/4.0.3
11:11:37,520 INFO  [Engine] HttpConnector Opening server socket on all 
host IP addresses
11:11:37,534 ERROR [EmbeddedCatalinaServiceSX] Starting failed
LifecycleException:  null.open:  java.io.IOException: the socketFactory 
is null!

So I was able to pinpoint the error: for some reason the socketFactory 
in class
SSLServerSocketFactory is null. Can any of you help me any furher?

Bruno



---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBOSS startup failure

2002-06-28 Thread Gunther Van Roey

I had the same error when there were some JARs in my jdk/jre/lib/ext folder.
Once a class is classloaded from this extension folder, all referenced
classes must be classloaded
from the same place ...

Since the extension folder has a higher classloading priority than the JBoss
jars, these are the first
match for the classloader!

If this is your problem, simply remove the JARs form the jre/lib/ext folder
so the ones
in the JBoss distribution will be used

Hope this helps.

Regards,

Gunther.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Denis Markov
Sent: vrijdag, juni 28, 2002 09:33
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS startup failure


Hello All!

Can anyone help me please.
I cannot start JBoss 3.0 on my box.
Having next output:

  JBoss Bootstrap Environment
.
  JBOSS_HOME: C:\jboss-3.0.0\bin\\..
.
  JAVA: c:\jdk\bin\java
.
  JAVA_OPTS:  -Dprogram.name=run.bat
.
  CLASSPATH: ;c:\jdk\lib\tools.jar;C:\jboss-3.0.0\bin\\run.jar
.

===
.
18:23:50,814 INFO  [Server] JBoss Release: JBoss-3.0.0
CVSTag=JBoss_3_0_0 18:23:50,864 INFO  [Server] Home Dir: C:\jboss-3.0.0
18:23:50,864 INFO  [Server] Home URL: file:/C:/jboss-3.0.0/ 18:23:50,874
INFO  [Server] Library URL: file:/C:/jboss-3.0.0/lib/ 18:23:50,884 INFO
[Server] Patch URL: null 18:23:50,914 INFO  [Server] Server Name:
default 18:23:50,914 INFO  [Server] Server Home Dir:
C:\jboss-3.0.0\server\default 18:23:50,924 INFO  [Server] Server Home
URL: file:/C:/jboss-3.0.0/server/default/
18:23:50,934 INFO  [Server] Server Data Dir:
C:\jboss-3.0.0\server\default\db 18:23:50,944 INFO  [Server] Server Temp
Dir: C:\jboss-3.0.0\server\default\tmp 18:23:50,954 INFO  [Server]
Server Config URL: file:/C:/jboss-3.0.0/server/default/conf/
18:23:50,964 INFO  [Server] Server Library URL:
file:/C:/jboss-3.0.0/server/default/lib/
18:23:50,974 INFO  [Server] Root Deployemnt Filename: jboss-service.xml
18:23:51,014 INFO  [Server] Starting General Purpose Architecture
(GPA)... 18:23:51,705 ERROR [Server] start failed
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
8)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
62)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
45)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:536)
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
8)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
62)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
45)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:536)
I found that it crashes on
 public UnifiedClassLoader(final URL url, final URL origURL,
  final MBeanServer server, final ObjectName repositoryName) throws
Exception
   {
..
  this.repository =
(UnifiedLoaderRepository)server.invoke(repositoryName,
"registerClassLoader",
new Object[] {this},
new String[] {getClass().getName()});
.
   }
What can I do to make it start?
I run on jdk 1.4, XP

Also, please help me to start JBOSS in debug mode - I do following:

C:\jboss-3.0.0\bin>run.bat -Dlog4j.configuration=log4j-debug.properties

===
.
  JBoss Bootstrap Environment
.
  JBOSS_HOME: C:\jboss-3.0.0\bin\\..
.
  JAVA: c:\jdk\bin\java
.
  JAVA_OPTS:  -Dprogram.name=run.bat
.
  CLASSPATH: ;c:\jdk\lib\tools.jar;C:\jboss-3.0.0\bin\\run.jar
.

===
.
run.bat: unused non-option argument: log4j-debug.properties
log4j:WARN No appenders could be found for logger
(org.jboss.system.server.Server).
log4j:WARN Please initialize the log4j system properly.
javax.management.InstanceNotFoundException:
JMImplementation:service=Load

Re: [JBoss-user] JBOSS startup failure

2002-06-28 Thread Bruce Scharlau

Denis,

I couldn't work out which jar would appear to be missing, but that's the 
obvious place to start looking.
The place to find more details (maybe) for errors is also in the log file 
under server/default/log. I've generally found it very helpful.

Bruce

At 10:33 AM 6/28/2002 +0300, you wrote:
>Hello All!
>
>Can anyone help me please.
>I cannot start JBoss 3.0 on my box.
>Having next output:
>
>   JBoss Bootstrap Environment
>.
>   JBOSS_HOME: C:\jboss-3.0.0\bin\\..
>.
>   JAVA: c:\jdk\bin\java
>.
>   JAVA_OPTS:  -Dprogram.name=run.bat
>.
>   CLASSPATH: ;c:\jdk\lib\tools.jar;C:\jboss-3.0.0\bin\\run.jar
>.
>
>===
>.
>18:23:50,814 INFO  [Server] JBoss Release: JBoss-3.0.0
>CVSTag=JBoss_3_0_0 18:23:50,864 INFO  [Server] Home Dir: C:\jboss-3.0.0
>18:23:50,864 INFO  [Server] Home URL: file:/C:/jboss-3.0.0/ 18:23:50,874
>INFO  [Server] Library URL: file:/C:/jboss-3.0.0/lib/ 18:23:50,884 INFO
>[Server] Patch URL: null 18:23:50,914 INFO  [Server] Server Name:
>default 18:23:50,914 INFO  [Server] Server Home Dir:
>C:\jboss-3.0.0\server\default 18:23:50,924 INFO  [Server] Server Home
>URL: file:/C:/jboss-3.0.0/server/default/
>18:23:50,934 INFO  [Server] Server Data Dir:
>C:\jboss-3.0.0\server\default\db 18:23:50,944 INFO  [Server] Server Temp
>Dir: C:\jboss-3.0.0\server\default\tmp 18:23:50,954 INFO  [Server]
>Server Config URL: file:/C:/jboss-3.0.0/server/default/conf/
>18:23:50,964 INFO  [Server] Server Library URL:
>file:/C:/jboss-3.0.0/server/default/lib/
>18:23:50,974 INFO  [Server] Root Deployemnt Filename: jboss-service.xml
>18:23:51,014 INFO  [Server] Starting General Purpose Architecture
>(GPA)... 18:23:51,705 ERROR [Server] start failed
>javax.management.InstanceNotFoundException:
>JMImplementation:service=LoaderRepository,name=Default
> at
>com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
>8)
> at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
> at
>org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
>62)
> at
>org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
>45)
> at
>org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
>)
> at
>org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
> at org.jboss.Main.boot(Main.java:142)
> at org.jboss.Main$1.run(Main.java:375)
> at java.lang.Thread.run(Thread.java:536)
>javax.management.InstanceNotFoundException:
>JMImplementation:service=LoaderRepository,name=Default
> at
>com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
>8)
> at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
> at
>org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
>62)
> at
>org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
>45)
> at
>org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
>)
> at
>org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
> at org.jboss.Main.boot(Main.java:142)
> at org.jboss.Main$1.run(Main.java:375)
> at java.lang.Thread.run(Thread.java:536)
>I found that it crashes on
>  public UnifiedClassLoader(final URL url, final URL origURL,
>   final MBeanServer server, final ObjectName repositoryName) throws
>Exception
>{
>..
>   this.repository =
>(UnifiedLoaderRepository)server.invoke(repositoryName,
> "registerClassLoader",
> new Object[] {this},
> new String[] {getClass().getName()});
>.
>}
>What can I do to make it start?
>I run on jdk 1.4, XP
>
>Also, please help me to start JBOSS in debug mode - I do following:
>
>C:\jboss-3.0.0\bin>run.bat -Dlog4j.configuration=log4j-debug.properties
>
>===
>.
>   JBoss Bootstrap Environment
>.
>   JBOSS_HOME: C:\jboss-3.0.0\bin\\..
>.
>   JAVA: c:\jdk\bin\java
>.
>   JAVA_OPTS:  -Dprogram.name=run.bat
>.
>   CLASSPATH: ;c:\jdk\lib\tools.jar;C:\jboss-3.0.0\bin\\run.jar
>.
>
>===
>.
>run.bat: unused non-option argument: log4j-debug.properties
>log4j:WARN No appenders could be found for logger
>(org.jboss.system.server.Server).
>log4j:WARN Please initialize the log4j system properly.
>javax.management.InstanceNotFoundException:
>JMImplementation:service=LoaderRepository,name=Default
> at
>com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
>8)
> at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
> at
>org.jboss.mx.loading.UnifiedClassLoader.(Unif

[SOLVED] Re: [JBoss-user] retrieving role via DatabaseLoginModule

2002-06-28 Thread Ionel Gardais

Hi,

the solution was to drop the primary key specified in the Roles table.

Today's gonna be a beautiful day,
Smile, it's Friday

ionel



---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[SOLVED] Re: [JBoss-user] specifiing the datasource jndi name for the DatabaseServerLoginModule

2002-06-28 Thread Ionel Gardais

Hi all,

First thanks for your precious help.

The two main problems was :
- a badly closed xml tag
- a not-needed Primary key in the Roles table


Hope this can help other in finding the light.


Once again, thanks a lot,
ionel



---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Caching EJB Bean references in Client side

2002-06-28 Thread Gunaseelan Nagarajan

hi everybody,

I did some profiling on my application that uses servlets and ejb through 
jboss. I found that the proxy$1, proxy$2 classes and their variables are not 
garbage collected and also it takes some time to get the home reference etc. 
It seems that even after the reference is set to null there are still some 
hanging strings that contain values like method names, parameter names, types 
etc. 

 One solution would be to have a reference pool like database connection 
pooling. Before i write my own caching implementation, i would like to know 
if someone has already done this before or some tips on how to make sure that 
all the temporary objects are cleany garbage collected.

Regards,
Nagarajan.


---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] specifiing the datasource jndi name for the DatabaseServerLoginModule

2002-06-28 Thread Ionel Gardais

Hi Scott,

You were right.
I deleted the last '/' in the opening login-module tag and added a closing
 tag after the module-option tags.
I'm really sorry to have missed this and take your time.


As I told in another post (Subject: [JBoss-user] retrieving role via
DatabaseLoginModule / Date: Thu, 27 Jun 2002 16:59:10 +0200), the roles are
not retrieved well.

This points me the following query : what is the database overlay ?

The Principals table is a two text fields table with the primary key sets to
the PrincipalID field.
But I'm wondering about the Roles tables.

In your example "Custom security using the JBossSX Framework", the PrincipalID
field is filled two times with the username "scott" and three times with
"stark".
According to this, the Primary key cannot be the PrincipalID field, can it ?


Thanks,
ionel

Scott M Stark wrote:

> On closer inspection this is because your definition is invalid. The
> module-option tags are child elements of the login-module element.
> You have an empty .
>
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 



---
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBOSS startup failure

2002-06-28 Thread Denis Markov

Hello All!

Can anyone help me please.
I cannot start JBoss 3.0 on my box.
Having next output:

  JBoss Bootstrap Environment
.
  JBOSS_HOME: C:\jboss-3.0.0\bin\\..
.
  JAVA: c:\jdk\bin\java
.
  JAVA_OPTS:  -Dprogram.name=run.bat
.
  CLASSPATH: ;c:\jdk\lib\tools.jar;C:\jboss-3.0.0\bin\\run.jar
.

===
.
18:23:50,814 INFO  [Server] JBoss Release: JBoss-3.0.0
CVSTag=JBoss_3_0_0 18:23:50,864 INFO  [Server] Home Dir: C:\jboss-3.0.0
18:23:50,864 INFO  [Server] Home URL: file:/C:/jboss-3.0.0/ 18:23:50,874
INFO  [Server] Library URL: file:/C:/jboss-3.0.0/lib/ 18:23:50,884 INFO
[Server] Patch URL: null 18:23:50,914 INFO  [Server] Server Name:
default 18:23:50,914 INFO  [Server] Server Home Dir:
C:\jboss-3.0.0\server\default 18:23:50,924 INFO  [Server] Server Home
URL: file:/C:/jboss-3.0.0/server/default/
18:23:50,934 INFO  [Server] Server Data Dir:
C:\jboss-3.0.0\server\default\db 18:23:50,944 INFO  [Server] Server Temp
Dir: C:\jboss-3.0.0\server\default\tmp 18:23:50,954 INFO  [Server]
Server Config URL: file:/C:/jboss-3.0.0/server/default/conf/
18:23:50,964 INFO  [Server] Server Library URL:
file:/C:/jboss-3.0.0/server/default/lib/
18:23:50,974 INFO  [Server] Root Deployemnt Filename: jboss-service.xml
18:23:51,014 INFO  [Server] Starting General Purpose Architecture
(GPA)... 18:23:51,705 ERROR [Server] start failed
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
8)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
62)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
45)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:536)
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
8)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
62)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
45)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:536)
I found that it crashes on 
 public UnifiedClassLoader(final URL url, final URL origURL,
  final MBeanServer server, final ObjectName repositoryName) throws
Exception
   {
..
  this.repository =
(UnifiedLoaderRepository)server.invoke(repositoryName,
"registerClassLoader",
new Object[] {this},
new String[] {getClass().getName()});
.
   } 
What can I do to make it start?
I run on jdk 1.4, XP

Also, please help me to start JBOSS in debug mode - I do following:

C:\jboss-3.0.0\bin>run.bat -Dlog4j.configuration=log4j-debug.properties

===
.
  JBoss Bootstrap Environment
.
  JBOSS_HOME: C:\jboss-3.0.0\bin\\..
.
  JAVA: c:\jdk\bin\java
.
  JAVA_OPTS:  -Dprogram.name=run.bat
.
  CLASSPATH: ;c:\jdk\lib\tools.jar;C:\jboss-3.0.0\bin\\run.jar
.

===
.
run.bat: unused non-option argument: log4j-debug.properties
log4j:WARN No appenders could be found for logger
(org.jboss.system.server.Server).
log4j:WARN Please initialize the log4j system properly.
javax.management.InstanceNotFoundException:
JMImplementation:service=LoaderRepository,name=Default
at
com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:167
8)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
62)
at
org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:1
45)
at
org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:408
)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:256)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.r