[JBoss-user] [Installation, Configuration & Deployment] - Re: Deployment isolation and loader repositories have no eff

2006-02-20 Thread randahl
PROBLEM SOLVED

Auchhh that was a tough one, but I finally solved it thanks to Adrian Block's 
comments at

http://jira.jboss.com/jira/browse/JBAS-947

When deploying ApplicationA and ApplicationB I thought I had pointed JBoss to 
the ApplicationA.ear and ApplicationB.ear but that was not so. In my 
jboss-service.xml file which lists the deployed applications I had

 
 deploy/,
 file:/server/solution/ApplicationA/deploy,
 file:/server/solution/ApplicationB/deploy,
  

Which is in fact wrong. I was trying to make jboss deploy all ears of the 
deploy folders but notice that the end of the folder names are missing their 
final slashes. What I should have written was

 
 deploy/,
 file:/server/solution/ApplicationA/deploy/,
 file:/server/solution/ApplicationB/deploy/,
  

Consequently I actually made jboss deploy an application called "deploy" which 
contained my my ear, and the loader-repository configuration was rightly 
ignored. After inserting the final slashes after "deploy" I am now telling 
jboss to deploy all ears in the deploy FOLDER.

That was one hard to find needle in a hay stack.

Gotcha ;-)
Randahl


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925068#3925068

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925068


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Deployment isolation and loader repositories have no eff

2006-02-20 Thread randahl
Thank you for your response.

I looked into it, and it turns out that I actually only have a single ejb 
module element - sorry my description was a bit wrong there.

That aside I turned to your suggestion about changing the loader-repository 
config to not include the java2ParentDelegation setting. Removing it had no 
effect, but I now have two interesting findings:


Possible problem 1
--
When ApplicationA and ApplicationB are deployed jboss states that their 
loader-configuration settings are ignored:

2006-02-20 15:02:36,156 WARN  [org.jboss.deployment.DeploymentInfo] Only the 
root deployment can set the loader repository, ignoring 
config=LoaderRepositoryConfig(repositoryName: 
ApplicationA:loader=ApplicationA.ear, repositoryClassName: 
org.jboss.mx.loading.HeirarchicalLoaderRepository3, configParserClassName: 
null, repositoryConfig: null)
  | 

(the same is logged for ApplicationB)

This surprises me since the loader repository configuration is located in 

ApplicationA.ear/META-INF/jboss-app.xml

I believe the ApplicationA.ear is what jboss calls a root deployment since it 
is not nested inside another archive. So why is it ignored?


Possible Problem  2
--
Once I have configured a Hibernate session factory I store this session factory 
in a static singleton class which I have called SessionManager.
The problem is that  when staring ApplicationA I get the hibernate.cfg.xml file 
from ApplicationA and then store its corresponding hibernate session factory it 
in my SessionManager. Then when starting ApplicationB the session manager 
checks to see if it has been configured and (surprise!) it has indeed already 
been configured, so it wrongly uses the session factory from ApplicationA.

My session manager looks like this:
public class SessionManager {
  | ...
  | private static SessionFactory sessionFactory;
  | public static Session openSession(Object opener) {
  | try {
  | if(sessionFactory == null)
  | initialize(opener);
  | ...
  | }

I believe this would work like it should had it not been for my class loader 
problems. What I am trying to achieve is to make ApplicationA and ApplicationB 
have each their own SessionManager, which they also would have if the 
SessionManager class inside ApplicationA was considered to be another class 
than the SessionManager class inside ApplicationB.

But what happens is in fact that the SessionManager class is actually shared 
between the two applications and thus both applications get access to the same 
database.


QUESTIONS
--

I am a bit puzzled. If the logging shown under "Problem 1" is indeed correct, 
and my class loader configuration is in fact ignored, then "Problem 2" is just 
a direct consequence of "Problem 1". So my questions are

1. Is it indeed possible that my loader-repository configuration is ignored in 
spite of the fact that it is placed in the META-INF folder of an ear?

2. Am I correct in my asumption that if the loader-repository configuration was 
correct, then ApplicationA and ApplicationB would have completely different 
sets of classes, meaning they would get their own SessionManager class (and 
consequently their own static sessionFactory variable giving them access to 
their own database)?


All thoughts and hints will be highly appreciated - if you have a setup where 
you are able to make two different applications have their own separate set of 
classes, I would very much like to hear from your. Thank you.

Yours
Randahl



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925045#3925045

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925045


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Deployment isolation and loader repositories have no eff

2006-02-19 Thread randahl
Can anyone please confirm that they have succesfully run a setup where two 
different instances of the same application are able to get their own 
hibernate.cfg.xml file from their own jar on jboss?

Could you please give me some hints about what you did to get around the 
problem I have described above.

Thanks


Randahl

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924927#3924927

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924927


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Deployment isolation and loader repositories have no effect

2006-02-18 Thread randahl
INTRODUCTION
--

On a JBoss 4.0.3sp1 I am deplying two instances of the same application as two 
ear files 

ApplicationA.ear
ApplicationB.ear

Inside each ear I have a jar containing some EJBs, and this jar actually 
contains several other jars containing the EJB classes. Like this for 
ApplicationA:

ApplicationA.ear/my-ejbs.jar/module1.jar
ApplicationA.ear/my-ejbs.jar/module2.jar

and similarly for ApplicationB:

ApplicationB.ear/my-ejbs.jar/module1.jar
ApplicatoinB.ear/my-ejbs.jar/module2.jar

The reason why I have module1 and module2 in both applications is that each 
application may be using different versions of the modules.


THE PROBLEM

The module1.jar contains both some classes and some configuration xml files. I 
use Hibernate, so for instance the module1.jar contains a hibernate.cfg.xml 
configuration file. This means that on my class path I have the following:

ApplicationA.ear/my-ejbs.jar/module1.jar/hibernate.cfg.xml
ApplicationB.ear/my-ejbs.jar/module1.jar/hibernate.cfg.xml

Now since ApplicationA and ApplicationB are different applications their 
hibernate.cfg.xml files are different. The hibernate.cfg.xml file nested inside 
ApplicationA.ear tells ApplicationA to use DatabaseA, and the file nested 
inside ApplicationB.ear tells ApplicationB to use DatabaseB. 

However, my tests have shown that the way I have configured JBoss does not 
allow this to work. When I restart JBoss and start interacting with 
ApplicationA the code inside it requests the hibernate.cfg.xml file like this

getClass().getResource("/hibernate.cfg.xml");

This makes JBoss load the hibernate.cfg.xml file nested inside the 
ApplicationA.ear which says ApplicationA should use DatabaseA. 

Then when I start interacting with ApplicationB and its code also makes a 
getResource(...) call that application is served the wrong hibernate.cfg.xml 
file from ApplicationA - the one that has already been loaded.

Informally speaking it looks as if JBoss thinks that because both 
hibernate.cfg.xml files share the same name and reside the same place on the 
classpath, they must be similar, and thus JBoss asumes it is safe to use the 
hibernate.cfg.xml file already loaded (which is wrong, of course).


MY CONFIGURATION

Yes, I have already enabled application isolation like this (from 
ear-deployer.xml):
  true
  |   true

Yes, I have already assigned a unique class loader repository for each ear file 
like this for ApplicationA (from jboss-app.xml):

 
  | ApplicationA:loader=ApplicationA.ear
  |  
  | java2ParentDelegation=false 
  |  
  | 

This information is stored int the jboss-app.xml file inside the META-INF 
folder of each ear file and the folder also contains an application.xml file 
which says that the ear contains module1 and module2. Like this:


  | 
  | module1.jar
  | module2.jar
  | 
  | 

So what I am trying to tell JBoss here is that each application ear contains 
its own module1.jar which should be loaded using a class loader which is unique 
for the ear.


ROUND UP

Throughout the last weeks I have tried a huge number of possible configuration 
options but for unknown reasons I simply cannot make JBoss separate the 
application's resources from each other. I thought about simply renaming my 
hibernate.cfg.xml files so that the class path would look like

ApplicationA.ear/my-ejbs.jar/module1.jar/ApplicationA-hibernate.cfg.xml
ApplicationB.ear/my-ejbs.jar/module1.jar/ApplicationB-hibernate.cfg.xml

but I feel this is an impossible solution because I have lots of other xml 
files in each module and managing unique names for each and every xml file 
simply is not practical.

I think there must be a silver bullet configuration option that I have simply 
overlooked. If anyone have any suggestions I will be grateful for hearing from 
you.


Yours

Randahl


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924791#3924791

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924791


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: 1 jboss and 25 deployments of 1 application

2005-12-08 Thread randahl
Interesting reading - thanks for your post.

R.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911410#3911410

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911410


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Number of JBosses per server - how many have you run simulta

2005-12-05 Thread randahl
Have anyone got any experiences with running several JBoss instances on the 
same server? Say 2, 5, 10 or maybe even more?

What are your experiences - does it perform well?

Randahl

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910784#3910784

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910784


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - 1 jboss and 25 deployments of 1 application

2005-11-30 Thread randahl
For an application provider system I need to deploy a large number of instances 
of the exact same application. The wiki has suggestions for installing multiple 
jboss servers on a single box, but I would expect that what I need is to 
install multiple instances of my application into a single jboss server 
instance on a single box. This raises a couple of questions:

1. Can JNDI clashes occur?
>From what I have read JBoss uses a single JNDI tree per server. My problem is 
>I have a large number of Swing clients that connect to each their own 
>application instance. They communicate with the server side through session 
>beans which they look up using JNDI, but I expect this will not work once I 
>have multiple applications, since each application will attempt to register 
>its own instances of the session beans on the same JNDI address. 
So what I would like to know is this: Am I forced to deploy each application's 
session beans with different JNDI names and write special client code which 
looks for the application specific JNDI names? Could anyone comment on whether 
that way is a good way? Are there any alternatives?

2. Can I expect a performance gain?
The reason I want to deploy all the application instances into the same JBoss 
instance is I expect it to perform better. If I gave each application its own 
JBoss instance I would expect this would consume much more RAM and take a lot 
more CPU time as well. On the other hand I am using class loader isolation so 
each application has its own class loader - this means that each application 
will have its own set of classes, so no RAM saving there. Has anyone got any 
experience with single JBoss vs. multiple JBoss performance and RAM consumption?

3. Is multiple JBoss server instances a viable alternative?
If we are to run 10, 25 or 50 applications per box is it *at all* a reasonable 
alternative to run a JBoss server instance per application instance? Has anyone 
ever installed 25 JBoss instances on the same box?

If anyone has any thoughts, views, experiences or hints I would be very happy 
to hear from you.

Thanks

Randahl

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909715#3909715

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909715


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Long class names missed by LoadMgr3 - short names work

2005-06-07 Thread randahl
That was it! Thanks to both of you. For backup reasons I used to have JBoss 
inside my My Documents folder but I now relocated JBoss to c:\ and everything 
works fine.

Thanks again!

Randahl

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880568#3880568

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880568


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Long class names missed by LoadMgr3 - short names work

2005-06-06 Thread randahl
I am running MyFaces on Tomcat 5 inside JBoss 4, and I have now encountered a 
really strange class loading problem. When I deploy a class named
dk.rockit.puls.web.rendering.browserXhtml.layout.DivisiLayoutInfo
the class is picked up fine but if I rename it to 
dk.rockit.puls.web.rendering.browserXhtml.layout.DivisioLayoutInfo
or anything longer than that an exception is thrown.

Now, I do not believe in magic, so I have tested this quite thoroughly, and it 
is consistent - whenever the class name exceeds 66 characters in length the 
LoadMgr3 throws a class not found exception, and if I rename my class to any 
short name no exception is thrown.

The error only occurs in my web module. I am using this class loader 
configuration for the EAR in which the web module's WAR resides:


 
dot.com:loader=rockit-web.ear
  
 java2ParentDelegation=false 
  



Below you will find the stack trace I encounter. If anyone has a clue to what 
could be wrong I would be grateful.

Randahl




Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: dk.rocki
t.puls.web.rendering.browserXhtml.layout.DivisionLayoutInfo
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:292)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
assLoader.java:464)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
oader.java:374)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:175)
at org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java
:194)
... 79 more
19:04:25,703 ERROR [Engine] ApplicationDispatcher[] Servlet.service() for servle
t jsp threw exception
javax.faces.el.EvaluationException: Expression: '#{divisionLayoutInfo.title}'
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java
:466)
at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUti
ls.java:296)
at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderOutput(H
tmlTextRendererBase.java:93)
at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(Html
TextRendererBase.java:81)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:
341)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:386)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:290)
at org.apache.jsp.puls.rendering.division_002dlayout_jspx._jspx_meth_h_o
utputText_0(division_002dlayout_jspx.java:149)
at org.apache.jsp.puls.rendering.division_002dlayout_jspx._jspx_meth_f_v
iew_0(division_002dlayout_jspx.java:111)
at org.apache.jsp.puls.rendering.division_002dlayout_jspx._jspService(di
vision_002dlayout_jspx.java:61)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:474)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:409)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:312)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
h(ServletExternalContextImpl.java:405)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
iewHandlerImpl.java:280)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:

[JBoss-user] [Persistence & CMP/JBoss] - Re: Double trouble: Invalid numeric parameter

2005-03-12 Thread randahl
Solved it!

Updated the sapdb driver to version 7_6_00_00_3360 - now it works fine!

R.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869896#3869896

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869896


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Double trouble: Invalid numeric parameter

2005-03-12 Thread randahl
For testing purposes I just converted all doubles to floats - same story.

R.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869873#3869873

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869873


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Double trouble: Invalid numeric parameter

2005-03-12 Thread randahl
JBoss: 3.1
Hibernate: 2.1
SapDB: 7

I have been stuck for some time with the exception shown below which is thrown 
whenever I try to persist entities which contain properties of type double. 
During the debugging process I am mapping my java doubles to the sql type 
Float(38) which is the most precise sapdb floating point numbers, containing up 
to 38 digits (not bits) which should be more than enough to represent Java 
doubles which contain a 52 bit number (the mantissa) and an 11 bit exponent. It 
does not matter what my double values are - the exception is thrown EVEN if I 
try to persist 0.0.

If anyone could come up with an idea what could be wrong, I would be grateful.

Randahl



Exception:

Caused by: com.sap.dbtech.jdbc.exceptions.DatabaseException: [-3018] (at 85): In
valid numeric parameter
at com.sap.dbtech.jdbc.packet.ReplyPacket.createException(ReplyPacket.ja
va:69)
at com.sap.dbtech.jdbc.ConnectionSapDB.throwSQLError(ConnectionSapDB.jav
a:748)
at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:422)

at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:316)

at com.sap.dbtech.jdbc.CallableStatementSapDB.execute(CallableStatementS
apDB.java:382)
at com.sap.dbtech.jdbc.CallableStatementSapDB.execute(CallableStatementS
apDB.java:291)
at com.sap.dbtech.jdbc.CallableStatementSapDB.executeUpdate(CallableStat
ementSapDB.java:697)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat
e(WrappedPreparedStatement.java:335)
at net.sf.hibernate.persister.NormalizedEntityPersister.update(Normalize
dEntityPersister.java:695)
... 42 more

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869871#3869871

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869871


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: Struts unload() causes NPE

2004-08-12 Thread randahl
By the way you did mean struts 1.1, right? Not 1.2.1?

I am using struts 1.1 and its jar is in the web-inf/lib folder of my war.

Randahl

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844878#3844878

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844878


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: Struts unload() causes NPE

2004-08-12 Thread randahl
Unfortunately setting this to false yields a huge amount of FileNotFoundExceptions 
related to different kinds of ".bsh" files like the following

java.io.FileNotFoundException: C:\jboss-3.2.5\server\shared\tmp\de
ploy\tmp17849web-console.war\WEB-INF\classes\SystemFolder.bsh

I tried wiping the deploy folder but this leads to even more errors like

java.io.FileNotFoundException: C:\jboss-3.2.5\server\shared\work\j
boss.web\localhost\_\loader\org\apache\struts\resources\struts-config_1_1.dtd

For now I will go back to using the UseJBossWebLoader=true setting. - Why did you 
think this was the solution in the first place, and do you have any idea why it leads 
to the exceptions above?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844875#3844875

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844875


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: Struts unload() causes NPE

2004-08-10 Thread randahl
Sure it is related to Struts. Look:

"Servlet action threw unload()"

And in my system the servlet name "action" refers to the Struts action servlet. This 
is confirmed by the fact that if I disable struts, the problem goes away. As soon as 
struts is enabled, the error occurs - even if I disable all my own struts stuff and 
run a clean, fresh struts install the error occurs...

Anyone got any ideas?

Randahl

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844635#3844635

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844635


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Struts unload() causes NPE

2004-08-09 Thread randahl
Using JBoss 3.2.5 and struts 1.1 I keep getting exceptions when the destroy method of 
Struts' action servlet is invoked. I did not experience this on earlier versions of 
JBoss even though I had the same configuration as now.

Has anyone else experienced this? Below is my stack trace.

Randahl


16:14:22,953 ERROR [Engine] StandardContext[]Servlet action threw unload() excep
tion
javax.servlet.ServletException: Servlet.destroy() for servlet action threw excep
tion
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:
1258)
at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:15
70)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
:952)
at org.apache.catalina.core.StandardContext.removeChild(StandardContext.
java:3126)
at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:676
)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:218)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:44
87)
at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:121
3)
at org.apache.catalina.core.StandardContext.destroy(StandardContext.java
:4573)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:582)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
09)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
eployer.java:142)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.
java:70)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)

at org.jboss.web.WebModule.startModule(WebModule.java:62)
at org.jboss.web.WebModule.startService(WebModule.java:40)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:582)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:837)
at $Proxy17.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:367)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:582)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy31.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:31
3)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:582)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
 

[JBoss-user] Please help list-admin: I keep getting the e-mails twice

2003-02-12 Thread Randahl Fink Isaksen








I have no clue what is wrong, but I keep getting each
of the e-mails from this list twice. I tried unsubscribing – no effect.

 

I would like to receive each e-mail only once.

 

 

Randahl

 








[JBoss-user] Getting duplicate e-mails from this list - why?

2003-02-07 Thread Randahl Fink Isaksen








I keep getting each of the e-mails on this list twice.
I am subscribing to several other lists, but e-mail duplicates only arrive from
the JBoss list.

 

Does anyone know what could be wrong and how to solve
this?

 

 

Randahl








RE: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?

2003-01-10 Thread Randahl Fink Isaksen








Thank you so much Stephen – you are
absolutely right and now it works perfect.

 

I agree that you definitely need to get
rid of this error in the distribution – I probably won’t be the
only one on the planet spending hours trying to figure out what in the world
went wrong from 3.0.2 to 3.0.4.

 

That was one great tip, you gave me there;
thanks to you we are now running 3.0.4 – thumbs up!

 

 

Randahl

 

-Original Message-
From: Stephen Coy [mailto:[EMAIL PROTECTED]]

Sent: 10. januar 2003 12:44
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMP on
3.0.4 with BLOB fields - has anyone seen it working?

 

Randahl,

I guess I'm the "blob" guy at the moment.

I went back and looked at your earlier emails.

The problem is that you are using a jdbc-type of JAVA_OBJECT.

This is an incorrect use of JAVA_OBJECT. Change it to LONGVARBINARY and it
should work fine.

We really need to go through the current standardjbosscmp-jdbc.xml and get rid
of all the uses of JAVA_OBJECT.
Prior to 3.0.4, JBoss would explicitly check for JAVA_OBJECT and serialise it,
when it is supposed to be the JDBC driver's responsibility.

Steve Coy


On Friday, January 10, 2003, at 08:34 PM, Randahl Fink Isaksen
wrote:

I
am wondering if anyone has got an EJB working on 3.0.4 with a property which is
stored as a serialized java object. Even the EJBs that worked for me on 3.0.2
do no longer work on 3.0.4 if they have a property which is of some
Serializable type which is converted to BLOB. I am using Sap DB.

 

My previous post contains the exceptions I
get on 3.0.4.

 

Randahl

 








RE: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?

2003-01-10 Thread Randahl Fink Isaksen
That sure is a constructive suggestion. I currently use the default
mapping which stores serialized java.lang.Object instances as LONG
BINARY - is there a relevant alternative?

Again, the mapping worked fine under 3.0.2 - what changed in 3.0.4?
Would somebody please care to comment on that?


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Alex
Loubyansky
Sent: 10. januar 2003 11:02
To: Randahl Fink Isaksen
Subject: Re: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone
seen it working?

Hello Randahl,

there are BLOB tests in the testsuit that pass successfully.
So, I think your problem is a mapping. Have you tried different
mapping?

alex

Friday, January 10, 2003, 11:34:19 AM, you wrote:

RFI> I am wondering if anyone has got an EJB working on 3.0.4 with a
property
RFI> which is stored as a serialized java object. Even the EJBs that
worked
RFI> for me on 3.0.2 do no longer work on 3.0.4 if they have a property
which
RFI> is of some Serializable type which is converted to BLOB. I am using
Sap
RFI> DB.

RFI> My previous post contains the exceptions I get on 3.0.4.

RFI> Randahl




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?

2003-01-10 Thread Randahl Fink Isaksen








The beans which worked on 3.0.2 and failed
on 3.0.4 also fails on 3.0.5rc1 – I just tested that.

 

I am forced to go back to 3.0.2 until the
bug related to fields of type java.lang.Object is fixed.

 

 

Randahl

 

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Randahl Fink Isaksen
Sent: 10. januar 2003 10:34
To:
[EMAIL PROTECTED]
Subject: [JBoss-user] CMP on 3.0.4
with BLOB fields - has anyone seen it working?

 

I am wondering if anyone has got an
EJB working on 3.0.4 with a property which is stored as a serialized java
object. Even the EJBs that worked for me on 3.0.2 do no longer work on 3.0.4 if
they have a property which is of some Serializable type which is converted to
BLOB. I am using Sap DB.

 

My previous post contains the
exceptions I get on 3.0.4.

 

Randahl

 








[JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?

2003-01-10 Thread Randahl Fink Isaksen








I am wondering if anyone has got an EJB working on 3.0.4 with
a property which is stored as a serialized java object. Even the EJBs that
worked for me on 3.0.2 do no longer work on 3.0.4 if they have a property which
is of some Serializable type which is converted to BLOB. I am using Sap DB.

 

My previous post contains the exceptions I get on 3.0.4.

 

Randahl

 








[JBoss-user] CMP incompatibility between 3.0.2 and 3.0.4

2003-01-09 Thread Randahl Fink Isaksen








After upgrading from 3.0.2 to 3.0.4 it seems JBoss handles EJB
properties of type Serializable in a different way.

 

My whole solution is running the way it used to except for one
thing:  Those of my EJB’s which have CMP fields which are of type serializable
object fail. For instance, one of my beans has a field called
“validator” which stores a serialized java object. After I started
using JBoss 3.0.4 it was no longer possible to read these beans from the
database. JBoss threw this exception:

 

java.sql.SQLException: Got a [B[cl=0, value=[B@1ab7626] while looking
for a dk.r

ockit.puls.value.property.validator.Validator[cl=31889293]

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.coerceToJavaType(JDBCUtil.jav

a:570)

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:437)

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load

ArgumentResults(JDBCAbstractCMPFieldBridge.java:359)

    at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load

InstanceResults(JDBCAbstractCMPFieldBridge.java:312)

…

 

Extensive testing has shown that all EJBs which have a serializable
object field with a non-null value cannot be read from or written to the database
(a SAP DB). As another example, I have an EJB which has a field called “menuBar”
which stores a serialized java object. When setting a non-null value for this
field on my EJB I get the following exception:

 

javax.ejb.EJBException: Internal error setting parameters for field menuBar;
Cau

sedByException is:

    Cannot put ASCII data into
this long column

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setA

rgumentParameters(JDBCAbstractCMPFieldBridge.java:297)

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setI

nstanceParameters(JDBCAbstractCMPFieldBridge.java:270)

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(JDBCSto

reEntityCommand.java:85)

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(JDBCStore

Manager.java:589)

    at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenc

eManager.java:458)

 

Now, my database is exactly the same namely a SAP database, and I
checked that the standardjbosscmp-jdbc configuration is also the same –
looking at the exception above it seems JBoss tries to store the object as a ascii
string of some sort. Both my 3.0.2 and 3.0.4 has this setting

 




   
java.lang.Object

   
JAVA_OBJECT

   
LONG BYTE




 

which is exactly the setting I want. I went as far as dropping the
whole database and reconstructing it using the new 3.0.4 in hopes the error was
caused by some inconsistency between the two versions – no luck, the
3.0.4 is simply not able to handle my Serializable fields.

 

If anyone has any idea what is different in JBoss 3.0.4 I shall be very
pleased to hear from you. Finally I should mention that I based my 3.0.2
deployment on the “all” deployment configuration (with virtually no
changes), and my 3.0.4 deployment is now based on the “default”
deployment configuration (with virtually no changes). I did this to improve
startup performance (it actually lowered the startup time by one third).

 

 

Yours

 

Randahl

 








RE: [JBoss-user] New JBoss breaks CMP of serializable object fields (Upgrade from 3.0.2 to 3.0.4)

2003-01-09 Thread Randahl Fink Isaksen
Well, as I mentioned I can't make it write new data either (see the
original post below). Something is definitely wrong - or am I the only
one having trouble writing EJBs with fields containing serialized
objects into BLOB columns?


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Jonathan.O'[EMAIL PROTECTED]
Sent: 9. januar 2003 14:47
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] New JBoss breaks CMP of serializable object
fields (Upgrade from 3.0.2 to 3.0.4)

Randahl,
Unfortunately, some code changed, and 3.0.4 can't read data written with

3.0.2. I think it happened when JBoss went from 3.0.2 to 3.0.3.
No doubt, somebody else knows the exact reason.
Ciao,
Jonathan




"Randahl Fink Isaksen" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
09.01.2003 11:48
Please respond to jboss-user

 
To: <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>
cc: 
Subject:[JBoss-user] New JBoss breaks CMP of
serializable object fields (Upgrade 
from 3.0.2 to 3.0.4)


After upgrading from 3.0.2 to 3.0.4 it seems JBoss handles EJB
properties 
of type Serializable in a different way.
 
My whole solution is running the way it used to except for one thing: 
Those of my EJB's which have CMP fields which are of type serializable 
object fail. For instance, one of my beans has a field called
"validator" 
which stores a serialized java object. After I started using JBoss 3.0.4

it was no longer possible to read these beans from the database. JBoss 
threw this exception:
 
java.sql.SQLException: Got a [B[cl=0, value=[B@1ab7626] while looking
for 
a dk.r
ockit.puls.value.property.validator.Validator[cl=31889293]
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.coerceToJavaType(JDBCUtil.jav
a:570)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:437)
at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load
ArgumentResults(JDBCAbstractCMPFieldBridge.java:359)
at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load
InstanceResults(JDBCAbstractCMPFieldBridge.java:312)
?
 
Extensive testing has shown that all EJBs which have a serializable
object 
field with a non-null value cannot be read from or written to the
database 
(a SAP DB). As another example, I have an EJB which has a field called 
"menuBar" which stores a serialized java object. When setting a non-null

value for this field on my EJB I get the following exception



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] New JBoss breaks CMP of serializable object fields (Upgrade from 3.0.2 to 3.0.4)

2003-01-09 Thread Randahl Fink Isaksen








After upgrading from 3.0.2 to 3.0.4 it seems JBoss handles EJB
properties of type Serializable in a different way.

 

My whole solution is running the way it used to except for one
thing:  Those of my EJB’s which have CMP fields which are of type serializable
object fail. For instance, one of my beans has a field called “validator”
which stores a serialized java object. After I started using JBoss 3.0.4 it was
no longer possible to read these beans from the database. JBoss threw this
exception:

 

java.sql.SQLException: Got a [B[cl=0, value=[B@1ab7626] while looking
for a dk.r

ockit.puls.value.property.validator.Validator[cl=31889293]

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.coerceToJavaType(JDBCUtil.jav

a:570)

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:437)

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load

ArgumentResults(JDBCAbstractCMPFieldBridge.java:359)

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load

InstanceResults(JDBCAbstractCMPFieldBridge.java:312)

…

 

Extensive testing has shown that all EJBs which have a serializable
object field with a non-null value cannot be read from or written to the
database (a SAP DB). As another example, I have an EJB which has a field called
“menuBar” which stores a serialized java object. When setting a
non-null value for this field on my EJB I get the following exception:

 

javax.ejb.EJBException: Internal error setting parameters for field menuBar;
Cau

sedByException is:

    Cannot put ASCII data into
this long column

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setA

rgumentParameters(JDBCAbstractCMPFieldBridge.java:297)

    at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setI

nstanceParameters(JDBCAbstractCMPFieldBridge.java:270)

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(JDBCSto

reEntityCommand.java:85)

    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(JDBCStore

Manager.java:589)

    at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenc

eManager.java:458)

 

Now, my database is exactly the same namely a SAP database, and I
checked that the standardjbosscmp-jdbc configuration is also the same –
looking at the exception above it seems JBoss tries to store the object as a ascii
string of some sort. Both my 3.0.2 and 3.0.4 has this setting

 




   
java.lang.Object

   
JAVA_OBJECT

   
LONG BYTE




 

which is exactly the setting I want. I went as far as dropping the
whole database and reconstructing it using the new 3.0.4 in hopes the error was
caused by some inconsistency between the two versions – no luck, the
3.0.4 is simply not able to handle my Serializable fields.

 

If anyone has any idea what is different in JBoss 3.0.4 I shall be very
pleased to hear from you. Finally I should mention that I based my 3.0.2
deployment on the “all” deployment configuration (with virtually no
changes), and my 3.0.4 deployment is now based on the “default”
deployment configuration (with virtually no changes). I did this to improve
startup performance (it actually lowered the startup time by one third).

 

 

Yours

 

Randahl

 

 

 

 

 








RE: [JBoss-user] How do i Mention the welcome page

2002-10-09 Thread Randahl Fink Isaksen









Hi Gangadhar

 

 

To make that work I would complete the
following two (or three) steps… 

 

Step 1:

 

Mount your web application under the root
rather than under a certain name. This is done as follows (in application.xml):

 

    

    

    your-web.war

    

    

    

 

Notice that the 
element is empty. This makes your web application available at http://xyz.com/ rather than at http://xyz.com/something .

 

 

Step 2:

 

Add your login.jsp to the list of default
files as follows (in web.xml):

…

    

…

    login.jsp

    

…

 

This makes sure that if you hit http://xyz.com/ in a browser the application server
(in this case JBoss) returns http://xyz.com/login.jsp
if such a file exists. Of course you need to make sure that the login.jsp file
is available at the root of your-web.war.

 

 

The following step is unnecessary but just
to give you an additional tip - Step 3:

 

In case you do not wish to place your
login file in the root of your web archive you can add a welcome file called something
like “automatic-forward.jsp” (in web.xml). You should then write a
JSP called automatic-forward.jsp which forwards the user to the http address of
the login file. This way you can put the automatic-forward.jsp in the root and
have your actual login.jsp placed wherever you want it to be. This can be
relevant if you have some preferred way of organizing your JSP files which does
not include placing files in the root.

 

 

Hope this helps you out

 

Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Gangadhar
Sent: 9. oktober 2002 09:15
To:
[EMAIL PROTECTED]
Subject: [JBoss-user] How do i
Mention the welcome page

 



Hi All,





I would like to mention the
welcome page as 





http://gangs.com
instead of my http://localhost:8080/warfile/login.jsp





 





How do i map it in JBOSS





 





 





Can anybody tell me how do i
do it.





 





 





Thanks in Advance





Gangadhar





 





 



 DISCLAIMER --- This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law.  If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or [EMAIL PROTECTED] and destroy the original message. Opinions, conclusions, and other information in this message that do not relate to the official business of SPAN, shall be understood to be neither given nor endorsed by SPANMails are Scanned and Filtered for Virus[EMAIL PROTECTED] 






RE: [JBoss-user] Access to archives of this list - (want to research to avoid asking a FAQ)

2002-10-08 Thread Randahl Fink Isaksen

I too would like to know why the source forge list is not open.

Does anyone know??

R.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dmitri
Colebatch
Sent: 9. oktober 2002 08:22
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Access to archives of this list - (want to
research to avoid asking a FAQ)

www.mail-archive.com

cheers
dim

- Original Message -
From: "Thorbjørn Ravn Andersen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 3:15 PM
Subject: [JBoss-user] Access to archives of this list - (want to
research to
avoid asking a FAQ)


> I have a rather tricky problem with jboss-web.xml where a

> does not show up in JNDI for one webapp, although the identical file
> shows up in another webapp in the same EAR, and I would like to search
> the archives before asking for help debugging JNDI configuration.
>
> Unfortunately SourceForge reports that I need to be a "member of this
> group" to view the pages for jboss-user, although the jboss-developer
is
> freely accessible.  Is this intentional, and if so, what do I need to
do
> to get access?  Just logging in at sourceforge, did not do it.
>
> I'd appreciate any help.
>
> --
>   Thorbjørn Ravn Andersen  Scandiatransplant
>Skejby Sygehus, indgang 3
>   +45 89 49 53 01  DK-8200 Århus N
>   http://biobase.dk/~tra
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Avoid creating elements

2002-10-04 Thread Randahl Fink Isaksen








Is there a way to avoid creating 
elements in your EJBs declarations?

 

We have an ejb-jar.xml with literally thousands of lines of
XML, and quite many of those lines contain  element
information. All of our  elements refer EJBs in the same
ejb-jar. It seems superfluous yet without it nothing works.

 

I am looking for some way to express that if any of my EJBs
refer “ejb/MySupermanEJB” then that always should resolve to a certain
single  declaration. Currently, instead of a single
 element, the element is always repeated in many many EJB
declarations.

 

Is there a way to avoid it using either EJB compliant
features or JBoss specific features?

 

Randahl

 








RE: [JBoss-user] How to log in from an MBean

2002-10-03 Thread Randahl Fink Isaksen









Well then to elaborate the Swing client of
my EJBs uses the following module to log in:

 

  

    

  

    …

     

    

  

 

Whereas (as described earlier) the MBean
client of my EJBs has to use the following module to log in:

 

   


  


 



flag = "required">

 


  


    

 

What I am saying is, since I have declared
a domain called myDomain using the user database of my system, I think it is
reasonable to expect that both the Swing client and the MBean client could log
in using the “myDomain”. As mentioned, if my MBean carries out a
login on the “myDomain” using, say, the same credentials as my
Swing client, the log in is of course successful, however, due to the way JBoss
works my MBean still does not get access to my EJBs. For my MBean to get access
to EJBs it has to use a different log in module configuration, namely the “client-login”
referring to the “ClientLoginModule”.

 

Unfortunately I have not yet contributed
code to JBoss, so I cannot tell whether there is a sound design reason for the
way this is. All I am saying is, I find it reasonable for JBoss users to expect
that when a Swing client can log in and get access to the EJBs using “myDomain”,
so can any other client – including MBeans.

 

 

Randahl

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark
Sent: 3. oktober 2002 01:51
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to
log in from an MBean

 



I don't know what you are talking
about. The swing client and mbean are treated





exactly the same. The swing client
that uses your jaas module must also be





using the ClientLoginModule in order
to talk to secured ejbs.





 






Scott Stark
Chief Technology Officer
JBoss Group, LLC








- Original Message - 





From: Randahl Fink Isaksen 





To: [EMAIL PROTECTED] 





Sent: Wednesday,
October 02, 2002 4:28 PM





Subject: RE:
[JBoss-user] How to log in from an MBean





 



No,
obviously you would never need to login twice in a row. I just thought you
could use your own login module _instead_
of the ClientLoginModule, which you cannot.

 

That
surprises me since if my MBean logs in using my custom JAAS module and succeed
there is no reason for JBoss to deny me access to my EJBs. If a Swing client
can log in using my custom JAAS module, I think it is reasonable to expect that
an MBean can aswell – the way I see it, the Swing client and the MBean
are just two separate clients of the EJBs, so why should they be treated
differently… ideally speaking?

 

 

Randahl

 










RE: [JBoss-user] How to log in from an MBean

2002-10-02 Thread Randahl Fink Isaksen









No, obviously you would never need to
login twice in a row. I just thought you could use your own login module _instead_ of the ClientLoginModule, which
you cannot.

 

That surprises me since if my MBean logs
in using my custom JAAS module and succeed there is no reason for JBoss to deny
me access to my EJBs. If a Swing client can log in using my custom JAAS module,
I think it is reasonable to expect that an MBean can aswell – the way I
see it, the Swing client and the MBean are just two separate clients of the EJBs,
so why should they be treated differently… ideally speaking?

 

 

Randahl

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark
Sent: 3. oktober 2002 00:34
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to
log in from an MBean

 



You can use your own login module,
but to propagate the credentials to the ejb





container you must include the
ClientLoginModule as well. Presumably the





security domain associated with the
ejb is also executing your login module





so why do it twice?





 






Scott Stark
Chief Technology Officer
JBoss Group, LLC








- Original Message - 





From: Randahl Fink Isaksen 





To: [EMAIL PROTECTED] 





Sent: Wednesday,
October 02, 2002 3:01 PM





Subject: RE:
[JBoss-user] How to log in from an MBean





 



Problem
solved! As written in earlier posts I tried to use my own JAAS login module
configuration “myDomain” for the MBean login. This is NOT in
accordance with page 276 of the JBossBook_30x (see below… “the only
supported mechanism”).

 

Solution:
I simply switched from “myDomain” to “client-login”
when creating my LoginContext.

 

However,
I am curious why my original solution is not allowed by JBoss… is that a
bug or a feature? – I must admit that the JBoss way works, so no problem
there… still, why can’t I use my own login module configuration
which carries out _real_
authentication rather than just setting the Principal (as the client-login
module configuration does).

 

Randahl

 

 

 

 

Extract
from JBossBook_30x:

 

The ClientLoginModule is
an implementation of LoginModule for use by JBoss clients for the
estab-lishment of the caller identity and credentials. This simply sets the org.jboss.security.SecurityAssoci-ation.principal
to the value of the NameCallback filled in by the CallbackHandler,
and the org.jboss.security.SecurityAssociation.credential to the
value of the PasswordCallback filled in by the CallbackHandler. This is
the only supported mechanism for a client to establish the current thread's
caller. 

 

 

 

 

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark
Sent: 2. oktober 2002 19:57
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to
log in from an MBean

 



Post a testcase to sourceforge attached
to a bug report.





 






Scott Stark
Chief Technology Officer
JBoss Group, LLC








- Original Message - 





From: Randahl Fink Isaksen 





To: [EMAIL PROTECTED] 





Sent: Wednesday,
October 02, 2002 10:50 AM





Subject: RE:
[JBoss-user] How to log in from an MBean





 



Well, it
IS done in the same thread. My MBean starts 1 thread which has a run method
which starts out by logging in and attempting to access my EJBs – then I
get the security exception. I am using JBoss 3.0.2.

 

Randahl

 












RE: [JBoss-user] How to log in from an MBean

2002-10-02 Thread Randahl Fink Isaksen









Problem solved! As written in earlier
posts I tried to use my own JAAS login module configuration “myDomain”
for the MBean login. This is NOT in accordance with page 276 of the JBossBook_30x
(see below… “the only supported mechanism”).

 

Solution: I simply switched from “myDomain”
to “client-login” when creating my LoginContext.

 

However, I am curious why my original
solution is not allowed by JBoss… is that a bug or a feature? – I must
admit that the JBoss way works, so no problem there… still, why can’t
I use my own login module configuration which carries out _real_ authentication rather than just setting
the Principal (as the client-login module configuration does).

 

Randahl

 

 

 

 

Extract from JBossBook_30x:

 

The ClientLoginModule is an implementation of LoginModule for
use by JBoss clients for the estab-lishment of the caller identity and
credentials. This simply sets the org.jboss.security.SecurityAssoci-ation.principal
to the value of the NameCallback filled in by the CallbackHandler,
and the org.jboss.security.SecurityAssociation.credential to the
value of the PasswordCallback filled in by the CallbackHandler.
This is the only supported mechanism for a client to establish the current
thread's caller. 

 

 

 

 

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark
Sent: 2. oktober 2002 19:57
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to
log in from an MBean

 



Post a testcase to sourceforge
attached to a bug report.





 






Scott Stark
Chief Technology Officer
JBoss Group, LLC








- Original Message - 





From: Randahl Fink Isaksen 





To: [EMAIL PROTECTED] 





Sent: Wednesday,
October 02, 2002 10:50 AM





Subject: RE: [JBoss-user]
How to log in from an MBean





 



Well, it
IS done in the same thread. My MBean starts 1 thread which has a run method
which starts out by logging in and attempting to access my EJBs – then I
get the security exception. I am using JBoss 3.0.2.

 

Randahl

 










RE: [JBoss-user] How to log in from an MBean

2002-10-02 Thread Randahl Fink Isaksen









Moreover, a call to SecurityAssociation.getPrincipal()
returns null both before and after the login… any ideas?

 

 

Randahl

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark
Sent: 2. oktober 2002 18:50
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to
log in from an MBean

 



That is what is needed, but it must
be done in the context of the thread





making the ejb call.





 






Scott Stark
Chief Technology Officer
JBoss Group, LLC








- Original Message - 





From: Randahl Fink Isaksen 





To: [EMAIL PROTECTED] 





Sent: Wednesday,
October 02, 2002 4:55 AM





Subject: [JBoss-user]
How to log in from an MBean





 



I am writing an MBean which should
access my deployed EJBs. However, when I invoke my EJBs from it I get 

 

java.lang.SecurityException:
Authentication exception, principal=null

 

so, assuming that a login is
necessary, I carried out a standard JAAS client login from my MBean like this

 

   
LoginContext loginContext = new LoginContext(

   
"myDomain",

   
new MyCallbackHandler("userAccoutn", new char[]{'1', '2', '3', '4'})

   
);

 

where “userAccount” is a
user account I normally use for logging into my “myDomain” in
JBoss.

 

This, however, does not work. I still
get the authentication exception above. Is this approach incorrect? Is there a
special login API for MBeans running inside JBoss, other than JAAS? Can you
disable login requirements for MBeans?

 

Any help will be highly appreciated.

 

Randahl

 

 










RE: [JBoss-user] How to log in from an MBean

2002-10-02 Thread Randahl Fink Isaksen









Well, it IS done in the same thread. My MBean
starts 1 thread which has a run method which starts out by logging in and
attempting to access my EJBs – then I get the security exception. I am
using JBoss 3.0.2.

 

Randahl

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark
Sent: 2. oktober 2002 18:50
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to
log in from an MBean

 



That is what is needed, but it must
be done in the context of the thread





making the ejb call.





 






Scott Stark
Chief Technology Officer
JBoss Group, LLC








- Original Message - 





From: Randahl Fink Isaksen 





To: [EMAIL PROTECTED] 





Sent: Wednesday,
October 02, 2002 4:55 AM





Subject:
[JBoss-user] How to log in from an MBean





 



I am writing an MBean which should
access my deployed EJBs. However, when I invoke my EJBs from it I get 

 

java.lang.SecurityException:
Authentication exception, principal=null

 

so, assuming that a login is
necessary, I carried out a standard JAAS client login from my MBean like this

 

   
LoginContext loginContext = new LoginContext(

   
"myDomain",

   
new MyCallbackHandler("userAccoutn", new char[]{'1', '2', '3', '4'})

   
);

 

where “userAccount” is a
user account I normally use for logging into my “myDomain” in JBoss.

 

This, however, does not work. I
still get the authentication exception above. Is this approach incorrect? Is
there a special login API for MBeans running inside JBoss, other than JAAS? Can
you disable login requirements for MBeans?

 

Any help will be highly appreciated.

 

Randahl

 

 










[JBoss-user] How to log in from an MBean

2002-10-02 Thread Randahl Fink Isaksen








I am writing an MBean which should access my deployed EJBs.
However, when I invoke my EJBs from it I get 

 

java.lang.SecurityException:
Authentication exception, principal=null

 

so, assuming that a login is necessary, I carried out a
standard JAAS client login from my MBean like this

 

    LoginContext
loginContext = new LoginContext(

    "myDomain",

    new
MyCallbackHandler("userAccoutn", new char[]{'1', '2', '3', '4'})

    );

 

where “userAccount” is a user account I normally
use for logging into my “myDomain” in JBoss.

 

This, however, does not work. I still get the authentication
exception above. Is this approach incorrect? Is there a special login API for
MBeans running inside JBoss, other than JAAS? Can you disable login
requirements for MBeans?

 

Any help will be highly appreciated.

 

Randahl

 

 








RE: [JBoss-user] JBoss component library revisited

2002-10-02 Thread Randahl Fink Isaksen

Or you could call it "FreeJBs" - sounds a bit like "EJBs" (if you
pronounce "EJB" letter by letter) which is what its about, right?).

Still, there is a need for agreeing on the scope of that forum - is it
only JBoss components, is it EJB components, is it Java components, is
it any kind of components... there needs to be a scope.


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of wonder
sonic
Sent: 2. oktober 2002 12:21
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss component library revisited

As I started the thread, I suggest to call it:
The Wonder Component Library (TWCL) :)

Just kidding... ;)

Seriously: 
how about the FCL for the Free Component Library?

Cheers,
WS

 --- "J. A. Romero L." <[EMAIL PROTECTED]> a écrit : > On 2
Oct 2002, Pete Beck wrote:
> 
> 
> (...) 
> > So, should we begin something on sourceforge? 
> Anyone thought of a good
> > name?
> 
> Boss' Beans?
> 
> --
> Jose A. Romero L.
> E-Commerce / IT @ Onet.pl
> [EMAIL PROTECTED]
> "Where do they want you to go today?"
> 
> 
> 
>
---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Can MBeans have a Swing interface

2002-10-02 Thread Randahl Fink Isaksen









I take that as a yes, then. Sacha, I was
wondering why you mount your service as “jboss:service=…” are
you not supposed to use “user:service=…”? Additionally I was
wondering if the fact that we both have a class and an MBean interface is a JMX
requirement – otherwise I would just not write the interface class (since
it is rather trivial).

 

 

Yours truly,

 

Randahl

 

PS: Well then, I think I will bring the
code to the pub next time…

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sacha Labourey
Sent: 1. oktober 2002 23:38
To:
[EMAIL PROTECTED]
Subject: RE: [JBoss-user] Can
MBeans have a Swing interface

 



try this
thing in attachement... an old trick to impress ladies.





 





Cheers,





 





 





sacha





-Message d'origine-
De :
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Randahl Fink Isaksen
Envoyé : mardi, 1 octobre
2002 16:45
À :
[EMAIL PROTECTED]
Objet : [JBoss-user] Can
MBeans have a Swing interface

I was thinking of creating a service
MBean for monitoring certain parts of the server side of my application. Is it
valid behavior of such an MBean to launch a Swing interface, say, in its
startService() method (supposing it extends ServiceMBeanSupport)?

 

To find out, I created a simple
MBean (see below) but unfortunately it makes JBoss hang when I try to shut down
JBoss. I have added and removed the JFrame related code several times, and the
result is always the same: With the JFrame code, JBoss hangs when shutting
down.

 

Showing the JFrame is no problem
– it pops up just like I wanted it.

 

Randahl

 

 

 

 

 

public class Server extends
ServiceMBeanSupport implements ServerMBean {

   
JFrame serverFrame;

 

   
public void startService() {

   
serverFrame = new JFrame("Server");

   
serverFrame.show();

   
System.out.println("Server is started");

   
}

   


   
public void stopService() {

   
serverFrame.hide();

   
System.out.println("Server is stopped");

   
}

}

 





 



   


   
jboss:service=Naming

   













[JBoss-user] Can MBeans have a Swing interface

2002-10-01 Thread Randahl Fink Isaksen








I was thinking of creating a service MBean for monitoring
certain parts of the server side of my application. Is it valid behavior of
such an MBean to launch a Swing interface, say, in its startService() method
(supposing it extends ServiceMBeanSupport)?

 

To find out, I created a simple MBean (see below) but
unfortunately it makes JBoss hang when I try to shut down JBoss. I have added
and removed the JFrame related code several times, and the result is always the
same: With the JFrame code, JBoss hangs when shutting down.

 

Showing the JFrame is no problem – it pops up just
like I wanted it.

 

Randahl

 

 

 

 

 

public class Server extends ServiceMBeanSupport implements ServerMBean
{

    JFrame
serverFrame;

 

    public
void startService() {

    serverFrame
= new JFrame("Server");

    serverFrame.show();

    System.out.println("Server
is started");

    }

    

    public
void stopService() {

    serverFrame.hide();

    System.out.println("Server
is stopped");

    }

}

 





 



    

    jboss:service=Naming

    










RE: [JBoss-user] JBOSS - Components library

2002-09-27 Thread Randahl Fink Isaksen

Does anyone have any experience with that forum? - Looks interesting.

R.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Gus Power
Sent: 27. september 2002 13:14
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] JBOSS - Components library

A good idea!

And for my contribution to the possible domains, how about the OSS/J
initiative?
(http://java.sun.com/products/oss/)

Gus.

-Original Message-
From: wonder sonic [mailto:[EMAIL PROTECTED]] 
Sent: 27 September 2002 09:21
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS - Components library


Hi,
I was wondering:
-1- JBoss seems to be free
-2- JBoss seems to be the most downloaded Application
Server
-3- JBoss seems to be the most used by developpers
-4- A part of these developpers seems to be involved
in
the development of the open source community
-5- These developers develop things, particularly
EJBs...

So, according to the number of developers. How many of
them have RE-developed an EJB?

My question is: How about add to JBoss a Components
library (ie: a set of EJBs) that could be reused by
others? Imagine the time spent to RE-develop the same
things each time...

Waiting for replies... :)

Best regards to the JBoss and the Open Source
community,
Wonder Sonic

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo!
Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf ___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBOSS - Components library

2002-09-27 Thread Randahl Fink Isaksen

Absolutely! Names like "UserEJB" or "CounterEJB" are probably found in
many projects ejb-jar.xml, and in many projects they could probably be
implemented by free components (org.jboss.user.LocalUserBean).

I think it is a great idea, is anyone volunteering for hosting
www.ejbs4jboss.org?

- Or does the JBoss group wish to add a component submittal page at
www.jboss.org?

As an alternative, we could use an existing (EJB) component sharing
forum - any suggestions?


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Saroj Kumar
Sent: 27. september 2002 10:39
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBOSS - Components library

Hi Wonder Sonic,

Yeah, this seems to be a good idea.

Certainly it can be done.

Let us discuss it in depth.

Q-
1) What kind of components are u thinking about?
2) Which domain they work in?

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of wonder
sonic
Sent: Friday, September 27, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS - Components library


Hi,
I was wondering:
-1- JBoss seems to be free
-2- JBoss seems to be the most downloaded Application
Server
-3- JBoss seems to be the most used by developpers
-4- A part of these developpers seems to be involved
in
the development of the open source community
-5- These developers develop things, particularly
EJBs...

So, according to the number of developers. How many of
them have RE-developed an EJB?

My question is: How about add to JBoss a Components
library (ie: a set of EJBs) that could be reused by
others? Imagine the time spent to RE-develop the same
things each time...

Waiting for replies... :)

Best regards to the JBoss and the Open Source
community,
Wonder Sonic

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Standard Java logging rather than log4j - impossible?

2002-09-24 Thread Randahl Fink Isaksen








My EJBs use the standard java logging mechanism, but I have
noticed that all my logging messages show up on the console as ERROR output. I
guess this is because JBoss uses log4j. Without getting into a debate about
which logging mechanism is the best, has anyone found out how to make java.util.loggin
work more nicely with JBoss?

 

 

Randahl

 








[JBoss-user] JaasSecurityManager caching - hard-coded constant?

2002-09-24 Thread Randahl Fink Isaksen

Still, I wonder if the cache has some timing setting somewhere - I mean
it probably flushes its entries at some point, rather than caching
values which are (potentially) months old. - I do not suppose that JBoss
contains some hard-coded constant setting for this... or... (?)


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: 24. september 2002 10:30
To: [EMAIL PROTECTED]
Subject: Antwort: [JBoss-user] How to make DatabaseServerLoginModule
stop caching


Hi ,
As you know, the real reason of caching is to provide more performance.
So, but what you want, is a API to flush out the old cache.

But you have it,

JaasSecurityManager In JBoss has a flush function by the name of
flushAuthenticationCache
here is a very simple code to use it.

ObjectName jaasMgr = new ObjectName
("jboss.security:service=JaasSecurityManager");
ArrayList list =  MBeanServerFactory.findMBeanServer(null);
if ( list == null )
{
  return;
}
Iterator iter = list.iterator();
while (iter.hasNext())
{
MBeanServer server = (MBeanServer)(iter.next());
 if ( server.isRegistered(jaasMgr) )
{
   server.invoke(jaasMgr,"flushAuthenticationCache" ,new String[] {
"your-section-name-from-login-config"  } ,new String[]
{"java.lang.String"});
   break;
}
}
}

you should only set "your-section-name-from-login-config" .

So, it means, you should call this block after any change in user roles
or



Best regards
Mehrdad Ashrafi.





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to make DatabaseServerLoginModule stop caching

2002-09-23 Thread Randahl Fink Isaksen








Does anyone know how to make DatabaseServerLoginModule stop
caching the user information retrieved from the database?

 

If a user selects a new password, I would like him to be
able to log in with it immediately.

 

The only way I can make his changes effective currently is
by restarting JBoss – which obviously is not a good solution.

 

Randahl

 








RE: [JBoss-user] Simple authentication using UsersRolesLoginModule not working

2002-09-23 Thread Randahl Fink Isaksen








Gotcha – it turns out that I had to
specify a login-config in web.xml – did the following:

 



    BASIC

    other

    

 

I would have liked JBoss being a bit more
explicit in its error message, though.

 

 

Randahl

 

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Randahl Fink Isaksen
Sent: 23. september 2002 12:00
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Simple
authentication using UsersRolesLoginModule not working

 

I am trying to get authentication to
work on JBoss 3.0.2. I would like to use the UsersRolesLoginModule, so I have
put a users.properties and roles.properties into my conf folder. I have also
configured my web application as shown at the end of this e-mail. However, I
keep getting the following error:

 

11:51:10,003 WARN  [jbossweb]
WARNING: Mis-configured Authenticator for /restricted

 

This happens when trying to access /restricted/ of my web app

 

Any help would be very much
appreciated. Thanks.

 

 

Randahl

 

 

 

 

From jboss-web.xml

 





    

   
java:/jaas/myDomain



 

From login-config.xml

 

   


   


   


   


   


 

From web.xml

 

   


   


   
Secure Content

   
/restricted/*

   


   


   
Administrator

   


   


   


   


   
Administrator

  









[JBoss-user] Simple authentication using UsersRolesLoginModule not working

2002-09-23 Thread Randahl Fink Isaksen








I am trying to get authentication to work on JBoss 3.0.2. I
would like to use the UsersRolesLoginModule, so I have put a users.properties
and roles.properties into my conf folder. I have also configured my web
application as shown at the end of this e-mail. However, I keep getting the
following error:

 

11:51:10,003 WARN  [jbossweb] WARNING: Mis-configured
Authenticator for /restricted

 

This happens when trying to access /restricted/ of my web app

 

Any help would be very much appreciated. Thanks.

 

 

Randahl

 

 

 

 

From jboss-web.xml

 





    

    java:/jaas/myDomain



 

From login-config.xml

 

    

    

    

    

    

 

From web.xml

 

    

    

    Secure
Content

    /restricted/*

    

    

    Administrator

    

    

    

    

    Administrator

   








[JBoss-user] Order of columns in relationship tables

2002-09-13 Thread Randahl Fink Isaksen








I am a bit surprised by the way JBoss orders the columns in
relationship tables which seems reverse to me.

 

Say I have two EJBs called A and B and a relation ship between
them, then, if I map this relationship as shown below, the database table
created seems reversed having the column order TheKeyOfB, TheKeyOfA rather than
TheKeyOfA, TheKeyOfB. This seems odd to me – is it intentional, and can
it be prevented?

 

 

Randahl

 

    

    A-has-B

    

    

    primaryKey

    TheKeyOfA

    

    

    

    

    A-belongsTo-B

    

    

    primaryKey

    TheKeyOfB