Hello Juan,
Tuesday, March 19, 2002, 5:11:31 AM, you wrote:
JF Hi people.
JF When talking about secure applications, you have recommended to set the
JF shared attribute to true. In that way, session is shared between the
JF secure and non-secure parts of an application.
JF My scenario is
Hello mittal,
Thursday, March 14, 2002, 12:48:14 AM, you wrote:
msajcj Hi
msajcj Please let me know if restarting Orion necessary if I change a class when
msajcj the server is running.
msajcj I do not want to run my server in development mode
msajcj regards
msajcj Sunil
Hi!
The answer
Hello Fredrik,
Congrats! You have encounter an error that is not your's nor orion's.
The problems is in the way IE4.5 for Mac parse the http header.
I posted and issue at www.elephantwalker.com. Check it out at
http://www.elephantwalker.com/searchresult?id=162
(Note: elephantwalker registration
Hi!
If you want to share info between Http and Https session , you have
two options:
i) Use a central repository (like JNDI)
ii) Use the same web-app for http and https service, and set
shared=true in the deployment (check out the web-site.xml
documentation). This way the HttpSession object,
Hello Brian,
are you setting the exclusive-write-access to false for that bean?
There is a known bug (bug #532 in bugzilla) about findByPrimaryKey not
throwing an ObjectNotFoundException when it should if
exclusive-write-access is set to false. It's reported from 1.4.5 and
it hasn't be fixed.
Hello Denis,
Try doing this:
session = request.getSession(true);
System.out.println(session = request.getSession(false);\t +
session.hashCode());
System.out.println(session = + session);
session.invalidate();
System.out.println(session.invalidate();\t + session.hashCode());
Hello Jishan,
There is an option (shared=true as stated in other posting) to share
session between different instances of the SAME application. The
keyword is SAME. If you use different applications for each of your
normal site and your secure site then that solution won't work.
What you can do
Hello Marcello,
Yes, it can be done. You need to modify the file global-web-application.xml
in your config directory.There is a servlet used for serving pages
using a CGI interpreter (like php). Below is an example of the servlet
definition I use(change php4 with the path to the php exec)
Hello Kevin,
I did a stress-test some time ago. It was a JSP page that made a DB
Query joining 2 tables and used a findByAll method on a entity bean.
Both tables where populated with 5000 items.
I ran Jtest with 2 groups of 10 threads, spacing each http query from the same
thread by 300mls.
Hello Alex,
Not a long time ago I ran with that problem using orion 1.4.5. It was
at the university, and we were using a central DB server for all the
courses. The problem was that I was using a lot of EJB (25+) in an
implementation of TPC-W benchmark (a e-commerce like app), but the DBA
The EJB specs says that if you declare a finder method on the home
interface, the container will generate the apropiate finder. If you
need a custom finder that you cannot express using pure and basic SQL
(like your case) use a (stateles) session bean to declare the finder.
--
Best regards,
OK. Reposting
Here is a clue:
--
Servlet 2.2 Specs:
For a servlet not implementing SingleThreadModel and not hosted in a distributed
environment (the default), the servlet container must use only one instance
per servlet declaration.
A servlet declaration is
Hello Joseph,
As stated in an obscure mail long time ago (I coundn't find it in my
folder ;) ) you can share sessions only between multiple instances of
the same app, no between apps.
If you need a central repository for info that needs to be accessed by
multiple apps, JNDI is a good idea.
Hello Christian,
The ejb-name tag in method must match the ejb-name in entity
or session. Also, specify a trans-attribute.
Try putting this in your ejb-jar.xml:
container-transaction
method
ejb-nameMyLogEnt/ejb-name
method-name*/method-name
trans-attributeRequired/trans-attribute
Hello Kemp,
As you're using Oracle, think about exploring the
Intermedia features.
Hope this help.
Friday, June 29, 2001, 6:57:12 PM, you wrote:
KR I am aiding a department that is using a two tier
KR application design, with a JSP engine and Oracle, to
KR build a dynamic web site. It's easy
Hello Oliver,
Try deleting the orion-ejb.jar.xml in the application-deployments dir.
this will force orion to copy it again.
Monday, June 25, 2001, 6:55:33 AM, you wrote:
OS Hi!
OS Until now I hav been quite happy developing with oc4j but this is
OS becoming frustrating:
OS according to
Hello Smith,
Create a class that implements HttpSessionBindingListener.
In the valueUnbound(HttpSessionBindingEvent event) put whatever code
you need to logout .
When you create the session, store an object of that class, so when
the session expires the user logout.
--
Best regards,
Rafael
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
I'm posting this as a favor to Jay Amstrong
Karl,
Thanks for responding. This is already a long message, so I'll try to
keep it short.
I've been wrong before and, if that's the case now, then please forgive
me. Lest anyone think I'm out to bash Orion, please refer to my vigorous
and lengthy
Hello Mustafa,
You need to put the JNDI location of the Datasource. Check out
data-sources.xml.html in the docs. This locations does NOT support
connection pooling and transactions.
Tuesday, May 29, 2001, 3:22:36 PM, you wrote:
MC I am trying to deploy and run the ATM example using
MC Oracle as
Hello Mikko,
I'm using 1.4.5 and everything is working fine. Perhaps is a problem
in deployment files?
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello Ismael,
Orion doesn't serialize the session unless explicity told to do so.
(We got problems with our shopping cart because of that)
Why you think this is affecting the performance? It's done only at
server shutdown.
(I'm working with 1.4.5 too)
Thursday, May 03, 2001, 3:40:13 AM, you
Win NT 4.0 SP 5 on development, staging and production
At 15:53 03.05.2001 , you wrote:
Hi all,
For interests sake, what OS is everyone on the list running orion on?
Windows 2000?
WinNT
Linux?
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello!
While using the well-known util:iterate tag I got this error:
Attribute of type 'java.util.Collection' must be a request time attribute
The code that reproduce it:
My.jsp
%@ taglib uri=mtags prefix=mtags %
mtags:iterate id=retraso
type=java.util.Properties
Hello James,
Did you modified the orion-ejb-jar.xml in the $(APPDEPLOY)/$(EJBMODULE)
directory or in the $(APPHOME)/$(EJBMODULE)/orion directory
($(APPHOME)/$(EJBMODULE)/META-INF in 1.4.8)? In the later case you need
to delete the one in $(APPDEPLOY)/$(EJBMODULE) to force a complete
re-deploy.
Hello Mike,
Try using this orion-web.xml.
The persistence-path is not specified by default, so you need to
declare it. This is the place where sessions are persisted across
server restarts.
orion-web-app
deployment-version=1.4.5
persistence-path=session
/orion-web-app
Hello Mike,
Did you follow the instructions in the http-clustering how to
document?
And, as far as I can understant (haven't tried clustering yet) you
need to explicity pass the jsessionid in the url.
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello Adam,
This is a VERY dirty trick. Make orion use the SLOWEST java compiler you
can find, and force a re-deploy of the EJB module. All the wrapper's java
files will appear during deployment in the orion home dir. If you're
fast enough you can copy them before they disappear.
Hope this
Hello doggie,
I can't find the jsp:declaration tag anywhere in the spec, but it
sounds like the %! % directive.
Try using:
%!
private static final String[] toStringArray(int[] ori_array){
String [] str_array = new String[ori_array.length];
for (int i = 0; i
Orion autoreload features have worked very well al the time, either in
development, integration and production enviroments, EXCEPT when we
got a problem of date synchronization between our integration and
production servers (our integration server have a date greater that
the production one).
?
--
Best regards,
Rafael Alvarez [EMAIL PROTECTED]
mtag.jar
Ok. that resolve it :)
I made two mistakes:
1) This mail was intended for Karl, but I misclicked in my email
manager.
2) The version I sent is not a working one. I just realized that I
lost the last version in the last crash of our CVS... Mea culpa not
having a backup.
Anyway, here is the
Isn't it wonderful the opensource world? :)
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello Jeremy,
Yes, the ORMI port in orion is 23791 by default, and you can configure
it in the config/rmi.xml file.
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
.*;
/**
*
* @author Rafael Alvarez
* @version 1.1
*/
public class ControlSesion implements HttpSessionBindingListener,java.io.Serializable{
ShoppingCart cart; // This hold the reference to the SB, becuse
// you can't access to the session to retrieve
Hello Mike,
Thursday, March 15, 2001, 7:31:23 PM, you wrote:
MCB Can't you just make the SB a HttpSessionBindingListener and implement
MCB valueUnbound() ?
Nope. For that to work you need your Remote interface to extend
HttpSessionBindingListener, but it already extends EJBObject.
There is a
Hello Mike,
I have to thank you. I wasn't sure of that, so I check it. I write
something like:
public interface test extends java.io.Serializable, javax.ejb.EJBObject {
void dummy();
}
And the compiler throwed and error (fastjavac from Forte CE 2.0). So I stated that it
couldn't be
Hello Kemp,
Try putting Parser.jar in the orion directory, or in the WEB-INF/lib.
It seems that Orion doesn't use the CLASSPATH, because I need to put
the jar files in the right place for them to work.
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello Jeff,
You can do two things:
.- In the EJBCreate change the user name to Upper or Lower case when
setting it. Also in the PK class change it to Upper or Lower case.
.- Override the PK class equal() method, to compare the username in
Upper(Lower)case.
Thursday, March 08, 2001, 7:30:39 PM,
Hello Kevin,
Friday, March 09, 2001, 1:42:59 PM, you wrote:
DK Secondly, why is it when xerces.jar is in the Orion folder, Orion
DK does NOT use the version I have in the WEB-INF/lib folder? I thought (sorry
DK if I don't recall what the specs say on this) that libraries in the
DK WEB-INF/lib
Hello Geoff,
Check that there is no other process using the port you specified (or
443 by default for SSL). Also, if you're running a WinNT or Win2k
machine stop the IIS web sites. By some mystical reason it seems to
use the port 443 even wheren there is no certificate installed.
--
Best
Hello Greg,
To prevent the code duplication use the same app in both sites, and
use the shared="true" flag so the ServletContext is shared over all
the instances of the apps.
Sometimes the session gets invalidate when going from secure to
non-secure. We found a workaround to that, but it's a
If you put the code at the init function, you can force the servlet to
load at startup by putting the tag
load-on-startuppriorityNumber/load-on-startup
in the servlet description in web.xml. priorityNumber defines the
order in which the servlets will be loaded at startup.
--
Best regards,
Oops, I missed it in my last post...
I got the same problem. What I did (and it worked, even as it seems
that it shouldn't) was to store a session reference in the application
context in the last non-secure page, and then retrieve it in the first
secure page. Every object that was store in the
Hello G.L.,
you need to put the following in your server.xml:
application name="cais" path="/u/build/"/
And create an application.xml file in /u/build/META-INF
?xml version="1.0"?
!DOCTYPE application
PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"
Hello Danut.
Monday, February 26, 2001, 8:14:16 PM, you wrote:
NN At 05:37 PM 2/26/01 -0600, you wrote:
A few weeks ago after I asked some questions and posted some opinion I was
sent by some guys to RFM.
Very inpolite
Well, I still have the same problems and I am asking the same question:
Hello Prabahkar,
Monday, February 26, 2001, 7:38:40 PM, you wrote:
Try using
Object hdrObj = cntx.lookup("B2BOrderHeader");
I think I remember vagely a thread in this list about java:comp/,
but that was 3000 messages ago :). Anyway, this works fine for me.
--
Best regards,
Rafael
Hello Matt,
Monday, February 26, 2001, 8:46:34 PM, you wrote:
MK web-site host="[ALL]" port="80" display-name="boris"
MK default-web-app application="boris" name="boris-web" root="/boris"
MK load-on-startup="true" /
MK access-log path="../log/default-web-access.log" /
MK
Hello Paul,
A stack trace would be useful. That way it's easier to find the
error.
Hello Luis,
Friday, February 23, 2001, 10:53:26 PM, you wrote:
LJB 1) How can I simply test a JSP?
Put it under default-web-app/web directory on a fresh unziped
orion distribution. After that, just run orion and point the browser
to http://localhost/yourjsppage.jsp
It can get a lot more
Hello Geoff,
GM If I don't use the application for some period of time and then try to hit
GM the index page, I get this error, which only restarting Orion seems to
GM fix...
GM 500 Internal Server Error
GM java.lang.ClassCastException: db.AppBean
GM at
hi Huibert,
to expire a session use the invalidate() function:
HttpSession s = request.getSession(true);
// To expire it
s.invalidate();
You can set the session timeout in the web.xml
session-config
session-timeout15/session-timeout
/session-config
Hello Vaskin,
Thursday, February 22, 2001, 3:39:33 PM, you wrote:
VK I keep getting internal server errors (HTTP 500), where do I go to debug
VK this? Which log file has this stuff? I need a stacktrace! It's not popping up on
the console, and I couldn't find it in any of the obvious .log
I have tried the java compiler that comes with Forte For Java CE 2.0
(fastjavac) and it cut the deployment time of 50 EJB (a mix of
entity and sessions) from 1 minute to 15 secs!
I'm developing under win 2k, orion 1.3.8.
Some one can test it under unix?
My 2 cents
Hello faisal,
If you use the jdbc.odbc bridge, yes.
But, why do you want to use Ms Access (just curiosity)
Wednesday, February 14, 2001, 11:55:05 PM, you wrote:
f does ms access work with Orion
f ?
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello Daniel,
Sorry for the delay in the answer.
I had the same trouble migrating a certificate from IIS to orion.
Did you generate the request to Verisign using the keystore where
you're importing it? If not, you need to request a new certificate.
Check Verisign to see how that can be done.
Hello Allen,
DataSources gives you one advantage on the client side: Security.
If you use a direct JDBC connection to a Database, your username,
password and URL have to be placed in your class. A Datasource hides
all those details, so if some one decompile your class (even JAXed
classes are not
Hello Juan,
Thursday, January 11, 2001, 3:53:41 AM, you wrote:
JLC had that problem
JLC it's a mapping problem... (oracle-schema)
JLC Strings get Mapped to varchars(size)...
JLC They get chopped at size chars...
JLC the only solution is to declare the field as java.lang.Object
JLC then
Hello Frank,
Check this article from JGuru
http://www.jguru.com/jguru/faq/view.jsp?EID=10596
Wednesday, January 10, 2001, 5:28:44 AM, you wrote:
FE Hi,
FE I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was
FE made that PHP was the better alternative as it is quicker in
Hello Michael,
Check the docs for the orion-ejb-jar.xml.
In the entry for entity beans (entity-deployment ...)
you can specify the datasource and table to be used using the
parameters data-source and table.
You can find the file in $(APP-DEPLOYMENT-DIR)/$(APP-NAME)/ejb
--
Best regards,
Hello!
ML This makes no difference. The exception is thrown, too.
ML But I found a solution: The Exception is thrown everytime after redeploying
ML my application. When I restart the server after redeploying everything is ok.
ML But I can't restart the server everytime something changes
Hello scott,
Check how many EJB are being deployed. Orion slows down startup when
it's deploying EJB, because it involves generating the java sources of the
skel and stub for the home and remote, and compiling them.
--
Best regards,
Rafaelmailto:[EMAIL PROTECTED]
Hello everybody,
After deploying a stateful session bean and restarting orion I get the
following message:
Auto-deploying ejb-jar (ejb-jar.xml had been touched since the previous deployme
nt)... Note: CarritoCompras_StatefulSessionBeanWrapper0.java uses or overrides a
deprecated API.
Hello!
This can sound a little off-topic, but is an interesting matter that
we have been discusing at work.
I'm currently working in two paralell projects. On one of them ( the
first one) we designed the tables and used JDBC, until we decided to
migrate to EJB 1.1. At that point we create one
(InitialContext.java:198)
at com.enkamino.login.deploy.DeployLogin.init(DeployLogin.java:24)
at com.enkamino.login.deploy.DeployLogin.main(DeployLogin.java:35)
Thanks in advance.
Rafael Alvarez
Hi!
Is there any error message during deploy? Orion stops the
auto-creation process if there is any SQLException.
I also found that Orion don't create tables for beans that where
already deployed, even if you drop them.
--
Best regards,
Rafaelmailto:[EMAIL
This is a test, 'cause I didn't receive a mail from this list since 8
hours ago!
This is a test, 'cause I didn't receive a mail from this list since 8
hours ago!
Hi,
This mail is useful only if you're using entity EJBs.
Because EJB is RMI on steroids (is more than that, but let's keep it
simple), if you need more that one entity to get the data you need for
the presentation layer you end up opening a lot of rmi connections,
with the overhead it implies.
Hello Reddy,
I agree with you in some points. Yes, complex OR mapping is solved in
2.0, but as you said is a draft. I won't risk put it into production
right now (we have to finish the project by Octuber 17).
About SQL, again I agree with you. I was using BMP EJB until I found
out that Orion
Hi, Any ideas why I get this when issuing the command to stop the
server? Error: javax.naming.NamingException: Lookup error:
java.io.StreamCorruptedException: Caught EOFException while reading
the stream header; nested exception is:
java.io.StreamCorruptedException: Caught
Did you set all the properties you need to access the jndi tree in
orion? You need to set these for a program outside orion access the
orion JNDI tree:
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFctory
java.naming.provider.url=ormi://host:ormi-port/domain
Fakade Pattern, I
don't have the URL rigth now).
The second issue is being solved by using a home made automated tool
that generates the required classes.
Anyway, EJB vs Servlets is a topic for a lng discusion.
-
Best Regards
Rafael Alvarez mailto:[EMAIL
73 matches
Mail list logo