RE: OFFTOPIC: Making a page expired

2000-11-27 Thread J.T. Wenting

response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate");
will do the trick.

Jeroen T. Wenting
[EMAIL PROTECTED]

Murphy was wrong, things that can't go wrong will anyway

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Krevs
 Sent: Monday, November 27, 2000 05:37
 To: Orion-Interest
 Subject: OFFTOPIC: Making a page expired


 I am trying to get the browser to display the "this page has expired"
 message when the user hits the Back button on the browser.

 We have the luxury? of only needing to support IE5.5. No matter what meta
 tags i use I cant seem to get the browser to display the standard
 "this page
 has expired" message.

 This is especially important in the situation where the user's session has
 expired and the user then uses the back button and tries to click on a
 hyperlink on the old page.

 Any ideas?







Re: Anyone debugging Orion applications in JBuilder (no jdpa)

2000-11-27 Thread Sven van 't Veer



Michael Rimov wrote:

 Set the project working directory to the orion root directory.  (You need
 JBuilder4 for this)
Nope works just fine with 3.5 too. I missed that one on the first try
though.

sven

-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




byte array OR mapping...

2000-11-27 Thread Laurent Cornelis

Hello,

I have an Entity Bean  :

public class ResultBean implements EntityBean {

  [...]

  public String id;
  [...]
  public byte[][] graphResult;

}

The graphResult field is an array of byte arrays. I want it to be stored as
a list of BLOBs. Here is my mapping for this field (orion-ejb-jar.xml) :

cmp-field-mapping name="graphResult"
list-mapping table="graphics"
value-mapping type="[B"
cmp-field-mapping
fields /
/cmp-field-mapping
/value-mapping
/list-mapping
/cmp-field-mapping

The '[B' is the String returned when I do byte[].getClass().toString()

But when I deploy :

Error compiling file:/C:/orion/applications/rapids/rapids-ejb-result.jar:
Dependent OR class [B cannot be abstract unless the ejb-jar.xml has a
dependent tag for it


What's wrong ??? Can someone helps me ??

Thanks

Laurent





Re: pop3.jar again

2000-11-27 Thread Dale Bronk



Sorry I mis-read your email. I now have added 
activation.jar, mail.jar, and pop3.jar to the orion.jar manifest file. 
These files again reside in orion_root/. I still get the same 
error. As far as the code goes "pop3://cucu:[EMAIL PROTECTED]", 
this is a dumb question but what is the break up of this String. ie: is 
cucu a server name or password followed by :email to check?

Are you an Orion employee?

Thanks for your help.
Dale

  - Original Message - 
  From: 
  Christian Sell 
  To: Orion-Interest 
  Sent: Saturday, November 25, 2000 6:16 
  AM
  Subject: Re: pop3.jar again
  
  regarding the manifest.mf variant, my advice was 
  to ADD pop3.jar to the jars already mentioned. Mail.jar should already be 
  there, as it comes with orion. I have this setup running all the 
  time.
  
  Then, there was a code-based suggestion by 
  someone else that looks promising to me, because it saves JavaMail from 
  reading the properties file, which is were the problem 
originates:
  
  session = Session.getInstance(props, null);store = new 
  POP3Store(session, new URLName(Constants.MAIL_URL));(where 
  Constants.MAIL_URL is something like: "pop3://cucu:[EMAIL PROTECTED]")The 
  problem seems to be that Orion doesn't read the javamail.providers 
  filefrom META-INF directory
  
- Original Message - 
From: 
Dale 
Bronk 
To: Orion-Interest 
Sent: Saturday, November 25, 2000 4:40 
AM
Subject: Re: pop3.jar again

I have now triple checked and I have moved activation.jar, 
mail.jar, and pop3.jar into jre/lib/ext. I then did a search for those 
3 files on my entire hard drive and they are only in that directory. I 
restarted Orion and still get:
MessagingException: javax.mail.NoSuchProviderException: No provider for POP3
I then tried your other suggestion of removing the files 
from the orion.jar manifest.mf file. I still get the same error. 
I saw another response to my post suggesting that I look at my code and they 
gave a code sample... I will look at this next.

Currently, I have the 3 jar files only in jre/lib/ext and the files are 
not listed in the manifest.mf file in orion.jar.

Dale

  - Original Message - 
  From: 
  Christian Sell 
  To: Orion-Interest 
  Sent: Thursday, November 23, 2000 
  4:24 PM
  Subject: Re: pop3.jar again
  
  Dale,
  
  This is my favorite one.. 
  I am running an application under orion which 
  uses JavaMail  pop3. The 2 solution alternatives to the classloader 
  problem I personally tested successfully were
  a)MOVE mail.jar AND pop3.jar to 
  jre/lib/ext (note the MOVE. Both should be accessed from the same 
  place)
  b) modify manifest.mf inside orion.jar and 
  add the pop3.jar
  
  I have to admit I stayed with b). I just 
  re-modified it yesterday after downloading the newest orion release 
  :-)
  
  
- Original Message - 
From: 
Dale 
Bronk 
To: Orion-Interest 
Sent: Thursday, November 23, 2000 
8:40 PM
Subject: pop3.jar again

Has anyone figured out how to use pop3.jar with 
Orion? I have tried moving the pop3.jar and activation.jar to my 
jdk/lib/ext directory like someone suggested and it still gets an error 
"no providers found". I then tried what someone else 
suggested... Starting orion with the actual class with main in it 
rather than orion.jar and specifying the classpath pointing to my 
activation.jar and pop3.jar from sun.

I can't get it to work with Orion.

Orion, if you are listening... Please help. There have 
been several questions with this same problem. I know I have it 
setup correctly because I can run the little test app and it lists my 
pop3 as a provider plain as day. This is of course not running in 
the same vm as Orion. The common problem I get from this list is 
that it is a problem with Orion classloader. Orion, please let us 
know what we have to do.
Dale Bronk[EMAIL PROTECTED]


RE: Anyone using Orion in production? [long]

2000-11-27 Thread Kemp Randy-W18971

I too wonder about the legalities.  Flashline shows several commercial EJB servers 
that are not J2EE licensed.  There are also three open EJB server projects I know of 
(joNas, jBoss, and openEJB), that share their source code.  I must confess, I don't 
even know what a company must do to become a J2EE licensee.  Do you apply to Sun and 
send some money?  

-Original Message-
From: Christian Sell [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 25, 2000 4:26 PM
To: Orion-Interest
Subject: Re: Anyone using Orion in production? [long]


  Evermind's position, as stated on the FAQ, is that they would be SUED by
  Sun if they made their source code public.
 
  What?! What is the rationale behind this conclusion???

 Talk to Sun. J2EE licensing prevents an open source J2EE implementation
 (although a "compatible" implementation of J2EE might be okay. I don't
 know.)

according to the flashline server comparison matrix
(http://www.flashline.com/components/appservermatrix.jsp), orion is not a
J2EE licensee. I cant imagine that simply implementing the publicized spec
makes you liable to Sun..





RE: Anyone using Orion in production? [long]

2000-11-27 Thread Kemp Randy-W18971

If you think about it, Sun released their source code for JSP and servlets to Apache.  
IBM and Sun have people working and developing Tomcat, in addition to the Apache 
volunteers.  Yet there are many commercial products implementing JSP and servlets 
(Jrun, Servlet Exec, Etc.).  Similarly, if you have open source servers like jBoss, 
joNas, openEJB, etc., they will coexist among commercial versions.  Yet both 
commercial and open source versions will stir companies to implement Sun J2EE 
solutions over Microsoft MTS.  I think Orion is a great product, but it will take both 
open source and commercial products to give J2EE solutions popularity and keep 
Microsoft MTS at bay.  

-Original Message-
From: Kevin Duffey [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 1:43 PM
To: Orion-Interest
Subject: RE: Anyone using Orion in production? [long]


Really? How can they be sued by Sun for their own source? JBoss isn't
getting sued..aren't they open source? I can't believe Sun could sue anyone
for making an open-source application server. Maybe there is something we
don't know...??

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gerald
 Gutierrez
 Sent: Friday, November 24, 2000 10:16 AM
 To: Orion-Interest
 Subject: Re: Anyone using Orion in production? [long]



 However I can sympatize with Karl and Magnus. EJB is a very new
 technology. Shipping the source makes it relatively easy for the
 competition to copy the product which of course is the downside. But I
 think shippingg the source would be for the better of the server. Nobody
 is perfect and if all of us have our hands on the source lots of those
 silly bugs should be fixed in much less time. Having to submit a
 testcase makes for a lot of effort on both sides since we have to create
 a testcase which has to be recreated by the orion team and tested. Most
 of these bug however would simply appear running your app through a
 debugger and jumping into the orion source.

 I've run into so many weird and absurd problems in Orion; all it would've
 taken for me to solve the problem and submit a patch would be a
 grep in the
 source tree. Alas, I cannot do this and I am stuck with an application
 server that has many advantages and many disadvantages, which
 more or less
 cancel each other out. Many bugs I post as problems to the mailing list,
 many times without response, forcing me to submit some of them to
 bugzilla,
 where they go unnoticed.


 Evermind's position, as stated on the FAQ, is that they would be SUED by
 Sun if they made their source code public.

 What?! What is the rationale behind this conclusion???









DriverManagerConnectionPoolConnection not closed, check your code!

2000-11-27 Thread Anders Bohman

Does any one know of a foolproof way to close a connection? A standard perhaps?
To avoid this msg:
 DriverManagerConnectionPoolConnection not closed, check your code!

I have one suggestion but I'm not sure that it is correct.

Connection conn = null;
Statement stmt = null;

try {

conn = DB.getConnection();
stmt = conn.createStatement();
stmt.executeUpdate("delete from user where userid= "+userid);
}catch (SQLException eExc) { eExc.printStackTrace();}
finally {
try {
stmt.close();
conn.close();
}catch(SQLException sqlExc){exOcc = true; sqlExc.printStackTrace();}
}




Re: Can't find DataSource at java:comp/env/jdbc/NameOfDataSourceDS..??

2000-11-27 Thread Boris Gertsberg

If you open a console (java -jar orionconsole.jar ) you will see that your
jdbc connections are in fact can be found in JNDI at jdbc/myEJBDS and not
java:comp/env/jdbc/myEJBDS.

You are getting casting  exception because in your datasources.xml you
defined DataSource as com.evermind.sql.ConnectionDataSource and not
interbase.interclient.DataSource. These two classes are siblings. Java
doesn't support casting between siblings.


This code should be better as it will work with any databases and any
datasource classes.
try
{
  context = new InitialContext();
  javax.sql.DataSource ds = (javax.sql.DataSource )
context.lookup("jdbc/myEJBDS");
}
catch(NamingException ne)
{
}

Boris



- Original Message -
From: "Kevin Duffey" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Sunday, November 26, 2000 1:40 AM
Subject: Can't find DataSource at java:comp/env/jdbc/NameOfDataSourceDS..??


 Hi all,

 Strange things abrew. I have my Interbase datasource set up as list below.
I
 thought the way inside of an EJB to find a DataSource would be:

 Context context = null;

 try
 {
   context = new InitialContext();
   interbase.interclient.DataSource ds = (interbase.interclient.Datasource)
 context.lookup("java:comp/env/jdbc/myEJBDS");
 }
 catch(NamingException ne)
 {
 }


 However, through various trial and errors, I found the only way I can get
it
 is if I do:

 Object o = context.lookup("jdbc/myEJBDS");

 If I try to typecast it to an interclient datasource, I get a class cast
 exception. I am at a loss as to why if this is J2EE standard programming,
I
 have to be database specific or vendor specific at any point, and why is
it
 not finding it in java:comp/env?

 Thanks for any help.



 data-source class="com.evermind.sql.ConnectionDataSource"
   inactivity-timeout="120"
   location="jdbc/SelectScreenDS"
   name="My Data-source"
   xa-location="jdbc/xa/MyXADS"
   ejb-location="jdbc/MyEJBDS"
   url="jdbc:interbase://localhost/c:/database/mydb"
   connection-driver="interbase.interclient.Driver"
   username="sysdba"
   password="masterkey"
   /






Data type to access a datetime field in database

2000-11-27 Thread fresnaULL



Hi, 
I'm trying to access a datatime field in a 
SQL-SERVER 7.0 with a EJB CMP but
I don't know which java type I have to use in the 
bean to map this field. I've tried with a java.util.Date type but
I get the following error:

javax.ejb.EJBException: Error saving state: 
[Microsoft] [ODBC SQL Server Driver] Datatime field overflow
 at 
Persona_EntityBeanWrapper0.saveState(Persona_EntityBeanWrapper0.java:3092) 
at 
Persona_EntityBeanWrapper0.setPer_fecha_nac(Persona_EntityBeanWrapper0.java:2964) 
at NewCmp.doGet(NewCmp.java:51) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java) 
at com.evermind.server.http.d1.si(JAX) at 
com.evermind.server.http.d1.forward(JAX) at 
com.evermind.server.http.ed.sp(JAX) at 
com.evermind.server.http.ed.so(JAX) at 
com.evermind.util.f.run(JAX
Also, I'm trying to access an image typefield 
but I have no idea which java type I have to use to map this kind of 
field.

Does anybody know which java type I have to use in 
both cases?


Thanks.



RE: OFFTOPIC: Making a page expired

2000-11-27 Thread Kevin Duffey

On the same topic..is there any way to FORCE the browser to always go to the
server, even if the BACK button is clicked? We have the "no-cache" settings,
but whenever a user hits the BACK button they always see the "this page has
expired". Isn't there any way at all to force the browser to go to the
server..in which case I have code in place that would redirect them to a
specific page that is more user friendly and looks like our site..rather
than the MSIE page?

Thanks.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting
 Sent: Monday, November 27, 2000 1:11 AM
 To: Orion-Interest
 Subject: RE: OFFTOPIC: Making a page expired


 response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate");
 will do the trick.

 Jeroen T. Wenting
 [EMAIL PROTECTED]

 Murphy was wrong, things that can't go wrong will anyway

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Krevs
  Sent: Monday, November 27, 2000 05:37
  To: Orion-Interest
  Subject: OFFTOPIC: Making a page expired
 
 
  I am trying to get the browser to display the "this page has expired"
  message when the user hits the Back button on the browser.
 
  We have the luxury? of only needing to support IE5.5. No matter
 what meta
  tags i use I cant seem to get the browser to display the standard
  "this page
  has expired" message.
 
  This is especially important in the situation where the user's
 session has
  expired and the user then uses the back button and tries to click on a
  hyperlink on the old page.
 
  Any ideas?
 
 






SV: Data type to access a datetime field in database

2000-11-27 Thread Klaus . Myrseth



If its 
datetime you are talking about, add this to the data database-schema definition 
to sql-server:

type-mapping 
type="java.util.Date" name="datetime" /
java.io.Serializable is the mapping for varbinary, to 
use image add the following to the database-schema:
type-mapping type="java.io.Serializable" name="image" 
/
Only thing i can 
think of :)
Have fun with 
it.
Klaus


  -Opprinnelig melding-Fra: fresnaULL 
  [mailto:[EMAIL PROTECTED]]Sendt: 27. november 2000 
  15:59Til: Orion-InterestEmne: Data type to access a 
  datetime field in database
  Hi, 
  I'm trying to access a datatime field in a 
  SQL-SERVER 7.0 with a EJB CMP but
  I don't know which java type I have to use in the 
  bean to map this field. I've tried with a java.util.Date type but
  I get the following error:
  
  javax.ejb.EJBException: Error saving state: 
  [Microsoft] [ODBC SQL Server Driver] Datatime field overflow
   at 
  Persona_EntityBeanWrapper0.saveState(Persona_EntityBeanWrapper0.java:3092) 
  at 
  Persona_EntityBeanWrapper0.setPer_fecha_nac(Persona_EntityBeanWrapper0.java:2964) 
  at NewCmp.doGet(NewCmp.java:51) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java) 
  at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java) 
  at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java) 
  at com.evermind.server.http.d1.si(JAX) at 
  com.evermind.server.http.d1.forward(JAX) at 
  com.evermind.server.http.ed.sp(JAX) at 
  com.evermind.server.http.ed.so(JAX) at 
  com.evermind.util.f.run(JAX
  Also, I'm trying to access an image 
  typefield but I have no idea which java type I have to use to map this 
  kind of field.
  
  Does anybody know which java type I have to use 
  in both cases?
  
  
  Thanks.
  


Re: Anyone debugging Orion applications in JBuilder (no jdpa)

2000-11-27 Thread Sven van 't Veer



Suresh Ajja wrote:
 
 I am using JBiulder4 ,In the Tools, enterprise set up i could only see two
 options to add app server, i.e.  IAS and Weblogic, I set my working dir. as
 orion as root, but how to add AppServer.
 need help
 Suresh
 
Take a look at www.orionsupport.com. It explains how to debug orion
ejb's in JBuilder. Allthough it says you can only do it with JBuilder
4.0, It also works for JBuilder 3.5. The author forgot one option
however. You must run not only with -classic, but also with
-Duser.dir=/path/to/orion.

sven

-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




RE: byte array OR mapping...

2000-11-27 Thread Tim Drury

 
 The '[B' is the String returned when I do byte[].getClass().toString()

I don't think you want to do that.  Firstly, a byte is not a class.
byte is a primitive like int, float, char, etc. which are not classes
in Java (maybe you are a Smalltalk programmer?).  

Second, getClass().toString() isn't correct; you should have used 
getClass().getName() to get the name of a class.  A Class is an
object, and toString() usually returns a serialized version of
that object (usually, not always).

You should probably take your byte[] and place it in a class that
implements java.io.Serializable.  Most of the database mappings
support placing that into a blob:

type-mapping="java.io.Serializable" name="blob"

-tim




EJB Job

2000-11-27 Thread Fejes Balazs

Do you want to be a part of a brand new company, which is 
betting its future on EJB? Do you want to use the coolest 
technologies and get free pizza and
coke (of course a really good salary too :-) ) ? We are 
located in the hot
capital of Hungary, in Budapest.

If you in the region (or not) and you want to do something 
really-really
cool, drop me an email with your CV.

Balazs Fejes
CTO

[EMAIL PROTECTED]






Re: pop3.jar again

2000-11-27 Thread Christian Sell



ok, I am lost. I did have the "no provider" 
problem, and the modified manifest thing works for me. As far as the URL goes, I 
think it is 
protocol://user:password@server.

  - Original Message - 
  From: 
  Dale 
  Bronk 
  To: Orion-Interest 
  Sent: Monday, November 27, 2000 2:42 
  PM
  Subject: Re: pop3.jar again
  
  Sorry I mis-read your email. I now have added 
  activation.jar, mail.jar, and pop3.jar to the orion.jar manifest file. 
  These files again reside in orion_root/. I still get the same 
  error. As far as the code goes "pop3://cucu:[EMAIL PROTECTED]", this 
  is a dumb question but what is the break up of this String. ie: is cucu 
  a server name or password followed by :email to check?
  
  Are you an Orion employee?
  
  Thanks for your help.
  Dale
  
- Original Message - 
From: 
Christian Sell 
To: Orion-Interest 
Sent: Saturday, November 25, 2000 6:16 
AM
Subject: Re: pop3.jar again

regarding the manifest.mf variant, my advice 
was to ADD pop3.jar to the jars already mentioned. Mail.jar should already 
be there, as it comes with orion. I have this setup running all the 
time.

Then, there was a code-based suggestion by 
someone else that looks promising to me, because it saves JavaMail from 
reading the properties file, which is were the problem 
originates:

session = Session.getInstance(props, null);store = new 
POP3Store(session, new URLName(Constants.MAIL_URL));(where 
Constants.MAIL_URL is something like: "pop3://cucu:[EMAIL PROTECTED]")The 
problem seems to be that Orion doesn't read the javamail.providers 
filefrom META-INF directory

  - Original Message - 
  From: 
  Dale 
  Bronk 
  To: Orion-Interest 
  Sent: Saturday, November 25, 2000 
  4:40 AM
  Subject: Re: pop3.jar again
  
  I have now triple checked and I have moved 
  activation.jar, mail.jar, and pop3.jar into jre/lib/ext. I then did 
  a search for those 3 files on my entire hard drive and they are only in 
  that directory. I restarted Orion and still get:
  MessagingException: javax.mail.NoSuchProviderException: No provider for POP3
  I then tried your other suggestion of removing the files 
  from the orion.jar manifest.mf file. I still get the same 
  error. I saw another response to my post suggesting that I look at 
  my code and they gave a code sample... I will look at this 
  next.
  
  Currently, I have the 3 jar files only in jre/lib/ext and the files 
  are not listed in the manifest.mf file in orion.jar.
  
  Dale
  
- Original Message - 
From: 
Christian Sell 
To: Orion-Interest 
Sent: Thursday, November 23, 2000 
4:24 PM
Subject: Re: pop3.jar again

Dale,

This is my favorite one.. 
I am running an application under orion 
which uses JavaMail  pop3. The 2 solution alternatives to the 
classloader problem I personally tested successfully were
a)MOVE mail.jar AND pop3.jar to 
jre/lib/ext (note the MOVE. Both should be accessed from the same 
place)
b) modify manifest.mf inside orion.jar and 
add the pop3.jar

I have to admit I stayed with b). I just 
re-modified it yesterday after downloading the newest orion release 
:-)


  - Original Message - 
  From: 
  Dale Bronk 
  To: Orion-Interest 
  Sent: Thursday, November 23, 2000 
  8:40 PM
  Subject: pop3.jar again
  
  Has anyone figured out how to use pop3.jar with 
  Orion? I have tried moving the pop3.jar and activation.jar to my 
  jdk/lib/ext directory like someone suggested and it still gets an 
  error "no providers found". I then tried what someone else 
  suggested... Starting orion with the actual class with main in 
  it rather than orion.jar and specifying the classpath pointing to my 
  activation.jar and pop3.jar from sun.
  
  I can't get it to work with Orion.
  
  Orion, if you are listening... Please help. There 
  have been several questions with this same problem. I know I 
  have it setup correctly because I can run the little test app and it 
  lists my pop3 as a provider plain as day. This is of course not 
  running in the same vm as Orion. The common problem I get from 
  this list is that it is a problem with Orion classloader. Orion, 
  please let us know what we have to do.
  Dale Bronk[EMAIL PROTECTED]


RE: Problems with the Orion CMP primer example.

2000-11-27 Thread KirkYarina

Sorry for the delay (Thursday was a holiday here (unless you're a 
turkeyg), and I took Friday off...).  However, I see from the mail list 
that you've fixed the problem.

The file $ORION_DIR/config/data-sources.xml contains the configuration for 
your jdbc connection(s) - part of the data-source element is the jdbc URL, 
which (at least for hypersonic) includes the path to the database 
files.  For example, from my development system:

   data-source
--- (many attributes skipped...)
 connection-driver="org.hsql.jdbcDriver"
 url="jdbc:HypersonicSQL:../oriondb/SBDdb"
   /

In our case the database directory is moved outside the $ORION_DIR tree - 
mostly because it made it easier to update Orion in the pre-autoupdate 
days, and uses several files named SDBdb and different extensions.

The given path is relative to $ORION_DIR, and the format is described at 
http://www.hypersonicsql.com/ (click on Operating Modes) under Standalone mode.

I'm a bit surprised that the default installation doesn't create the 
database directory; perhaps you'd like to put that one into 
bugzilla.  Little gotcha's for new evaluators aren't good...

Kirk Yarina

At 09:35 AM 11/23/00 +, you wrote:

Hi.
No, I haven't created any database directory. This is the first time I hear
about
that!! . Could you tell me what I have to do?, I mean,
What is this directory for? What about the defaultdb file in it? Where did
you
read about that?

Thank you very much.


- Original Message -
From: KirkYarina [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 9:35 PM
Subject: Re: Problems with the Orion CMP primer example.


  Have you created a database directory ($ORION_DIR/database)?  Do you have
  the appropriate permissions on defaultdb.* in it?
 
  At 12:10 PM 11/22/00 +, you wrote:
 
  Hi,
  I'm trying to deploy the Orion CMP primer example. I've follow the
  instructions but I've got the following error:
  
  Auto-deploying addressbook (New server version detected)...
  Auto-deploying addressbook-ejb.jar (No previous deployment found)... SQL
  error: File input/output error: ./database/defaultdb.properties
  Warning: Error creating table: File input/output error:
  ./database/defaultdb.pro
   perties
  done
  Orion/1.3.8 initialized
  
  I'm sure I've installed Orion properly because I've deployed successfully
  the
  Orion Primer example.
  
  Thanks in advance
 
 
  Kirk Yarina
  [EMAIL PROTECTED]
 


Kirk Yarina
[EMAIL PROTECTED]





un-Subscribe

2000-11-27 Thread King Tan






Re: pop3.jar again

2000-11-27 Thread Tim Endres

 Sorry I mis-read your email.  I now have added activation.jar, mail.jar, and 
pop3.jar to the orion.jar manifest file.  These files again reside in orion_root/.  
I still get the same error.  As far as the code goes "pop3://cucu:[EMAIL PROTECTED]", 
this is a dumb question but what is the break up of this String.  ie: is cucu a 
server name or password followed by :email to check?


I believe that URL is broken down as follows:

   provider://username:password@provider_host/file_path

although file_path is rarely utilized.

tim.





Re: Data type to access a datetime field in database

2000-11-27 Thread TDSlusser


Use java.sql.TimeStamp for dates  times.

Use java.sql.Date for just date  java.sql.Time for just time.

regards,
Ted Slusser





Problems getting demo/ejb running

2000-11-27 Thread Marcus Lankenau

Hi!

I've tried to get this ejb-demo (path orion/demo/ejb/product) running, 
unfortunately without success. After following the instruction "Installing 
the EJB examples" and starting the client I got this:

Exception in thread "main" java.lang.SecurityException: Invalid 
username/password for ejbsamples (admin)
at com.evermind.server.rmi.bb.gg(JAX)
at com.evermind.server.rmi.bb.gg(JAX)
at com.evermind.server.rmi.bb.f_(JAX)
at com.evermind.server.rmi.RMIServer.f_(JAX)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at com.evermind.server.Application.ap7(JAX)
at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX)
at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.init(InitialContext.java:178)
at ProductClient.main(ProductClient.java:29)


Then I changed the initial context creation to this (giving username and 
password):

final Properties properties = new Properties();
properties.setProperty(Context.SECURITY_PRINCIPAL, "admin");
properties.setProperty(Context.SECURITY_CREDENTIALS, "admin");
Context context = new InitialContext(properties);

As result I got this:

Communication error: Error reading application-client descriptor: Error 
looking up EJBHome: Disconnected: Unknown command: 7


Now I'm a little confused and would apreciate any help...


Thanx in regards
Marcus Lankenau




search engine w/ orion

2000-11-27 Thread Justen Stepka


Anyone have any luck or recommendations for a search engine to use with
Orion Server?

Justen Stepka





Used Instances

2000-11-27 Thread Sven van 't Veer

In Orion console, what does 'Used Instances' denote? I'm doing batch
updates to a database (about 20 daily) and about three quarters on
the way, Orion console shows some 59000 used instances of my entity bean
somewhere after that, my application crashes with a DeadlockException
and shows that the nested exception is an OutOfMemoryException. I'm at a
loss here, does Orion actually keep these 59000 entity beans in memory
?? Shouldn't these be pooled ?? (Pooled instances shows 0!!).

I'm currently testing the application and would like to know if there's
any way to have these beans pooled.

The app that does the batch updates is a simple class, it reads the
lines in a file and then calls a session bean (stateless) through either
of two methods (update or remove) update checks for excistence of the
entity, if exists, it sets some values, when a FinderException gets
thrown, it calls ejb.create(). remove finds the bean and calls
ejb.remove().

I read in the specs(9.4.1):
The container can choose to passivate the instance (...) Th container
invokes the ejbPassivate() method when the container wants to
disassociate the instance form the entity object without removing the
entity object.

I've been printing some output to stdout telling me when a bean is
activated and when it's passivated but sofar as I can see,
ejbPassivate() is never called.

Is this some bug in Orion or am I getting mad???

I'm using 1.3.8

sven


-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




Re: DB changes not reflected in CMP bean.

2000-11-27 Thread Winston Ng

Thanks! It works great now.

Made the changes in orion-ejb-jar.xml and any updates to the db by other
sources is pretty much updated instantly.

Does anyone knows if this feature is stated in the EJB standards?

Winston

- Original Message -
From: "Sven van 't Veer" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, November 24, 2000 2:25 AM
Subject: Re: DB changes not reflected in CMP bean.




 Winston Ng wrote:
 
  Hi All,
 
  This is more of an EJB question.
 
  I wrote a simple app using a CMP bean that talks to an Oracle DB.
 
  Started the server and was able to get/set information to the bean and
  subsequently see the changes in the DB.
 
  However, if I make any updates to the DB from sqlplus and commit the
  changes, they are not reflected in the Entity bean! The changes are only
  reflected if I restart Orion.
 
  Is this normal? What should I do to have the bean reflect changes in the
  database? Is that what BMP bean is for??
 Yes that is absolutely normal. You can however in orion-ejb.xml set
 exclusive-write-access="false" in entity-deployment.

 Sven
 --


==
 Sven E. van 't Veer
 http://www.cachoeiro.net
 Java Developer [EMAIL PROTECTED]


==


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Re: how to use servlet-mapping

2000-11-27 Thread Claudio Miranda


the url-pattern tag dictates the browser vision of your resources,
look at the correct code below.

-- 
  Claudio Miranda  
  ___
  SUN Certified Programmer for JAVA 2

Edmund Cheung wrote:
 
 Hi,
 
 If I have more than one servlet defined in the web.xml file, how do I use
 servlet-mapping ? Based on the following setting, the program always calls
 the UserManagerController.
 
servlet
   servlet-nameMainAdminController/servlet-name
   descriptionMain controller/description
   servlet-classadmin.servlet.MainAdminController/servlet-class
/servlet
servlet-mapping
   servlet-nameMainAdminController/servlet-name
url-pattern/MainAdminController/url-pattern
/servlet-mapping
servlet
   servlet-nameUserManagerController/servlet-name
   descriptionUser manager controller/description
   servlet-classadmin.servlet.UserManagerController/servlet-class
/servlet
servlet-mapping
   servlet-nameUserManagerController/servlet-name
   url-pattern/UserManagerController/url-pattern
/servlet-mapping
 
 Thanks,
 
 Edmund

begin:vcard 
n:Miranda;Claudio
x-mozilla-html:FALSE
org:EverSystems;Research  Developmet - Internet  New Tech
adr:;;;Sao Paulo;SP;;Brazil
version:2.1
email;internet:[EMAIL PROTECTED]
title:SUN Certified Programmer for JAVA 2 Platform
fn:Claudio Miranda
end:vcard



RE: search engine w/ orion

2000-11-27 Thread Neville Burnell

Take a look at Lucene 
http://lucene.sourceforge.net/features.html


-Original Message-
From: Justen Stepka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 November 2000 6:18 AM
To: Orion-Interest
Subject: search engine w/ orion



Anyone have any luck or recommendations for a search engine to use with
Orion Server?

Justen Stepka





RE: search engine w/ orion

2000-11-27 Thread Mike Cannon-Brookes

If you're looking for a pure Java one, I use Lucene - http://www.lucene.com 

It's Open Source and works quite well.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Justen Stepka
 Sent: Tuesday, November 28, 2000 6:18 AM
 To: Orion-Interest
 Subject: search engine w/ orion
 
 
 
 Anyone have any luck or recommendations for a search engine to use with
 Orion Server?
 
 Justen Stepka
 
 
 




Re: Used Instances

2000-11-27 Thread Tim Endres

Could it be that all of your beans are still in a Tx? I do not believe
the beans will be passivated when they are still involved in a Tx. Or
are you invoking a new Tx for each line in your file.

tim

 In Orion console, what does 'Used Instances' denote? I'm doing batch
 updates to a database (about 20 daily) and about three quarters on
 the way, Orion console shows some 59000 used instances of my entity bean
 somewhere after that, my application crashes with a DeadlockException
 and shows that the nested exception is an OutOfMemoryException. I'm at a
 loss here, does Orion actually keep these 59000 entity beans in memory
 ?? Shouldn't these be pooled ?? (Pooled instances shows 0!!).
 
 I'm currently testing the application and would like to know if there's
 any way to have these beans pooled.
 
 The app that does the batch updates is a simple class, it reads the
 lines in a file and then calls a session bean (stateless) through either
 of two methods (update or remove) update checks for excistence of the
 entity, if exists, it sets some values, when a FinderException gets
 thrown, it calls ejb.create(). remove finds the bean and calls
 ejb.remove().
 
 I read in the specs(9.4.1):
 The container can choose to passivate the instance (...) Th container
 invokes the ejbPassivate() method when the container wants to
 disassociate the instance form the entity object without removing the
 entity object.
 
 I've been printing some output to stdout telling me when a bean is
 activated and when it's passivated but sofar as I can see,
 ejbPassivate() is never called.
 
 Is this some bug in Orion or am I getting mad???
 
 I'm using 1.3.8
 
 sven





Turbine with Orion?

2000-11-27 Thread Neal Kaiser

I'm getting ready to set this up (Turbine and Velocity) with Orion. Before I
pull my hair out figuring it out, I wanted to see if anyone has already
documented this?
Thanks.





RE: search engine w/ orion

2000-11-27 Thread Justen Stepka

Has anyone actually used this product though?

Justen Stepka

On Tue, 28 Nov 2000, Neville Burnell wrote:

 Take a look at Lucene 
 http://lucene.sourceforge.net/features.html
 
 
 -Original Message-
 From: Justen Stepka [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 28 November 2000 6:18 AM
 To: Orion-Interest
 Subject: search engine w/ orion
 
 
 
 Anyone have any luck or recommendations for a search engine to use with
 Orion Server?
 
 Justen Stepka
 
 





Re: Problems getting demo/ejb running

2000-11-27 Thread MacGill

G'Day

one suggestion

have you change the settings in orion/config/principals.xml
Set deactivated to 'false'

  user username="admin" password="123" deactivated="false"
   descriptionThe default administrator/description
   group-membership group="administrators"/
   group-membership group="guests"/
   group-membership group="users"/
  /user

Hope that helps

MacGill

Marcus Lankenau wrote:

 Hi!

 I've tried to get this ejb-demo (path orion/demo/ejb/product) running,
 unfortunately without success. After following the instruction "Installing
 the EJB examples" and starting the client I got this:

 Exception in thread "main" java.lang.SecurityException: Invalid
 username/password for ejbsamples (admin)
 at com.evermind.server.rmi.bb.gg(JAX)
 at com.evermind.server.rmi.bb.gg(JAX)
 at com.evermind.server.rmi.bb.f_(JAX)
 at com.evermind.server.rmi.RMIServer.f_(JAX)
 at com.evermind.server.rmi.RMIContext.lookup(JAX)
 at com.evermind.server.Application.ap7(JAX)
 at
 com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX)
 at
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
 at
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.init(InitialContext.java:222)
 at javax.naming.InitialContext.init(InitialContext.java:178)
 at ProductClient.main(ProductClient.java:29)

 Then I changed the initial context creation to this (giving username and
 password):

 final Properties properties = new Properties();
 properties.setProperty(Context.SECURITY_PRINCIPAL, "admin");
 properties.setProperty(Context.SECURITY_CREDENTIALS, "admin");
 Context context = new InitialContext(properties);

 As result I got this:

 Communication error: Error reading application-client descriptor: Error
 looking up EJBHome: Disconnected: Unknown command: 7

 Now I'm a little confused and would apreciate any help...

 Thanx in regards
 Marcus Lankenau





RE: search engine w/ orion

2000-11-27 Thread Duffey, Kevin

I take it I simply add in a .jar file or something..use its API's and I can
add a search engine to my own site? Is it free to use for my own
applications and websites? I haven't checked it out yet..but I will later.

Thanks.


 -Original Message-
 From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 27, 2000 12:49 PM
 To: Orion-Interest
 Subject: RE: search engine w/ orion
 
 
 If you're looking for a pure Java one, I use Lucene - 
 http://www.lucene.com 
 
 It's Open Source and works quite well.
 
 -mike
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
 Justen Stepka
  Sent: Tuesday, November 28, 2000 6:18 AM
  To: Orion-Interest
  Subject: search engine w/ orion
  
  
  
  Anyone have any luck or recommendations for a search engine 
 to use with
  Orion Server?
  
  Justen Stepka
  
  
  
 




RE: OFFTOPIC: Making a page expired

2000-11-27 Thread Matt Krevs

Doesnt orion allow you to have custom error pages for each generic HTTP
error condition? (eg 404, 501 etc) Does the "this page has expired"
condition fall into this category?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey
Sent: Tuesday, 28 November 2000 1:15 AM
To: Orion-Interest
Subject: RE: OFFTOPIC: Making a page expired


On the same topic..is there any way to FORCE the browser to always go to the
server, even if the BACK button is clicked? We have the "no-cache" settings,
but whenever a user hits the BACK button they always see the "this page has
expired". Isn't there any way at all to force the browser to go to the
server..in which case I have code in place that would redirect them to a
specific page that is more user friendly and looks like our site..rather
than the MSIE page?

Thanks.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting
 Sent: Monday, November 27, 2000 1:11 AM
 To: Orion-Interest
 Subject: RE: OFFTOPIC: Making a page expired


 response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate");
 will do the trick.

 Jeroen T. Wenting
 [EMAIL PROTECTED]

 Murphy was wrong, things that can't go wrong will anyway

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Krevs
  Sent: Monday, November 27, 2000 05:37
  To: Orion-Interest
  Subject: OFFTOPIC: Making a page expired
 
 
  I am trying to get the browser to display the "this page has expired"
  message when the user hits the Back button on the browser.
 
  We have the luxury? of only needing to support IE5.5. No matter
 what meta
  tags i use I cant seem to get the browser to display the standard
  "this page
  has expired" message.
 
  This is especially important in the situation where the user's
 session has
  expired and the user then uses the back button and tries to click on a
  hyperlink on the old page.
 
  Any ideas?
 
 








RE: OFFTOPIC: Making a page expired

2000-11-27 Thread Matt Krevs

Jeroen - you are a star

What this header basically does is re-request the URL when the user hits the
back/forward buttons.

That also fixed a couple of other 'what happens if the hit the back/forward
button' issues i was having.

One huge advantage about the 'CACHE-CONTROL' tag is that the browser can
still use the cache to get images, javascript includes, behaviours etc. Best
of both worlds really.

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting
Sent: Monday, 27 November 2000 7:11 PM
To: Orion-Interest
Subject: RE: OFFTOPIC: Making a page expired


response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate");
will do the trick.

Jeroen T. Wenting
[EMAIL PROTECTED]

Murphy was wrong, things that can't go wrong will anyway

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Krevs
 Sent: Monday, November 27, 2000 05:37
 To: Orion-Interest
 Subject: OFFTOPIC: Making a page expired


 I am trying to get the browser to display the "this page has expired"
 message when the user hits the Back button on the browser.

 We have the luxury? of only needing to support IE5.5. No matter what meta
 tags i use I cant seem to get the browser to display the standard
 "this page
 has expired" message.

 This is especially important in the situation where the user's session has
 expired and the user then uses the back button and tries to click on a
 hyperlink on the old page.

 Any ideas?








Using examples from Sun for J2EE reference implementation with Orion

2000-11-27 Thread Mateo Torrealto

I decided to try out the examples at 
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/index.html#contents
with Orion.

These examples are from Sun and are for the reference
implementation of J2EE.

I am able to get the samples to work on the reference
implementation, but not for Orion. :o(

Has anyone else try to "port" these samples to Orion?
It should be really easy. Orion is compliant. What is
the easiest way to deploy the ear files from these
samples?

(This is good because the ear files are valid and
tested.)

I did this because I've been having troubles.
I went through the Orion primer. No Problem.
I tried to port some custom beans to Orion. Problems!
I figured there was something I did wrong in the
web.xml file, server.xml or something so I would try
some really well formed beans and servlets. If I can't
get the beans from the reference implementation
running, then

So now I figure if someone has already got the samples
for the reference implementation to run in Orion, then
I am all set. (If they tell me what they did to get
them running.)

Conversely, I could tell you what I did that did not
work.

Challenge:
I think one of the Orion advocates can get one of
these examples to work in no time flat.

If not, I will keep plugging along.



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/




RE: Christian Sell et al.... Re: Deploying a servlet ear, war: help an oroin newbie

2000-11-27 Thread Mateo Torrealto

That WORKED!
it gave me the error message i needed.
orion was complaining about servlet param tag problem.
i ussually use netscape. i just started using
explorer.
YOU ROCK Matt! (you too Christian)

--- Matt Krevs [EMAIL PROTECTED] wrote:
 Are you using IE as your browser?
 
 If so, go to
 
 Tools - Internet options - Advanced
 
 and make sure the "show friendly HTTP error
 messages" option is turned OFF.
 You should get a slightly usefull error message
 coming back then.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Mateo
 Torrealto
 Sent: Wednesday, 22 November 2000 4:48 PM
 To: Orion-Interest
 Subject: Christian Sell et al Re: Deploying a
 servlet ear, war: help
 an oroin newbie
 
 
 Christian Sell et al,
 
 Thank you for your help.
 
 WRT
 "aside its always useful to describe WHAT error
 you
 are getting /aside"
 
 Good point. I had a brain brownout.
 
 The only error I got was from the browser.
 The error was HTTP 500 - Internal server error
 when I posted to
 form

action="/employee-app/com.objectgeneration.sample.EmployeeForm"
 method="post"
 
 and the error was also HTTP 500 when I posted to
 form action="/employee-app" method="post"
 
 I tried your first suggestion, i.e., I posted with
 form

action="/employee-app/servlet/com.objectgeneration.sample.EmployeeForm"
 method="post"
 with the existing setup and I get
 You guessed it HTTP 500...
 
 That is okay at least I got the Post format correct.
 So in additon to the problem you helped me with... I
 have yet another problemwhat a mess I am.
 
 On to your second suggestion. I see that you changed
 the name of the servlet, but I am not sure what else
 you did nor am I sure what is different other
 than
 the shorter name, i.e., I already had a servlet
 mapping. But just in case I am an idiot (which I
 wont
 rule out). I followed what you wrote to a tee.
 [opps I just saw that i forgot to include my servlet
 mapping sorry another brain brownout.]
 
 BTW I also tried someone elses idea of what the
 servlet mapping should look like, and it did not
 seem
 to work. I think I don't have the post correct for a
 corresponding servlet mapping.
 
 What would be the post for that mapping?
 i.e., what would the post look like for the mapping
 that you suggested??
 
 I think it would look like
 form action="/employee-app" method="post"
 or maybe
 form action="/employee-app/" method="post"
 
 I get a 500 with both of the above.
 
 I seems like Orion is finding things okay because
 I get this message when it starts up
 
 Auto-unpacking

D:\Personal\Proto\CodeGen\Employee3\rel\employee-app.ear...
 done.
 Auto-unpacking

D:\Personal\Proto\CodeGen\Employee3\rel\employee-app\employee-app
 -web.war... done.
 Auto-deploying employee-app (Assembly had been
 updated)...
 Orion/1.3.8 initialized
 
 Again it works with the version that I installed in
 the default web application directory.
 
 The trusty tried and true
 
 form

action="/servlet/com.objectgeneration.sample.EmployeeForm"
 method="post"
 
 The above works.
 
 Christian thank you for your help.
 
 --- Mateo Torrealto
 
 BTW I used ant to build the orion-primer and then
 some
 other stuff. I am new to Ant, but I dig it. It is
 like
 make but easy and geared towards java.
 
 
 
 
  From: "Christian Sell"
  [EMAIL PROTECTED]
  Reply-To: Orion-Interest
  [EMAIL PROTECTED]
  To: Orion-Interest
 [EMAIL PROTECTED]
  Subject: Re: Deploying a servlet ear, war: help
 an
  oroin newbie
  Date: Tue, 21 Nov 2000 23:22:39 +0100
  
  aside
  its always useful to describe WHAT error you are
  getting
  /aside
  
  from looking at your files, I see you are missing
 a
  servlet-mapping entry
  in
  web.xml. In your call to the default-web-app, you
  use the
  (orion-preconfigured) servletmapping to /servlet.
  Now you can do the same
  when calling into your new webapp, by saying
  
  form
 

action="/employee-app/servlet/com.objectgeneration.sample.EmployeeForm"
  method="post"
  
  (note the "/servlet/" in there), or you can add a
  servlet mapping like the
  following (note that I've also assigned a shorter
  servlet name):
  
  servlet
servlet-nameEmployeeForm/servlet-name
  
 

servlet-classcom.objectgeneration.sample.EmployeeForm/servlet-class
  /servlet
  servlet-mapping
 servlet-nameEmployeeForm/servlet-name
  url-pattern//url-pattern
  /servlet-mapping
  
  
  - Original Message -
  From: "Matthew TorreAlto"
  [EMAIL PROTECTED]
  To: "Orion-Interest"
  [EMAIL PROTECTED]
  Sent: Tuesday, November 21, 2000 8:19 PM
  Subject: Deploying a servlet ear, war: help an
  oroin newbie
  
  
I am trying to deploy a servlet with Orion.
 The
  servlet runs fine in
JBuilder. It even runs in Orion if I stick it
 in
  the default web
  application
directory. But I want to do it right and use
 the
  ear, war files. (or do
  I)
   
When I run Orion it seems to pick it up the
 ear
  and war file okay.
Orion 

Reusing compiled JSPs on another machine

2000-11-27 Thread Matt Krevs

We often deploy our web app on multiple machines

Currently this is a painful process as we have to hit each page on each
machine (we run a script to do this) so the pages are compiled when the
testers test the app.

I have played around with compiling the pages one 1 machine and copying the
compiled code onto other machines.

However the pages on the other machine ignore the copied source code and
recompile.

Anyone know what I can do so I can "compile once - deploy anywhere"?

Thanks





RE: search engine w/ orion

2000-11-27 Thread Mike Cannon-Brookes

I use Orion extensively within our OpenSymphony CMS to index and search
content (articles, comments etc).

It works quite well, the biggest database I've tried it with is about 3000
or so articles, but growing all the time.

Lucene has quite an active list, why not ask there?

As for your q's:
- yes, just add the lucene.jar to the /lib directory
- it has API's for indexing and searching (and much much more depth than
just that ;))
- you can make any content searchable, just got to write an indexer for
weird files (word docs etc if you want them)
- licensed under GPL

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin
 Sent: Tuesday, November 28, 2000 12:43 PM
 To: Orion-Interest
 Subject: RE: search engine w/ orion


 I take it I simply add in a .jar file or something..use its API's
 and I can
 add a search engine to my own site? Is it free to use for my own
 applications and websites? I haven't checked it out yet..but I will later.

 Thanks.


  -Original Message-
  From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
  Sent: Monday, November 27, 2000 12:49 PM
  To: Orion-Interest
  Subject: RE: search engine w/ orion
 
 
  If you're looking for a pure Java one, I use Lucene -
  http://www.lucene.com
 
  It's Open Source and works quite well.
 
  -mike
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of
  Justen Stepka
   Sent: Tuesday, November 28, 2000 6:18 AM
   To: Orion-Interest
   Subject: search engine w/ orion
  
  
  
   Anyone have any luck or recommendations for a search engine
  to use with
   Orion Server?
  
   Justen Stepka
  
  
  
 







Re: Reusing compiled JSPs on another machine

2000-11-27 Thread Tim Endres

Could it be that the modtimes on the jsp pages are later than the modtimes
of the class files you copy over?
tim.

 We often deploy our web app on multiple machines
 
 Currently this is a painful process as we have to hit each page on each
 machine (we run a script to do this) so the pages are compiled when the
 testers test the app.
 
 I have played around with compiling the pages one 1 machine and copying the
 compiled code onto other machines.
 
 However the pages on the other machine ignore the copied source code and
 recompile.
 
 Anyone know what I can do so I can "compile once - deploy anywhere"?
 
 Thanks





Re: Reusing compiled JSPs on another machine

2000-11-27 Thread alexchud

Hi Dude,
Compile your jsp page into a servlet, then make your servlet appear as 
a jsp page, by doing the following in your web.xml.

The Servlet is made to look as a JSP page with the following web.xml:
!DOCTYPE webapp
SYSTEM "http://java.sun.com/j2ee/dtds/web-app_1_2.dtd"
webapp
servlet
servlet-name HelloWorld /servlet-name
servlet-class HelloWorld.class /servlet-class
/servlet
servlet-mapping
servlet-name HelloWorld /servlet-name
url-pattern /HelloWorld.jsp /url-pattern
/servlet-mapping
session-config
session-timeout 1 /session-timeout
/session-config
/webapp

- Original Message -
From: "Matt Krevs" [EMAIL PROTECTED]
Date: Tuesday, November 28, 2000 5:06 pm
Subject: Reusing compiled JSPs on another machine

 We often deploy our web app on multiple machines
 
 Currently this is a painful process as we have to hit each page on 
 eachmachine (we run a script to do this) so the pages are compiled 
 when the
 testers test the app.
 
 I have played around with compiling the pages one 1 machine and 
 copying the
 compiled code onto other machines.
 
 However the pages on the other machine ignore the copied source 
 code and
 recompile.
 
 Anyone know what I can do so I can "compile once - deploy anywhere"?
 
 Thanks
 
 
 





RE: OFFTOPIC: Making a page expired

2000-11-27 Thread Mikko Kurki-Suonio

On Tue, 28 Nov 2000, Matt Krevs wrote:

 Doesnt orion allow you to have custom error pages for each generic HTTP
 error condition? (eg 404, 501 etc) Does the "this page has expired"
 condition fall into this category?

No, that "error" is entirely browser-generated.

You might be able to override the back button with a piece of javascript
that forces reload.

At least it used to be possible to override the toolbar. Though I seem to
recall that it was disabled after some debacle rose over "web spoofing".

//Mikko