Re: Showing Error Messages
Do you have development mode on in your application? - Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.comIT Consultant On Tue, 12 Mar 2002, Deniz Bocek wrote: Hi all, I have Following problem: If my jsp files or servlets has a error -sytax error or any java error- it shows only The page Could not be displayed. HTTP 500 Internal Server Error. No more than this. normally it should say for example syntax error onlie XX in aaa.jsp some think like this.. What could be the problem? or Is this normal for orion? Thanxx..
Fw: Session Managment and Cache
Hi All, I have the following problems: with orion when my application creates a session it gets the old session Id.I mean if the session expired or my program invalide it, nex created session gets the old session id. Should it be a unique?I am asking because maybe my creation procedure is wrong or Is it normal for orion? And the second lets consider my jsp or servlets imports a package for example com.aaa.bbb.util and it contains some objects.If i change my jsp or servlets no problems orion runs the last compiled version of my servlet.But if i modify a class inthe com.aaa.bbb.util package and compile it,Orion still runs the oldest version of these class.It just runs the version of server startup time.So to validate changes i have to restart orion.Is there another way to od it? Any Comments Welcome. Thanx. Deniz
timed events
This more of a regular EJB question, I suppose. I need to initiate some specific tasks and specific times in my application, since the application server aren't multithreaded(so to speak), and the usage of threads is not recommended, I cannot make a simple timer, that will initiate the appropriate procedures at a given time. How do one solve such problems in an EJB application ? Regards .
RE: Where is my stderr output?
if I understand you correctly what you need to do is check in your application.xml for the log file path=something.log / /log This will lead you to where your log file is located and if you haven't set it then simply set it by default I think most of the log files are kept in the ORION HOME\log folder John Creaner Software Development, e-Spatial Solutions, Ireland. Tel: 353 (0)1 867 5500 Fax: 353 (0)1 867 5599 Direct Tel: 353 (0)1 867 5508 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sergey Ponomarev Sent: 13 March 2002 04:44 To: Orion-Interest Subject: Where is my stderr output? Hi, I use printStackTrace() method of Exception object to print exception stack trace from my EJBs. But I cannot find the output. I cannot find traces in console nor in logs. Where are they? Orion 1.5.2 Sergey Ponomarev mailto:[EMAIL PROTECTED]
Bug?!
Updating from 1.5.2 to 1.5.4 Everything seems to work just fine except for one thing. When I use a Filter mapped to one of my servlets a strange error occures. Orion throws a java.lang.NoClassDefFoundError: javax/servlet/Config In my code I have no references to that class. And for all I know there are no such class. Shouldn't it be javax/servlet/ServletConfig instead? /Linus
Re: timed events
Perhaps via a croned java client? //Johan - Original Message - From: Casper Højstrup [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 10:20 AM Subject: timed events This more of a regular EJB question, I suppose. I need to initiate some specific tasks and specific times in my application, since the application server aren't multithreaded(so to speak), and the usage of threads is not recommended, I cannot make a simple timer, that will initiate the appropriate procedures at a given time. How do one solve such problems in an EJB application ? Regards .
R: timed events
Hi Casper, EJB are not multithreaded but a normal class *is*. Try putting the stuff in a public class TryMe extends Thread{} d. ps. if you need a scheduler the things are tougher. -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Per conto di Casper Højstrup Inviato: mercoledì 13 marzo 2002 10.21 A: Orion-Interest Oggetto: timed events This more of a regular EJB question, I suppose. I need to initiate some specific tasks and specific times in my application, since the application server aren't multithreaded(so to speak), and the usage of threads is not recommended, I cannot make a simple timer, that will initiate the appropriate procedures at a given time. How do one solve such problems in an EJB application ? Regards .
Re: Bug?!
You need to update your filter, the 1.5.2 was buit on not yet finished servet 2.3 spec while the 1.5.4 is based on the latest and finished servlet 2.3 spec. Your generic filter should now looks like this: import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse; public class GenericFilter implements javax.servlet.Filter{ private FilterConfig filterConfig; public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain) throws java.io.IOException, javax.servlet.ServletException { chain.doFilter(request, response); } public FilterConfig getFilterConfig() { return filterConfig; } public void init(FilterConfig config) { this.filterConfig = config; } public void destroy() { this.filterConfig = null; }} - Original Message - From: Linus Larsen To: Orion-Interest Sent: Wednesday, March 13, 2002 12:21 PM Subject: Bug?! Updating from 1.5.2 to 1.5.4Everything seems to work just fine except for one thing. When I use a Filter mapped to one of my servlets a strange error occures. Orion throws a java.lang.NoClassDefFoundError: javax/servlet/Config In my code I have no references to that class. And for all I know there are no such class. Shouldn't it be javax/servlet/ServletConfig instead?/Linus
Re: Bug?!
Hi Orion-Interest You just have to recompile your filter class with Orion 1.5.4 orion.jar lib. Wednesday, March 13, 2002, 2:21:54 PM, you wrote: LL Updating from 1.5.2 to 1.5.4 LL Everything seems to work just fine except for one thing. When I use a LL Filter mapped to one of my servlets a strange error occures. Orion LL throws a LL java.lang.NoClassDefFoundError: javax/servlet/Config LL In my code I have no references to that class. And for all I know there LL are no such class. Shouldn't it be javax/servlet/ServletConfig instead? LL /Linus -- Sergey G. Aslanov, CBOSS Group, Web-technologies department mailto:[EMAIL PROTECTED] tel: +7 095 7555655
Resource Adapter Assembly descriptor
Hello I'm trying to deploy a test resource adapter on the Orion server. My understand is that in addition to the standard J2EE deployment desriptor (ra.xml) I will need to write an application server spesific assembly desriptor (for JNDI binding etc). Do anybody out there know how to write such an desriptor for the Orion server ? Any help would be apreciated... Thank you. Ronny Khan [EMAIL PROTECTED] [EMAIL PROTECTED] Tlf: +47 55 20 49 91 (jobb) Tlf: +47 55 12 08 42 (Private)
RE: timed events
Hi, I use a java.util.Timer wrapped my Scheduler class to schedule tasks. I bind an instance of this Scheduler to the JNDI from one of my servlet's init() method. It works fine, use -userThreads switch to start orion if you want context lookup from the scheduled threads. HTH, Tibor -Original Message- From: daniele rizzi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 2:25 PM To: Orion-Interest Subject: R: timed events Hi Casper, EJB are not multithreaded but a normal class *is*. Try putting the stuff in a public class TryMe extends Thread{} d. ps. if you need a scheduler the things are tougher. -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Per conto di Casper Højstrup Inviato: mercoledì 13 marzo 2002 10.21 A: Orion-Interest Oggetto: timed events This more of a regular EJB question, I suppose. I need to initiate some specific tasks and specific times in my application, since the application server aren't multithreaded(so to speak), and the usage of threads is not recommended, I cannot make a simple timer, that will initiate the appropriate procedures at a given time. How do one solve such problems in an EJB application ? Regards .
RE: timed events
I have done this using the java.util.Timer class. I created a class that extends the TimerTask class, and calls the EJB. I made a singleton class that wraps the Timer class, so I can call it from the servlet layer to schedule tasks, and guarantee only one instance per VM. Thus, my EJBs aren't forking threads, so it should be OK. And the Timer instance, which controls the scheduling of the tasks, is always alive as long as my VM doesn't go down. I saved the schedule times and taskIds to the database so that they can be rescheduled when the appserver gets restarted. I created an application that reloads these jobs, and put this in client-module of orion-application.xml, so Orion would start it on startup. This works, and I haven't had any problems yet, but I'm not sure whether this is the best, or most valid approach. It feels a bit too easy to be any good. Alternatively, you can use a 3rd party job scheduler. This is free, and it has one: http://ofbiz.sourceforge.net/ http://ofbiz.sourceforge.net/core/docs/services.html I haven't had a chance to evaluate it. -Original Message- From: Johan Fredriksson [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 13:06 To: Orion-Interest Subject: Re: timed events Perhaps via a croned java client? //Johan - Original Message - From: Casper Højstrup [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 10:20 AM Subject: timed events This more of a regular EJB question, I suppose. I need to initiate some specific tasks and specific times in my application, since the application server aren't multithreaded(so to speak), and the usage of threads is not recommended, I cannot make a simple timer, that will initiate the appropriate procedures at a given time. How do one solve such problems in an EJB application ? Regards .
Using NT security
Hi all, I checked thearchives and support pages for this, didn't seem to find it. Is there any way to get Orion to usethe NT username+password of whoever is logged in, for running client apps? Currently I'm reading them from a config file, which obviously is not ideal. Also, I am using the mail-session properties to configure a JavaMail session. Thus I have the userame+password of this hardcoded into application.xml. Anyone know of a way I could use the NT logged on credentials to specify the mail.smtp.user and mail.smtp.password properties of the session? It is an Exchange server. (Probably OT, apologies if it is). Thanks, Justin
Re: [orion-interest]Using NT security
On 13/3/02 12:16 pm, Justin Crosbie [EMAIL PROTECTED] wrote: Hi all, I checked the archives and support pages for this, didn't seem to find it. Is there any way to get Orion to use the NT username+password of whoever is logged in, for running client apps? Currently I'm reading them from a config file, which obviously is not ideal. It's doable, but far from straightforward or pleasant, plus there are plenty of holes in the protocol that are undocumented. http://www.innovation.ch/java/ntlm.html will give you a start. Of course, if you choose to go native, there's probably some dll somewhere that'll handle all this for you.
RE: Using NT security
Take a look at the sample JAAS modules that you can download from Sun in conjunction with JAAS. Specifically, they include an NT module which can be used to retrieve username and group information for a running process. Note however, there is no way to retrieve a password for a logged on user, at least not included with the JAAS module. The NT API does provide functions for retrievinga user's password, but in that case the domain/NTServermust be configured to store plain-text passwords, which is something most people don't do anyway. Exchange definitely offers an alternative authentication mechanism, but that falls outside of the standard javamail SMTP interface. Andre -Original Message-From: Justin Crosbie [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 13, 2002 10:16 AMTo: Orion-InterestSubject: Using NT security Hi all, I checked thearchives and support pages for this, didn't seem to find it. Is there any way to get Orion to usethe NT username+password of whoever is logged in, for running client apps? Currently I'm reading them from a config file, which obviously is not ideal. Also, I am using the mail-session properties to configure a JavaMail session. Thus I have the userame+password of this hardcoded into application.xml. Anyone know of a way I could use the NT logged on credentials to specify the mail.smtp.user and mail.smtp.password properties of the session? It is an Exchange server. (Probably OT, apologies if it is). Thanks, Justin
Passivate problems with inheritance
Hi, People I have trouble wenn the application server (orion/jboss) passivates an entity bean that extends another, andI don't know why!! :( I have two beans, "Request" and "AccountRequest" (and another: "PrivilegeRequest") Declaration of Request: EJB: public class RequestEJB implements SessionBean {... } Remote: public interface RequestRemote extends EJBObject {... } Declaration of AccountRequest: public class AccountRequestEJB extends RequestEJB { ... } Remote: public interface AccountRequestRemote extends RequestRemote { } Can someone help me?? thanks in advance Michael Moossen ( mailto:[EMAIL PROTECTED] )Tuxpan Software ( http://www.tuxpan.cl )Los Castaños 357 / Viña del Mar / ChilePhone : +56 32 680906 (Anexo 210)
Sayisal Lotoya Para VERMEYÝN !!!
Title: C:\WINDOWS\Desktop\2freebooks.htm =DDNTERNETTE SAY= ISAL LOTO =DCCRETS=DDZ !! Say=FDsal Loto oynamak =E7o= =F0umuz i=E7in g=FCzel bir tutku. Her zaman =FEans y=FCz=FCm=FCze g=FClmese de o heyecan=FD ya= =FEamak bile g=FCzel. Ayn=FD heyecan=FD internette ya=FEamaya ne dersiniz? Hem de =DCCRETSIZ! Hem de Amerika=92da. Devir art=FDk inte= rnet devri. 7 numaray=FD bilenlere r=FCya gibi bir =F6d= =FCl var: 1 Milyon $. Ama 6 bilirseniz de 1.000 $ hemen sizin. Bana =E7=FDkmaz demeyin. =DEans=FDn=FDz=FD
Fw: Re: J2EE Security issue...
repost.. One thing we added to what Rabi is doing is as follows: We track version with each object. If the user object is already on the session then we get it off and double-check to make sure that the version on the session is the most up-to-date. If it isn't, then we refresh that object on the session with what's in the database. This way we're guaranteed to have the most-recent user information on the session. This is all done in a filter that is mapped to everything, providing post-login processing. Jeff. On Wed, 13 Mar 2002 09:25:09 -0600 Satter, Rabi [EMAIL PROTECTED] wrote: I had the same issue. We did do it as a filter. However we checked to see if the a user context object (ie object where the informaiton was stored) existed in the session. If not then checked to see if the user was logged in. If not then skip setting up the object. Works pretty good. -Original Message- From: Aaron Tavistock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 1:44 PM To: Orion-Interest Subject: J2EE Security issue... We've been using J2EE based security for some time now, its working great for us supporting several hundred users distributed across a handful of servers. Heres my issue - I have a set of things that happen on every page, a portion of which is looking for a 'new' login which then launches a series of things including doing database lookups, dropping stuff in the session, etc. Its occured to me that it would be significantly more effective if this was chained off the J2EE authentication, instead of checking on each page. I started looking into it and it looks like 1) its not part of the spec and 2) Orion has no specific implementation. The current implementation of J2EE security is so completely handled by the container that theres no way to get something in there. I then started going down the question of 'what is J2EE security except a filter?', so I could potentially chain a filter through there? It doesn't solve the problem because it still happens on each page hit. Anyone have any ideas on the best way to do 'postprocessing' when the user is authenticated? -- Jeff Hubbach Internet Developer Sun Certified Web Component Developer New Media Division ITQ Lata, L.L.C. 303-745-4763 x3114 -- Jeff Hubbach Internet Developer Sun Certified Web Component Developer New Media Division ITQ Lata, L.L.C. 303-745-4763 x3114
RE: timed events
Which is not that portable across Application Servers ;) Typical issues are JNDI lookup problems up to ClassCastExceptions. Jens | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of | [EMAIL PROTECTED] | Sent: Wednesday, March 13, 2002 5:21 PM | To: Orion-Interest | Subject: RE: timed events | | | Hi, | | I use a java.util.Timer wrapped my Scheduler class to schedule | tasks. I bind | an instance of this Scheduler to the JNDI from one of my servlet's init() | method. | | It works fine, use -userThreads switch to start orion if you want context | lookup from the scheduled threads. | | HTH, | | Tibor | | -Original Message- | From: daniele rizzi [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, March 13, 2002 2:25 PM | To: Orion-Interest | Subject: R: timed events | | | | Hi Casper, | | EJB are not multithreaded but a normal class *is*. | | Try putting the stuff in a public class TryMe extends Thread{} | | d. | | ps. if you need a scheduler the things are tougher. | | | | -Messaggio originale- | Da: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]Per conto di Casper | Højstrup | Inviato: mercoledì 13 marzo 2002 10.21 | A: Orion-Interest | Oggetto: timed events | | | | This more of a regular EJB question, I suppose. | | I need to initiate some specific tasks and specific times in my | application, | since the application server aren't multithreaded(so to speak), and the | usage of threads is not recommended, I cannot make a simple | timer, that will | initiate the appropriate procedures at a given time. | How do one solve such problems in an EJB application ? | | Regards | . |
RE: timed events
There are several solutions out there, both commercial and open source. You might wish to take a look before reinventing. tim. Which is not that portable across Application Servers ;) Typical issues are JNDI lookup problems up to ClassCastExceptions. Jens | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of | [EMAIL PROTECTED] | Sent: Wednesday, March 13, 2002 5:21 PM | To: Orion-Interest | Subject: RE: timed events | | | Hi, | | I use a java.util.Timer wrapped my Scheduler class to schedule | tasks. I bind | an instance of this Scheduler to the JNDI from one of my servlet's init() | method. | | It works fine, use -userThreads switch to start orion if you want context | lookup from the scheduled threads. | | HTH, | | Tibor | | -Original Message- | From: daniele rizzi [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, March 13, 2002 2:25 PM | To: Orion-Interest | Subject: R: timed events | | | | Hi Casper, | | EJB are not multithreaded but a normal class *is*. | | Try putting the stuff in a public class TryMe extends Thread{} | | d. | | ps. if you need a scheduler the things are tougher. | | | | -Messaggio originale- | Da: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]Per conto di Casper | Højstrup | Inviato: mercoledì 13 marzo 2002 10.21 | A: Orion-Interest | Oggetto: timed events | | | | This more of a regular EJB question, I suppose. | | I need to initiate some specific tasks and specific times in my | application, | since the application server aren't multithreaded(so to speak), and the | usage of threads is not recommended, I cannot make a simple | timer, that will | initiate the appropriate procedures at a given time. | How do one solve such problems in an EJB application ? | | Regards | . |
Chained servlets and chained filters
I've got an interesting issue where I've got three chained filters running which all work great. One of these filters is a compression filter that modifies the Stream by compressing the final output. Unforutately I discovered that when the server sends a HTTP 500 response code, the result on the browser is not the typical ugly error page, but a blank page with a HTTP 200 response code. That won't do. I started looking through the J2EE spec and realized quickyl that the way to fetch the http response code is to deal with the raw stream (e.g. what Orion does, not me). Sure I can set the response code, but theres no way to examine find the HTTP status code. THe more I started thinking about this I started to believe this makes some sense, in almost every case you want the response code devlivered to the browser. The only time it becomes an issue is with doing chaining - and even then some chaining situations you still don't need it. It might be fair to say you only need to examine the status code when doing filters. Anywoo... Anyone given this a thought?
Another filter chaining question
I'm starting to get into some intersting space with filters and I've found yet another thing that seems like it would be a requirement for chaining filters. Order. It seems that theres no clearly defined way to know which filter will process a request first. I've been playing with placement in the web.xml and I don't seem to notice any particullar change in filter sequence. Anyone have any experience in this?
is restarting Orion necessary ??
Hi Please let me know if restarting Orion necessary if I change a class when the server is running. I do not want to run my server in development mode regards Sunil
is restarting Orion necessary ??
Hi Please let me know if restarting Orion necessary if I change a class when the server is running. I do not want to run my server in development mode regards Sunil
RE: timed events
Jens, Unfortunately, you're correct :-(. It is not portable for exactly what you have written (Context issues), but for Orion it is pretty simple and straightforward. Tibor -Original Message- From: Jens Schumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 11:15 PM To: Orion-Interest Subject: RE: timed events Which is not that portable across Application Servers ;) Typical issues are JNDI lookup problems up to ClassCastExceptions. Jens | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of | [EMAIL PROTECTED] | Sent: Wednesday, March 13, 2002 5:21 PM | To: Orion-Interest | Subject: RE: timed events | | | Hi, | | I use a java.util.Timer wrapped my Scheduler class to schedule | tasks. I bind | an instance of this Scheduler to the JNDI from one of my servlet's init() | method. | | It works fine, use -userThreads switch to start orion if you want context | lookup from the scheduled threads. | | HTH, | | Tibor | | -Original Message- | From: daniele rizzi [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, March 13, 2002 2:25 PM | To: Orion-Interest | Subject: R: timed events | | | | Hi Casper, | | EJB are not multithreaded but a normal class *is*. | | Try putting the stuff in a public class TryMe extends Thread{} | | d. | | ps. if you need a scheduler the things are tougher. | | | | -Messaggio originale- | Da: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]Per conto di Casper | Højstrup | Inviato: mercoledì 13 marzo 2002 10.21 | A: Orion-Interest | Oggetto: timed events | | | | This more of a regular EJB question, I suppose. | | I need to initiate some specific tasks and specific times in my | application, | since the application server aren't multithreaded(so to speak), and the | usage of threads is not recommended, I cannot make a simple | timer, that will | initiate the appropriate procedures at a given time. | How do one solve such problems in an EJB application ? | | Regards | . |
Re: is restarting Orion necessary ??
Hi,friend, Thanks for your reply. Yes, I tried every cases. And I also found the same problem when I tried to subscribe the e-mail. I don't know why, I also re-isntalled the low stable version 1.5.2, but same problems. By the way, I also have 2 questions: 1.Can you tell me where(the directory) I should put the jndi.properties file? 2.How can I list a directory(that means if I just give the directory name in the web browser, then the contents of the directory will be displayed in the browser)? Thanks a lot. [EMAIL PROTECTED] wrote: Hi Please let me know if restarting Orion necessary if I change a class when the server is running. I do not want to run my server in development mode regards Sunil