Fw: UN-SUBSCRIBE

2001-06-14 Thread Louis Daniel Cucinella

UN-SUBSCRIBE





SV: response.sendRedirect problem

2001-06-14 Thread Patrik Andersson
Title: SV: response.sendRedirect problem





Don't write a full URL In the sendRedirect(param) call. Use an URI instead. Do:


response.sendRedirect(/some/place/file.html);


instead of:


response.sendRedirect(http://host.domain:port/some/place/file.html);



-Ursprungligt meddelande-
Från: Rafael Alvarez [mailto:[EMAIL PROTECTED]]
Skickat: den 14 juni 2001 00:44
Till: Orion-Interest
Ämne: response.sendRedirect problem



Hi all,


this is the scenary: I have a 2 jsp pages and 2 servlet. The flow is:


pag1.jsp --(via Post)--
 --servlet1 --(via forward) --
 --servlet2 --(via response.sendRedirect) --
 -- pag2.jsp


when viewed using some browsers in Mac (IE and Netscape alike), the
redirect sends the url
http://hostname/servlet/servlet2/http//hostname/servlet/servlet2


and I got a 400 Bad Request Error, no matter which url I use in the
response.sendRedirect (as I recall, my last was foobar/whatever)



On windows and unix browsers works fine.


Any ideas?


-- 
Best regards,
Rafael mailto:[EMAIL PROTECTED]






Re: Force Logon after X minutes

2001-06-14 Thread Lachezar Dobrev

   One can use in a servlet, or a JSP:
excerpt
   if ( session.getAttribute(logged_out) != null ){
 response.sendError(response.SC_UNAUTHORIZED, Logout...);
 return;
   }
end excerpt

   Whenever you want your user logged out: set a session attribute called
logged_out.

   On the main page do not check this attribute, but clear it.

   The user will be asked for the username and password again when the
browser receives Error 401 (SC_UNAUTHORIZED).
   Tradeoff: you have to check that everywhere in every JSP or servlet.

   Lachezar

 The problem is that with BASIC authentication the *browser* remembers the
 logon information and resends it whenever needed. Hence things like
 invalidating the session will not work, since the browser will simply log
 the user in again without their intervention.

 So far as I know, there is no solution to this problem. If you use BASIC
 authentication, the user has to shut down the browser to log off.

 If someone knows differently, I too would certainly love to hear the
answer.

 Nick



 At 03:18 PM 6/13/01 -0400, you wrote:
 is it too obvious to say:
 
 send out the pages w/ an expire time
 set the http session expiration to a desired interval to prevent use
after x
 minutes...create a logoff function that invalidates their session...
 
 is that too simplistic?
 
 regards,
 Mike Conway
 
 cybermaster wrote:
 
   %
   if (session != null) {
   session.invalidate();
   }
  
   %
  
   --peter
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Smith Jason
   Sent: Wednesday, June 13, 2001 6:38 AM
   To: Orion-Interest
   Subject: Force Logon after X minutes
  
   I am custom user-authentication.
  
   The user and groups are in a database and I am using BASIC
authentication.
  
   How can I allow users to logoff w/o them closing their browser?
  
   How can I force them to logon again after x minutes?
  
   Thxs,
  
   Jason










Context Root

2001-06-14 Thread bchoi



I'd like to ask a trival question. I hope some 
expert out there could humour me. I'm studying how orion works and I met with 
the following.

How is the context-root tag in the 
META-INF/applications.xml file used ?

I initially thought it was used to refer to the 
website url (based on the Reference Implementation's deployment) but that has 
apparently been covered by orion's own deployment settings in 
config/default-web-site.xml. Of all the applications I've deployed on orion, 
that tag has never seemed to be put into effect. 

What is it used for then 
?


RE: response.sendRedirect problem

2001-06-14 Thread Simon Kitching
Title: SV: response.sendRedirect problem



Hi 
Rafael,

I 
don't think Patrik's suggestion is the answer; you should be able to sendf
 ully-qualified URLs in redirects
(forwards, on the other hand, do need to be within the same serveri
 nstance).

I 
suggest that you try connecting to orion via telnet, to see exactly what isb
 eing sent back, ie

telnet 
your-orion-host your-orion-port (eg telnet localhost 8080)
GET 
/your-page-which-does-redirect (yes, in your case you might have to temporarily 
modify your code, 
unless 
you can figure out how to simulate a POST).

One 
problem I have struck when using sendRedirect in jsp pages is that it is 
necessary to put a return
statement after the sendRedirect. Forgetting this may cause the page to 
output other stuff to the client 
that 
prevents the redirect from happening.

Hope 
this helps,

Simon

  -Original Message-From: Patrik Andersson 
  [mailto:[EMAIL PROTECTED]]Sent: 14 June 2001 
  09:08To: Orion-InterestSubject: SV: 
  response.sendRedirect problem
  Don't write a full URL In the sendRedirect(param) call. Use an 
  URI instead. Do: 
  response.sendRedirect("/some/place/file.html"); 
  instead of: 
  response.sendRedirect("http://host.domain:port/some/place/file.html"); 
  
  -Ursprungligt meddelande- Från: Rafael Alvarez [mailto:[EMAIL PROTECTED]] 
  Skickat: den 14 juni 2001 00:44 Till: 
  Orion-Interest Ämne: response.sendRedirect 
  problem 
  Hi all, 
  this is the scenary: I have a 2 jsp pages and 2 servlet. The 
  flow is: 
  pag1.jsp --(via Post)--  --servlet1 --(via forward) 
  --  --servlet2 
  --(via response.sendRedirect) --  
  -- pag2.jsp 
  when viewed using some browsers in Mac (IE and Netscape
  alike), the redirect sends the url http://hostname/servlet/servlet2/http//hostname/servlet/servlet2 
  
  and I got a 400 Bad Request Error, no matter which url I use 
  in the response.sendRedirect (as I recall, my last was 
  "foobar/whatever") 
  On windows and unix browsers works fine. 
  Any ideas? 
  -- Best regards, Rafael 
  mailto:[EMAIL PROTECTED] 
  

___
This communication contains  information which  is confidential and
may also be privileged. It is for the exclusive use of the intended
recipient. If you are  not the intended recipient, please note that
any form of distribution, copying or  use of this  communication or
the information in it is strictly prohibited. If  you have received
this communication  in  error,  please  return  it  with  the title
"received in error"  to  [EMAIL PROTECTED]  then  delete the
email and destroy any copies of it. Please contact our Helpdesk  on
0162876 if you need assistance. Thank you for your cooperation.
___



RE: order of tags in xml configuration files

2001-06-14 Thread Yves Bossel

Hi,

I do agree with ElephantWalker: be VERY careful with the order of tags AND
attributes.

We have spent a lot of time looking for NullPointerException because of
wrong order of attributes in a data-sources.xml


Yves Bossel

 -Original Message-
 From: elephantwalker [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 13, 2001 9:13 PM
 To: Orion-Interest
 Subject: order of tags in xml configuration files
 
 
 Group,
 
 This is just a heads-up. I don't see it referred to anywhere in the
 documents, but a bad tag order in the j2ee xml configuration 
 tags or in the
 orion xml configuration tags can break an application. In 
 particular, we
 often have to create orion-*.xml files for security or clustering. The
 role-mapping tags can be easily be put out of order if you 
 are writing these
 yourself. This will break the various usermanager security 
 options, if you
 use them.
 
 The order of the tags does matter in xml, you can examine the 
 various dtd's
 for orion by going to http://www.orionserver.com/dtds/orion-web.dtd or
 orion-application.dtd, etc to download the various dtd's.   
 These dtd's can
 give good insight into what is going on behind the scenes, 
 and what is the
 proper order.
 
 You can also check your xml by starting orion with the 
 -validateXML option,
 or rewrite you xml with the -validateXML and -rewriteXML options:
 
 java -jar orion.jar -validateXML
 
 this will give you errors for each bad xml file.
 
 java -jar orion.jar -validateXML -rewriteXML
 
 this will rewrite 'well-formed' xml...this can be treacherous 
 if you have
 badly formed xml (tag closing '' missing, for example).
 
 An example of a broken orion-application.xml file follows ... 
 can anybody
 spot the error?:
 
 ?xml version=1.0?
 !DOCTYPE orion-application PUBLIC -//Evermind//DTD J2EE Application
 runtime 1.2//EN 
 http://www.orionserver.com/dtds/orion-application.dtd;
 
 orion-application deployment-version=1.5.2
   ejb-module remote=false path=myejbs.jar /
   ejb-module remote=false path=usermanager /
   web-module id=mysite path=mysite.war /
   security-role-mapping name=some-users
   group name=some-users /
   /security-role-mapping
user-manager class=com.evermind.ejb.EJBUserManager 
   property name=defaultGroups value=users /
 property name=home 
 value=com.evermind.ejb.EJBUser /
 /user-manager
   persistence path=persistence /
   principals path=principals.xml /
   log
   file path=application.log /
   /log
   namespace-access
   read-access
   namespace-resource root=
   security-role-mapping 
 name=lt;jndi-user-rolegt;
   group name=administrators /
   /security-role-mapping
   /namespace-resource
   /read-access
   write-access
   namespace-resource root=
   security-role-mapping 
 name=lt;jndi-user-rolegt;
   group name=administrators /
   /security-role-mapping
   /namespace-resource
   /write-access
   /namespace-access
 /orion-application
 
 Its the user-manager tag. It must go after the principals 
 tag, or this apps
 security won't work! Here is the element definition for
 orion-application.dtd:
 
 !ELEMENT orion-application
 (ejb-module*,web-module*,client-module*,security-role-mapping*,
 persistence?, library*, principals?, mail-session*, 
 user-manager?, log?,
 data-sources?, namespace-access?)
 
 
 
 the elephantwalker
 
 
 
 
 




Re: Counting CMP entities

2001-06-14 Thread Russ White



That would work fine but would be very 
expensive.

I would create a getCount() method and have that 
method do a simple JDBC call and return the count. This way the container does 
not have the added overhead of creating/marshalling the collection.


  - Original Message - 
  From: 
  elephantwalker 
  To: Orion-Interest 
  Sent: Wednesday, June 13, 2001 6:56 
  PM
  Subject: RE: Counting CMP entities
  
  Sergei,
  
  Doa findAll() ,you get a collection. Then do a 
  result.size(), that should do it.
  
  Regards,
  
  the 
  elephantwalker
  
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Sergei 
BatiukSent: Tuesday, June 13, 2000 3:25 PMTo: 
Orion-InterestSubject: Counting CMP entities
Is it possible to count the number of 
records in a table with a CMP?

WBR,
Sergei


No Subject

2001-06-14 Thread Sonny Satan

Hello everyone,
Where EJB and CMP entities.
I know only plain Servlets and Java.

Thanks

--
obtene tu webmail gratuito en:
http://www.yocreo.com





Re: response.sendRedirect problem

2001-06-14 Thread john_haasbeek



The path you provide to response.sendRedirect should be run through
response.encodeRedirectURL first.  This may help solve the problem because it
will generate an absolute, fully qualified URL.

John H.




Rafael Alvarez [EMAIL PROTECTED]@orionserver.com on 06/13/2001 05:43:35 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest [EMAIL PROTECTED]
cc:

Subject:  response.sendRedirect problem


Hi all,

this is the scenary: I have a 2 jsp pages and 2 servlet. The flow is:

pag1.jsp --(via Post)--
  --servlet1 --(via forward) --
  --servlet2 --(via response.sendRedirect) --
  -- pag2.jsp

when viewed using some browsers in Mac (IE and Netscape alike), the
redirect sends the url
http://hostname/servlet/servlet2/http//hostname/servlet/servlet2

and I got a 400 Bad Request Error, no matter which url I use in the
response.sendRedirect (as I recall, my last was foobar/whatever)


On windows and unix browsers works fine.

Any ideas?

--
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]










Re: Counting CMP entities

2001-06-14 Thread Sergei Batiuk



Dear elephatwalker,

It looks like a big perfomance hit for both 
database and container to count entities in such a way. Another decision is to 
talk directly to db, which is also notgood.

Browsing EJB 2.0 documentation, I found out 
that there is an ejbSelect() method that allows to perform queries that return 
results of arbitrary types. However, I could not find any good examples showing 
how to use it.

WBR,
Sergei

  - Original Message - 
  From: 
  elephantwalker 
  To: Orion-Interest 
  Sent: Thursday, June 14, 2001 1:56 
  AM
  Subject: RE: Counting CMP entities
  
  Sergei,
  
  Doa findAll() ,you get a collection. Then do a 
  result.size(), that should do it.
  
  Regards,
  
  the 
  elephantwalker
  
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On 
Behalf Of Sergei BatiukSent: Tuesday, June 13, 2000 3:25 
PMTo: Orion-InterestSubject: Counting CMP 
entities
Is it possible to count the number of 
records in a table with a CMP?

WBR,
Sergei


Orion 1.5.2

2001-06-14 Thread Darren Mosley

Hi

Ignore my mails about clustering - its all working dandy now.


I've been using Orion 1.3.8 with my web-app (using a stateless session
bean) and its been ok for quite a while.  But when i upgraded (using
autupdate) to 1.5.2 my EJB didnt work anymore.  Anyone had problems? I
tried it on another dev server i have and the same thing happened.

Cheers

Darren




debug jsp pages and where is the source

2001-06-14 Thread Wendell Nichols


When I access a jsp page which uses a tag library I get an error:


500 Internal Server Error

Error parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15

Bean type 'String' not found



I suspect that this is a problem creating the java file from the jsp page
related to the tag extra info class... At any rate I can't find the
source or class files that Orion generates from jsp pages so it's impossible
to proceed. Does anyone know how to make Orion place java and class
files for jsp pages somewhere where they can be viewed and debugged?
I see jsp cache files which are probably some sort of java archive
internal to Orion, but these don't help me as I can't open them...
Incidentally the jsp line that produced the above error looks like:
ects:eCTSTaglet name="BOOKLIST" >
The taglib entry for eCTSTaglet:
 tag>
 name>eCTSTaglet/name>
 tagclass>com.Amdahl.eCTS20.ects2taglet/tagclass>
 teiclass>com.Amdahl.eCTS20.ects2tagletTEI/teiclass>
 bodycontent>JSP/bodycontent>
 info>
 Run a named taglet.
 /info>
 attribute>
 name>name/name>
 required>true/required>
 /attribute>
 attribute>
 name>resultString/name>
 required>false/required>
 /attribute>
 attribute>
 name>userdata/name>
 required>false/required>
 /attribute>
 /tag>
Its TEI class :

 public VariableInfo[] getVariableInfo(TagData data) {
 return new VariableInfo []
 {
 new
VariableInfo("eCTSResult",

"String",

true,

VariableInfo.AT_BEGIN),
 new
VariableInfo("EndMsg",

"String",

true,

VariableInfo.AT_BEGIN),
 new
VariableInfo("ReturnMsg",

"String",

true,

VariableInfo.AT_BEGIN)
 };
 }
Any help would be appreciated..
Wendell Nichols
Amdahl Software Ltd.
and
Fujitsu Apserv.




Re: debug jsp pages and where is the source

2001-06-14 Thread Wendell Nichols


Well I made the jsp page work by explicitly importing "java.lang.String",
as opposed to "java.lang.*" as I had done for other servers. Because
this shouldn't bother other servers I'm ok with it.
I still need to have access to the jsp.java files for debugging purposes
before Orion will be an acceptable server for me...
Wendell Nichols
Amdahl Software Ltd.
Fujitsu Appserv.
Wendell Nichols wrote:
When I access a jsp page which uses a tag library
I get an error:


500 Internal Server Error

Error parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15

Bean type 'String' not found



I suspect that this is a problem creating the java file from the jsp page
related to the tag extra info class... At any rate I can't find the
source or class files that Orion generates from jsp pages so it's impossible
to proceed. Does anyone know how to make Orion place java and class
files for jsp pages somewhere where they can be viewed and debugged?
I see jsp cache files which are probably some sort of java archive
internal to Orion, but these don't help me as I can't open them...
Incidentally the jsp line that produced the above error looks like:
ects:eCTSTaglet name="BOOKLIST" >
The taglib entry for eCTSTaglet:
 tag>
 name>eCTSTaglet/name>
 tagclass>com.Amdahl.eCTS20.ects2taglet/tagclass>
 teiclass>com.Amdahl.eCTS20.ects2tagletTEI/teiclass>
 bodycontent>JSP/bodycontent>
 info>
 Run a named taglet.
 /info>
 attribute>
 name>name/name>
 required>true/required>
 /attribute>
 attribute>
 name>resultString/name>
 required>false/required>
 /attribute>
 attribute>
 name>userdata/name>
 required>false/required>
 /attribute>
 /tag>
Its TEI class :

 public VariableInfo[] getVariableInfo(TagData data) {
 return new VariableInfo []
 {
 new
VariableInfo("eCTSResult",

"String",

true,

VariableInfo.AT_BEGIN),
 new
VariableInfo("EndMsg",

"String",

true,

VariableInfo.AT_BEGIN),
 new
VariableInfo("ReturnMsg",

"String",

true,

VariableInfo.AT_BEGIN)
 };
 }
Any help would be appreciated..
Wendell Nichols
Amdahl Software Ltd.
and
Fujitsu Apserv.





Re: Force Logon after X minutes

2001-06-14 Thread Joshua Goodall


Returning a 401 HTTP response to the user should be sufficient to force
current IE and Netscape browsers to re-request user credentials. However I
have noticed that many versions (including IE5.5) will cache the password
thus allowing the user to simply hit enter to re-authenticate.

It is impossible to be certain, on the server-side, that a password is
coming from the fingers of a user and not from the cache of a browser.
Unless you use one-time-passwords, S/KEY etc

As a result, a common solution has become to temporarily redirect to a
login servlet which remembers the requested page (or just shoves it in a
hidden input tag, but storing in the session seems cleaner) and forwards
the user upon correct authentication. At least then you're forcing them
through a form. This behaviour preserves bookmarking, but may break a POST
submission if the user spends ages filling in the original post (this
could be finessed).

Unfortunately I see a general trend towards browsers remembering form
passwords. Complain to your browser vendor (ha!). If you're really still
concerned, implement S/KEY and issue hardware to your users. Or use certs.

I'm curious - has anyone done this already? A usermanager with S/KEY
support?

J

On Wed, 13 Jun 2001, Nick Newman wrote:

 The problem is that with BASIC authentication the *browser* remembers the
 logon information and resends it whenever needed. Hence things like
 invalidating the session will not work, since the browser will simply log
 the user in again without their intervention.

 So far as I know, there is no solution to this problem. If you use BASIC
 authentication, the user has to shut down the browser to log off.

 If someone knows differently, I too would certainly love to hear the answer.

 Nick



 At 03:18 PM 6/13/01 -0400, you wrote:
 is it too obvious to say:
 
 send out the pages w/ an expire time
 set the http session expiration to a desired interval to prevent use after x
 minutes...create a logoff function that invalidates their session...
 
 is that too simplistic?
 
 regards,
 Mike Conway
 
 cybermaster wrote:
 
   %
   if (session != null) {
   session.invalidate();
   }
  
   %
  
   --peter
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Smith Jason
   Sent: Wednesday, June 13, 2001 6:38 AM
   To: Orion-Interest
   Subject: Force Logon after X minutes
  
   I am custom user-authentication.
  
   The user and groups are in a database and I am using BASIC authentication.
  
   How can I allow users to logoff w/o them closing their browser?
  
   How can I force them to logon again after x minutes?
  
   Thxs,
  
   Jason







Re: debug jsp pages and where is the source

2001-06-14 Thread Wendell Nichols


Oops, I got had by a deployment thing, (orion didn't recompile the jsp
file when the TEI class changed...). The thing that actually fixed
the jsp compile problem was changeing the tei class from
 new VariableInfo("eCTSResult",

"String",

true,

VariableInfo.NESTED),
to
new VariableInfo("eCTSResult",

"java.lang.String",

true,

VariableInfo.NESTED),
The import didn't have anything to do with it. :(
I've also figured out how to get access to the jsp source files:
In your config/global-web-application.xml file there is an orion-web-app>
node. Add the property:
development="true" there, and to any other web-xml files in your applicatio-deployments
tree as necessary. This will cause orion to keep copies of the jsp.java
files in your persistence directory tree, however it will name them wrong
:(
My debugger looks for a source file of the same name of the class where
the jvm is breakstopped so it necessary to rename the source files so that
they conform to the name of the class within so that the ide will find
them, (in this case NetBeans). If you do that you can actually step
through the code.
All tHis being said, there is still one catch: Even with development
mode turned on Orion is compiling the jsp.java files without the "-g" debugging
switch so you don't have access to all the variable info. Outside
of using an external compiler for jsp's I don't see how to switch debugging
on...
If I find out I'll post it here :=)
WCN
Wendell Nichols wrote:
Well I made the jsp page work by explicitly importing
"java.lang.String", as opposed to "java.lang.*" as I had done for other
servers. Because this shouldn't bother other servers I'm ok with
it.
I still need to have access to the jsp.java files for debugging purposes
before Orion will be an acceptable server for me...
Wendell Nichols
Amdahl Software Ltd.
Fujitsu Appserv.
Wendell Nichols wrote:
When I access a jsp page which uses a tag library
I get an error:


500 Internal Server Error

Error parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15

Bean type 'String' not found



I suspect that this is a problem creating the java file from the jsp page
related to the tag extra info class... At any rate I can't find the
source or class files that Orion generates from jsp pages so it's impossible
to proceed. Does anyone know how to make Orion place java and class
files for jsp pages somewhere where they can be viewed and debugged?
I see jsp cache files which are probably some sort of java archive
internal to Orion, but these don't help me as I can't open them...
Incidentally the jsp line that produced the above error looks like:
ects:eCTSTaglet name="BOOKLIST" >
The taglib entry for eCTSTaglet:
 tag>
 name>eCTSTaglet/name>
 tagclass>com.Amdahl.eCTS20.ects2taglet/tagclass>
 teiclass>com.Amdahl.eCTS20.ects2tagletTEI/teiclass>
 bodycontent>JSP/bodycontent>
 info>
 Run a named taglet.
 /info>
 attribute>
 name>name/name>
 required>true/required>
 /attribute>
 attribute>
 name>resultString/name>
 required>false/required>
 /attribute>
 attribute>
 name>userdata/name>
 required>false/required>
 /attribute>
 /tag>
Its TEI class :

 public VariableInfo[] getVariableInfo(TagData data) {
 return new VariableInfo []
 {
 new
VariableInfo("eCTSResult",

"String",

true,

VariableInfo.AT_BEGIN),
 new
VariableInfo("EndMsg",

"String",

true,

VariableInfo.AT_BEGIN),
 new
VariableInfo("ReturnMsg",

"String",

true,

VariableInfo.AT_BEGIN)
 };
 }
Any help would be appreciated..
Wendell Nichols
Amdahl Software Ltd.
and
Fujitsu Apserv.






RE: Counting CMP entities

2001-06-14 Thread elephantwalker



Sergei,

I ran 
into this problem once before...sorry about the performance, I didn't know how 
big your beans were.

What I 
did was create an entity bean which was just the list of pk's for the other 
bean...I mean that's all. Then call the list, findByPK(1), and return the list 
of pk's from directly in the enitity bean. Although you had one more bean, it 
was only one more, not n more. This will fly. Each time you create a new entity 
bean (the big bean), do a business method for the lite bean, addOtherPK(xxx). 
Then when you need the list of pk's, or the number, have a business method, 
getMyPKS(), and this will return a collection of only strings or integers or 
bigs or whatever.

I used 
this stratagy with a chemical component list. It was important to list the 
molecular weight, name and boiling point on the web, but on the enterprise tier, 
we needed to know individual properties for each component (critical properties, 
vapor pressure curves, you name it). Using a find on the heavy bean was TAXING 
our server. We created another bean, whose only purpose was to keep the mw, name 
and bp as a LIST. 

This 
really speeded things up.

Hope 
this helps.

Regards,

the 
elephantwalker


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Sergei 
  BatiukSent: Wednesday, June 14, 2000 7:08 AMTo: 
  Orion-InterestSubject: Re: Counting CMP 
  entities
  Dear elephatwalker,
  
  It looks like a big perfomance hit for both 
  database and container to count entities in such a way. Another decision is to 
  talk directly to db, which is also notgood.
  
  Browsing EJB 2.0 documentation, I found out 
  that there is an ejbSelect() method that allows to perform queries that return 
  results of arbitrary types. However, I could not find any good examples 
  showing how to use it.
  
  WBR,
  Sergei
  
- Original Message - 
From: 
elephantwalker 
To: Orion-Interest 
Sent: Thursday, June 14, 2001 1:56 
AM
Subject: RE: Counting CMP 
entities

Sergei,

Doa findAll() ,you get a collection. Then do a 
result.size(), that should do it.

Regards,

the elephantwalker


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On 
  Behalf Of Sergei BatiukSent: Tuesday, June 13, 2000 3:25 
  PMTo: Orion-InterestSubject: Counting CMP 
  entities
  Is it possible to count the number of 
  records in a table with a CMP?
  
  WBR,
  Sergei


Orion can't find Cloudscape database

2001-06-14 Thread Lou Farho



How do I tell Orion 
where to find my Cloudscape database?
Here is what I have 
for the data source:
data-sourceclass="com.evermind.sql.DriverManagerDataSource"name="Cloudscape"location="jdbc/CloudscapeCoreDS"xa-location="jdbc/xa/CloudscapeXADS"ejb-location="jdbc/myDS"connection-driver="COM.cloudscape.core.JDBCDriver"username=""password=""url="jdbc:cloudscape:myDB"inactivity-timeout="30"/


Lou Farho
Certes Solutions, Inc.
2485 W MAIN ST
SUITE 205
Littleton, CO 80120
303.798.8079


BEGIN:VCARD
VERSION:2.1
N:Farho;Louis
FN:Louis Farho
ORG:Certes Solutions
TITLE:Consultant
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;303.798.8079;2485 W Main St.=0D=0ASuite 205;Littleton;CO;80120
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:303.798.8079=0D=0A2485 W Main St.=0D=0ASuite 205=0D=0ALittleton, CO 80120
URL:
URL:http://certes-solutions.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010611T170823Z
END:VCARD



Undeliverable:

2001-06-14 Thread Mail Delivery Subsystem

Important information!

This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.

Best regards
Telia Internet





RE: debug jsp pages and where is the source

2001-06-14 Thread Michael A Third



You 
have to use the fully qualified class name, ie java.lang.String for this to 
work.

Michael

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Wendell 
  NicholsSent: Thursday, June 14, 2001 10:59 AMTo: 
  Orion-InterestCc: [EMAIL PROTECTED]Subject: debug jsp pages 
  and where is the sourceWhen I access a jsp page which 
  uses a tag library I get an error:  
  500 Internal Server Error

Error parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15

Bean type 'String' not found

I suspect that this is a problem creating the java file 
  from the jsp page related to the tag extra info class... At any rate I 
  can't find the source or class files that Orion generates from jsp pages so 
  it's impossible to proceed. Does anyone know how to make Orion place 
  java and class files for jsp pages somewhere where they can be viewed and 
  debugged? I see jsp cache files which are probably some sort of java 
  archive internal to Orion, but these don't help me as I can't open them... 
  Incidentally the jsp line that produced the above error looks like: 
  ects:eCTSTaglet name="BOOKLIST"  
  The taglib entry for eCTSTaglet:  tag 
   nameeCTSTaglet/name 
   
  tagclasscom.Amdahl.eCTS20.ects2taglet/tagclass 
   
  teiclasscom.Amdahl.eCTS20.ects2tagletTEI/teiclass 
   
  bodycontentJSP/bodycontent 
   info 
   Run a named taglet. 
   /info  
  attribute  
  namename/name 
   
  requiredtrue/required  
  /attribute  attribute 
   
  nameresultString/name 
   
  requiredfalse/required  
  /attribute  attribute 
   
  nameuserdata/name 
   
  requiredfalse/required  
  /attribute  /tag 
  Its TEI class :  
   public VariableInfo[] getVariableInfo(TagData data) { 
   return new VariableInfo [] 
   { 
   new 
  VariableInfo("eCTSResult", 
   
  "String", 
   
  true, 
   
  VariableInfo.AT_BEGIN), 
   new 
  VariableInfo("EndMsg", 
   
  "String", 
   
  true, 
   
  VariableInfo.AT_BEGIN), 
   new 
  VariableInfo("ReturnMsg", 
   
  "String", 
   
  true, 
   
  VariableInfo.AT_BEGIN)  
  };  } 
  Any help would be appreciated.. 
  Wendell Nichols Amdahl Software Ltd. and Fujitsu Apserv. 



Undeliverable:

2001-06-14 Thread Mail Delivery Subsystem

Important information!

This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.

Best regards
Telia Internet





groups and usermanager

2001-06-14 Thread Lawrence Fry

Has anybody used more than one group outside of the defaultGroups for a
usermanager?

I have found that if you use EJBUserManager, and use more than one group in
the EJBUser_groups table..

username='somename'
value='my-admins,my-users'

Only the first group in the list is used (my-admins), the second (my-users)
group can't be used for authentication. Is there a workaround for this?

regards,

the elephantwalker





how do I unsubscribe?

2001-06-14 Thread Bryan Young


I know I sound like a total 
newbie, but at this point I just don't care. How do I unsubscribe from 
this list? I tried the web site's unsubscribe (three times over four days) 
with no luck. The initial message sent when I joined had no useful 
information. 


RE: debug jsp pages and where is the source

2001-06-14 Thread Gregory T Stickley









If you
want to see the java source files compiled from the jsp pages then add
developmenttrue/development to your web-application.xml file. There was another thread that mentions
this with additional information titled Cached code. Karl Avedal was the responder.



email signature goes here



-Original
Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Wendell Nichols
Sent: Thursday, June 14, 2001
10:20 AM
To: Orion-Interest
Subject: Re: debug jsp pages and
where is the source



Well I made
the jsp page work by explicitly importing java.lang.String, as
opposed to java.lang.* as I had done for other servers.
Because this shouldn't bother other servers I'm ok with it. 
I still need to have access to the jsp.java files for debugging purposes before
Orion will be an acceptable server for me... 

Wendell Nichols 
Amdahl Software Ltd. 
Fujitsu Appserv. 

Wendell Nichols wrote: 

When I access a jsp page which uses a tag
library I get an error: 
 

500 Internal Server ErrorError parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15Bean type 'String' not found

I suspect that this is a problem creating
the java file from the jsp page related to the tag extra info class... At
any rate I can't find the source or class files that Orion generates from jsp
pages so it's impossible to proceed. Does anyone know how to make Orion
place java and class files for jsp pages somewhere where they can be viewed and
debugged? 
I see jsp cache files which are probably some sort of java archive internal to
Orion, but these don't help me as I can't open them... 

Incidentally
the jsp line that produced the above error looks like: 

ects:eCTSTaglet name=BOOKLIST  

The taglib
entry for eCTSTaglet: 

tag 

nameeCTSTaglet/name 

tagclasscom.Amdahl.eCTS20.ects2taglet/tagclass 

teiclasscom.Amdahl.eCTS20.ects2tagletTEI/teiclass 

bodycontentJSP/bodycontent 

info 

Run a named taglet. 

/info 

attribute


namename/name 

requiredtrue/required 

/attribute


attribute


nameresultString/name 

requiredfalse/required 

/attribute


attribute


nameuserdata/name 

requiredfalse/required 

/attribute

 /tag 

Its TEI class
: 
 

 public VariableInfo[] getVariableInfo(TagData data) { 

return new VariableInfo [] 

{ 

new VariableInfo(eCTSResult, 

String, 

true, 

VariableInfo.AT_BEGIN), 

new VariableInfo(EndMsg, 

String, 

true, 

VariableInfo.AT_BEGIN), 

new VariableInfo(ReturnMsg, 

String, 

true, 

VariableInfo.AT_BEGIN) 

}; 
 } 

Any help
would be appreciated.. 

Wendell
Nichols 
Amdahl Software Ltd. 
and 
Fujitsu Apserv.








Undeliverable:

2001-06-14 Thread Mail Delivery Subsystem

Important information!

This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.

Best regards
Telia Internet





Undeliverable:

2001-06-14 Thread Mail Delivery Subsystem

Important information!

This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.

Best regards
Telia Internet





RE: Counting CMP entities

2001-06-14 Thread Jeff Schnitzer

It's not necessarily true that findAll().size() would be expensive.  A
slick container implementation would delay the actual query until the
first method call on the Collection.  If size() is the first method
called, the container could easily perform the proper select count(*).
 
The question then becomes, how slick is Orion's implementation of CMP
finders?
 
I just ran a test and discovered that Orion doesn't do this.  Oh well.
Maybe it should be logged in bugzilla as an enhancement.
 
Jeff
 

-Original Message-
From: Russ White [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 6:00 AM
To: Orion-Interest
Subject: Re: Counting CMP entities


That would work fine but would be very expensive.
 
I would create a getCount() method and have that method do a simple JDBC
call and return the count. This way the container does not have the
added overhead of creating/marshalling the collection.
 

- Original Message - 
From: elephantwalker mailto:[EMAIL PROTECTED]  
To: Orion-Interest mailto:[EMAIL PROTECTED]  
Sent: Wednesday, June 13, 2001 6:56 PM
Subject: RE: Counting CMP entities

Sergei,
 
Do a findAll() ,you get a collection. Then do a result.size(), that
should do it.
 
Regards,
 
the elephantwalker
 

-Original Message-
From: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sergei Batiuk
Sent: Tuesday, June 13, 2000 3:25 PM
To: Orion-Interest
Subject: Counting CMP entities


Is it possible to count the number of records in a table with a CMP?
 
WBR,
Sergei





RE: Orion 1.5.2

2001-06-14 Thread Eduardo Estefano

I had some problems after upgrading to 1.5.2. The app told me it upgraded
but it didn't. I wiped out the directory, installed orion fresh again
(1.4.5), did the upgrade again and it all worked fine.

Perhaps I had some file locked when I did the update, who knows.

 -Original Message-
From:   Darren Mosley [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, June 14, 2001 7:31 AM
To: Orion-Interest
Subject:Orion 1.5.2

Hi

Ignore my mails about clustering - its all working dandy now.


I've been using Orion 1.3.8 with my web-app (using a stateless session
bean) and its been ok for quite a while.  But when i upgraded (using
autupdate) to 1.5.2 my EJB didnt work anymore.  Anyone had problems? I
tried it on another dev server i have and the same thing happened.

Cheers

Darren




Undeliverable:

2001-06-14 Thread Mail Delivery Subsystem

Important information!

This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.

Best regards
Telia Internet





Re: debug jsp pages and where is the source

2001-06-14 Thread Scot Weber

Wendell,

orion-web-app
jsp-cache-directory=./persistence
servlet-webdir=/servlet
development=false-- Change this to true
persistence-path=./persistence/state.ser


Then . . .

Assuming all things are equal and you have a default web app called
'devel-default-web-app'
bound to the server you're working with, the persistence (and
subsequently the .java files
for the .jsp's) will be in the path:

/u/orion/application-deployments/default/devel-default-web-app/persistence

http://www.mydomain.com/index.jsp

will produce the files

/u/orion/application-deployments/default/devel-default-web-app/persistence/index.jsp.java
/u/orion/application-deployments/default/devel-default-web-app/persistence/index.jsp.jspCache

peace - scot


Wendell Nichols wrote:
 
 Well I made the jsp page work by explicitly importing
 java.lang.String, as opposed to java.lang.* as I had done for
 other servers.  Because this shouldn't bother other servers I'm ok
 with it.
 I still need to have access to the jsp.java files for debugging
 purposes before Orion will be an acceptable server for me...

... snip ...

 
  Any help would be appreciated..
 
  Wendell Nichols
  Amdahl Software Ltd.
  and
  Fujitsu Apserv.

-- 

  scot weber - [EMAIL PROTECTED]
  -
  Given a choice between a folly and a sacrament, one should
  always choose the folly -- because we know a sacrament
  will not bring us closer to God and there's always a chance
  that a folly will. - Erasmus

  The only man who never makes a mistake is the man who
  never does anything. - Theodore Roosevelt.




Problems with bidirectional CMR

2001-06-14 Thread Harris Simon

I am trying to get a bi-directional container managed relationship working
in Orion 1.5.2 but it keeps creating an intermediate table. Is there anyway
to stop this? There is no need for the extra table.

Here is my example:

Change[1]-[*]Objection

create table change (
change_id integer primary key
)

create table objection (
objection_id integer primary key,
change_id integer
)

ejb-relation
ejb-relation-nameChange-Objection/ejb-relation-name
ejb-relationship-role

ejb-relationship-role-namechange-has-objections/ejb-relationship-role-nam
e
multiplicityOne/multiplicity
role-source
ejb-nameChange/ejb-name
/role-source
cmr-field
cmr-field-nameobjections/cmr-field-name
cmr-field-typejava.util.Set/cmr-field-type
/cmr-field
/ejb-relationship-role
ejb-relationship-role

ejb-relationship-role-nameobjection-belongsto-change/ejb-relationship-rol
e-name
multiplicityMany/multiplicity
cascade-delete/
role-source
ejb-nameObjection/ejb-name
/role-source
cmr-field
cmr-field-namechange/cmr-field-name
/cmr-field
/ejb-relationship-role
/ejb-relation


**
This e-mail is confidential and for the sole use of the intended 
recipient(s).  If you are not the intended recipient, you are not 
authorised to disclose, use, distribute or in any other way make 
use of the information contained in it, and such activities are 
prohibited.  If you have received this e-mail in error, please 
notify the sender by reply e-mail, delete the document and destroy 
all copies of the original message.
**




Undeliverable:

2001-06-14 Thread Mail Delivery Subsystem

Important information!

This e-mail has not been delivered to [EMAIL PROTECTED]
The receiver's mailbox is full. When the mailbox has been emptied you will
be able to resend this e-mail.

Best regards
Telia Internet