Re: Error messages
The first message means that either you started second orion process or some other application (Apache for example) use HTTP port orion configured to listen. To solve second problem you must add in your orion-application.xml file in orion-application tag next values autocreate-tables="false" and autodelete-tables="false". This will solve the problem. Alexey Ryndin.
RE: Why is Netscape slower with Orion?
No it is the crappy Netscape! It takes all your cpu and leaves none for your appserver. Netscape 4 sux big time! /korre -Original Message- From: Huibert Aalbers [mailto:[EMAIL PROTECTED]] Sent: den 26 januari 2001 17:58 To: Orion-Interest Subject: Why is Netscape slower with Orion? Hi everyone, Is it just me or has anyone noticed that Netscape is significantly slower than IE when accessing an application built with orion? Could there be anything wrong with my settings? Thanks, Huibert Aalbers Informix Software
Re: orion slowwww on Solaris and JDK 1.3 with previously fast NT deployment.
We had this similar problem. We found that on Solaris Orion was significantly slower than on NT. We did not believe it was Orion but could not find a way to get Solaris to be any faster. Anyone got any ideas? Dan - Original Message - From: "Korosh Afshar" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, January 29, 2001 12:26 AM Subject: orion slo on Solaris and JDK 1.3 with previously fast NT deployment. Hi. I finally got rid of the core dumps I was getting while deploying an EJB app on orion running on Sun Solaris 2.7 with JDK1.2. Thanks much for your suggestions to upgrade first to jdk 1.3. solution was to upgrade to JDK 1.3. Now that is over with, I have another night marish situation. The EJB app. has a query that returns all of the records from the database (informix) and displays them 25 at a time. As soon as I initiate this query, it takes about 50-60 seconds to come back with the first set of results. When I had first deployed on NT, this query would come back almost instantinaously. There are only about 800 records in the database. The difference in delay is not just a few seconds. It now take about 50 seconds more than it did on WinNT deployment. I did not write the code so I don't know what it is doing internally, but I suspect they have used CMP to hit the database with this query. Anyone with suggestions would greatly help as I am nearing the production delivery of the application next week. k.
RE: How to get RoleManager / setup UserManager
The other question has to do with using the User Manager. When I add the following to my orion-application.xml I get the NamingException when it is deployed. What is the trick to doing this? According to one poster, the atm example demonstrated this, but I must have a different version of the atm example. user-manager class="com.evermind.ejb.EJBUserManager" property name="home" value="com.evermind.ejb.EJBUser" / property name="defaultGroups" value="users" //user-manager" Finally, a tutorial for usermanager stuff was started over at Orionsupport.com, but never finished. Is there a new version of this? Here is the url I have: http://www.orionsupport.com/tutorials/usermanager/intro.jsp Thanks, JohnI get "Error updating application estore: Error initializing userManager'com.evermind.ejb.EJBUserManager': NamingException: com.evermind.ejb.EJBUser not found" when Itry it.
RE: How to get RoleManager / setup UserManager
Hi, You'll also have to include a line deploying orions EJBUser in you orion-application.xml like this: ejb-module remote="false" path="demo/ejb/usermanager" / Now you can take out the principals .../tag. Further you need to specify a role to group mapping in orion-web.xml (adjusted to your own roles and groups): security-role-mapping name="administrator" group name="administrators"//security-role-mapping Something that confused me a number of times is that orion unpacks your ear file, but it doesn't always refresh this copy correctly after you update your ear. This happened especially with orion/orion-application.jar I think this were all the steps I needed, but let me know if there are any more problems. I've been struggling with this one for quite some time too. Marcel The other question has to do with using the User Manager. When I add the following to my orion-application.xml I get the NamingException when it is deployed. What is the trick to doing this? According to one poster, the atm example demonstrated this, but I must have a different version of the atm example. user-manager class="com.evermind.ejb.EJBUserManager" property name="home" value="com.evermind.ejb.EJBUser" / property name="defaultGroups" value="users" //user-manager" Finally, a tutorial for usermanager stuff was started over at Orionsupport.com, but never finished. Is there a new version of this? Here is the url I have: http://www.orionsupport.com/tutorials/usermanager/intro.jsp Thanks, JohnI get "Error updating application estore: Error initializing userManager'com.evermind.ejb.EJBUserManager': NamingException: com.evermind.ejb.EJBUser not found" when Itry it.
RE: Error messages
Hi All Please ignore the previous posting. I made some mistake and re-launched Orion twice. That's why I encountered such error messages. Now I have another problem. Orion sent the following message when deploying my app: Unknown security-role in security-role-mapping: users I have not set any security role mapping anywhere, but orion-ejb-jar.xml automatically generates such mapping. So how should I deal with this? Thanks in advance Lynch
Calling EJB in a different application
Hi I have an enterprise bean in an orion application. I am able to call this bean from inside the application. If I try to access this bean from a servlet in another application I get the following error: javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type... Can someone help? Regards sb Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
RE: Unicode problem during JSP translation
Finally I solved the problem by removing "development="true"" option from orion-web.xml. Actually the option generates .java source from JSP and it causes such a problem. Probably you don't turn on the switch, and I'd like to recommend turning on it only for service time. Special thanks to Jang Kyu-O [EMAIL PROTECTED] = Sincerely yours, Changshin Lee. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
RE: Why is Netscape slower with Orion?
Of the topic -- I personally like the free browsers (opera and lycos) at www.opera.com and www.lycos.com for doing searches, etc., over Netscape and IE, even though I have all four on my development machine. -Original Message- From: Konstantin Polyzois [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 2:40 AM To: Orion-Interest Subject: RE: Why is Netscape slower with Orion? No it is the crappy Netscape! It takes all your cpu and leaves none for your appserver. Netscape 4 sux big time! /korre -Original Message- From: Huibert Aalbers [mailto:[EMAIL PROTECTED]] Sent: den 26 januari 2001 17:58 To: Orion-Interest Subject: Why is Netscape slower with Orion? Hi everyone, Is it just me or has anyone noticed that Netscape is significantly slower than IE when accessing an application built with orion? Could there be anything wrong with my settings? Thanks, Huibert Aalbers Informix Software
How to specify 2 databases in datasource.xml file.
Hi Friends, As a requirement of the application, We are developing we need to access differrent databases. I mean certain sections of the application needs to access database A and certain sections of the site is based on Database B.We are using SQL Server 2000 and Bean managed Persistence.How can I specify 2 Datasources in Datasource.xml file.Is this sort of architecture supported by J2EE. Regards Rajeev
Compiling tag libraries - with which IDE?
Hi Is anyone of you able to compile your own custom tags which take runtime expression values as input? I have been trying to compile my tag library with "Forte for Java CE release 2.0", I keep getting internal compiler errors. The errors only show when I work with tags which use runtime expression values like Objects or Integers. - That is, when rtexprvaluetrue/rtexprvalue is part of the tag variable declaration. Are you using different tools or are you only using Strings as input parameters to your tags? R.
Re: frustrated
Ed. Not at all sure, but did you try class="com.evermind.sql.ConnectionDataSource" instead of DriverManagerDataSource. I am using Oracle at work instead of Postgres, but I use Postgres at home (ie. I am not sure, but I will try to think to check tonight.) Everything else seems the same, except I used the EJB data source instead of the pooled data source. I think EJB data source includes the capabilities of the others.
Hypersonic hiccup?
Hi, I just ran into a small hiccup. When orion autocreates tables for hypersonicsql I get the following message: Warning: Error creating table: Unexpected token: 255 in statement [create table MySomething (id BIGINT not null primary key, field1 VARCHAR(255) null, field2 VARCHAR(255) null, field3 VARCHAR(255) null, field4 VARCHAR(255) null, field5 VARCHAR(255) null, field6 VARCHAR(255) null, field7 BIGINT null, field8 BIGINT null)]. Did anyone experience similar problems? Any reaction is welcome, FE
Pooled Data Source
Well... it seems I just can't make it work, even though I have read just about all the messages on the subject. datasources : data-source class="com.evermind.sql.DriverManagerDataSource" name="ddsNP" location="jdbc/ddsNP" xa-location="jdbc/xa/ddsXANP" ejb-location="jdbc/ddsNP" connection-driver="com.inet.tds.TdsDriver" username="sa" password="" url="jdbc:inetdae7:theserver:1433?database=test" inactivity-timeout="30" schema="database-schemas\ms-sql.xml" / data-source class="com.evermind.sql.OrionPooledDataSource" name="dds" location="jdbc/ddsDS" xa-location="jdbc/xa/ddsXADS" ejb-location="jdbc/ddsDS" max-connections="2" source-location="jdbc/ddsNP" pooled-location="jdbc/ddsDS" username="sa" password="" inactivity-timeout="30" connection-driver="com.inet.tds.TdsDriver" url="jdbc:inetdae7:theserver:1433?database=test" / the code DataSource ds = (DataSource)ctx.lookup("jdbc/ddsNP"); // have used jdbc/ddsDS as well... the lookup returns an OrionCMTDataSource but the call to getConnection() DatabaseMetaData dmd = ds.getConnection().getMetaData(); raises : java.lang.NullPointerException at com.evermind.sql.OrionPooledDataSource.d8(JAX) at com.evermind.sql.ak.eo(JAX) at com.evermind.sql.ak.ep(JAX) at com.evermind.sql.ap.getMetaData(JAX) at dds_testclient.Frame1.dsTest(Frame1.java:81) Hints anyone ? Thanks! Daniel
Re: Pooled Data Source
It's probably only part of the problem, but the first thing I note is that you're not using "com.evermind.sql.ConnectionDataSource". That's what you use when your jdbc driver is jdbc2 compliant (if my understanding is correct...). Other than that I don't see anything glaringly wrong... Gary Today, Daniel Cardin ([EMAIL PROTECTED]) wrote: Well... it seems I just can't make it work, even though I have read just about all the messages on the subject. datasources : data-source class="com.evermind.sql.DriverManagerDataSource" name="ddsNP" location="jdbc/ddsNP" xa-location="jdbc/xa/ddsXANP" ejb-location="jdbc/ddsNP" connection-driver="com.inet.tds.TdsDriver" username="sa" password="" url="jdbc:inetdae7:theserver:1433?database=test" inactivity-timeout="30" schema="database-schemas\ms-sql.xml" / data-source class="com.evermind.sql.OrionPooledDataSource" name="dds" location="jdbc/ddsDS" xa-location="jdbc/xa/ddsXADS" ejb-location="jdbc/ddsDS" max-connections="2" source-location="jdbc/ddsNP" pooled-location="jdbc/ddsDS" username="sa" password="" inactivity-timeout="30" connection-driver="com.inet.tds.TdsDriver" url="jdbc:inetdae7:theserver:1433?database=test" / the code DataSource ds = (DataSource)ctx.lookup("jdbc/ddsNP"); // have used jdbc/ddsDS as well... the lookup returns an OrionCMTDataSource but the call to getConnection() DatabaseMetaData dmd = ds.getConnection().getMetaData(); raises : java.lang.NullPointerException at com.evermind.sql.OrionPooledDataSource.d8(JAX) at com.evermind.sql.ak.eo(JAX) at com.evermind.sql.ak.ep(JAX) at com.evermind.sql.ap.getMetaData(JAX) at dds_testclient.Frame1.dsTest(Frame1.java:81) Hints anyone ? Thanks! Daniel
Re: frustrated
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 7:57 PM Subject: Re: frustrated Hellu there, I am getting a bit frustrated as I don't seem to able to connect to my = Postgres database, through the data-sources.xml file in the home = orion/config dir. I have seen about "all" newsgroup question about this issue but stil = nothing... Anyway, I do get the following error: --- Fri Jan 26 16:09:57 GMT+01:00 2001 [warn] ERR: = javax.naming.NameNotFoundException: jdbc/postgresPooledDS not found --- I retrieve the name with the following code: --- try { javax.naming.InitialContext ic =3D new javax.naming.InitialContext(); DataSource ds =3D (DataSource) ic.lookup("jdbc/postgresPooledDS"); } --- ... BTW: - I did put the postgres driver in the orion home/lib dir = (postgres.jar file). I have used this file to make a direct connection = which works. The postgres.jar file is part of the J2EE_CLASSPATH = variable. - Where can I find good information about how to set this up ? Or can = someone send this to me as there should an article one = http://orionsupport.com/ but this server is unreachable ? Yes, the server is down for some days, the webmaster sent a mail yesterday about it... Please some help ?? Regards, Ed Bras Well, you can try adding this: resource-ref descriptionJDBC Connection/description res-ref-namejdbc/postgresPooledDS/res-ref-name res-type (postgres datasource) /res-type res-authContainer/res-auth /resource-ref inside ejb/META-INF/ejb-jar.xml, inside your bean block if you're using it from a client application, you need to add the same to the META-INF/application-client.xml Mmm... the thing you've to guess is the postgres datasource name... and replace (postgres datasource) with it. In mySQL we have org.gjt.mm.mysql.Driver Well, bye! See ya Thanks for the tips. It's a servlets that makes a connection through his middle tier, so I suppose I indeed need to configure the ejb-jar.xml file. Appearantly I don't even have this file/structure yet. I only have the WEB-INF dir as I didn't say the why I should include those file(s)/dirs you are refering to. Can you please tell me where to find good information about the general setup ?, as I find it still hard to find to find correct information about the general J2EE application setup. I have a big J2EE book of SAMS, but still haven't read it all. Anyway, the server www.orionsupport.com is available again so I did read the postgres article, but still isn't of much help. I now have the following dir structure in my own home dir, so the application isn't deployed n the sever.xml and default-web-site.xml files. Is that a problem ?: $HOME/META-INF/application.xml (contains only a description for now) $HOME/META-INF/ejb-jar.xml, contains: --- ejb-jar description Postgres connection/description enterprise-beans resource-ref descriptionJDBC Connection/description res-ref-namejdbc/postgresPooledDS/res-ref-name res-typejava.sql.Datasource/res-type res-authContainer/res-auth /resource-ref /enterprise-beans /ejb-jar $HOME/public-html/WEB-INF/web.xml (standard, nothing special) $HOME/public-html/WEB-INF/classes/ (servlet dir). Anyway: - What is going wrong here ? Where does it start to look for the ejb postgresPooledDS ? For me, the process of defining/register the datasource and using/calling it, is unclear now, please some help. - BTW: I have to do the same trick for MySql, I hope this is the same thing? - I also noticed that you can set a JNDI - URI mapping in the J2SDKEE config dir (the "jdbc.datasources" property). Musn't I do something with that ? Regards, Ed Bras
RE: Why is Netscape slower with Orion?
So how do you really feel :). I agree. We are writing solutions that will have minimal functionality on Netscape and max functionality on IE. From: "Paul Kofon" <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: RE: Why is Netscape slower with Orion? Date: Mon, 29 Jan 2001 17:34:50 Hi, Netscape 4 sucks! Version 6 is even worse - it just won't run applets or even Netscape's own JavaScript! I don't know what those guys at Netscape are doing, making such crappy browsers and allowing IE seem like such a good product (well, I must confess it is). If it wasn't for IE, I don't think most of us would be programming the Web. Regards, Paul From: Konstantin Polyzois <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: RE: Why is Netscape slower with Orion? Date: Mon, 29 Jan 2001 09:40:09 +0100 No it is the crappy Netscape! It takes all your cpu and leaves none for your appserver. Netscape 4 sux big time! /korre -Original Message- From: Huibert Aalbers [mailto:[EMAIL PROTECTED]] Sent: den 26 januari 2001 17:58 To: Orion-Interest Subject: Why is Netscape slower with Orion? Hi everyone, Is it just me or has anyone noticed that Netscape is significantly slower than IE when accessing an application built with orion? Could there be anything wrong with my settings? Thanks, Huibert Aalbers Informix Software _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Postgress Performance
Thanks, I had tried these with little improvement. After looking at pgbench.c and reading other comments my conclusion is that postgres is this slow on doing inserts. The fast means of inserts a lot of data is to use COPY which is not useful for creating beans. It looks like my best bet is to ether switch to HSQL or at least use a combination of Postgres and HSQL. -Original Message- From: Sach Jobb [SMTP:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 1:42 PM To: Orion-Interest Subject: Re: Postgress Performance It could be a performance issue with Postgres. By default Postgres uses a "paranoid" setting that writes each transaction to disk immediately after the transaction is completed. This is done to protect the integrity of the database, as at anytime the database could go down and data could be lost. However, when dealing with large numbers of transaction this can severely impair performance. So, you can disable it by changing your postmaster line to something like this: postmaster -o -F -D /mypath/to/datadir You can also get a little speed out of detaching from the tty you started it from by using the "-S" switch. And, of course, in terms of performance when deploying you should really tweak the number of backend connections. Hope that helps. thanks, sach %s/windows/linux/g On Sun, 28 Jan 2001, Paul Fink wrote: In general Orion and postgres seem to work well together but I have a problem with the performance of inserts. As the size of the table increases the rate at which I can do inserts, or bean creates, decreases dramatically. I have a very simple Alarm entity bean with a single Long as the primary key. Running under Linux on a PIII. When I start with an empty table I can create new Alarm beans at a rate of about 40/sec. When the table reaches 10K entries the rate is down to 10/sec and continues to drop. I have the entity bean wrapped by a session bean and I do several creates per transaction. The only trick I've found for speeding up postgress is the "-o -F" flag which I've done.
Orion web server vs. apache or IIS
Hi: I just got Orion and noticed that it is recommended that we use the Orion webserver as apposed to plugging it into Apache for instance. I was just wondering what, if any functionality that the Orion web server may lack versus the others previously mentioned? I am coming into Orion and J2ee from an IIS Asp background and am little unclear as to the separation of the web app container vs. the webserver? In IIS I did not see such a separation, so when you created an application/dynamic web site, you put all the files (dynamic or otherwise) in the same directory root. With Orion, is this the same or does the static web content have to be separate from the dynamic stuff? Thanks, Stefan
RE: How to specify 2 databases in datasource.xml file.
Title: RE: How to specify 2 databases in datasource.xml file. J2EE doesn't control that specifically, but it's certainly part of Orion. Simply specify two data-source nodes in datasource.xml; each data source will now be available to your application. -Original Message- From: Puthezhath, Rajeev (TWII Boston) [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 10:06 AM To: Orion-Interest Subject: How to specify 2 databases in datasource.xml file. Hi Friends, As a requirement of the application, We are developing we need to access differrent databases. I mean certain sections of the application needs to access database A and certain sections of the site is based on Database B.We are using SQL Server 2000 and Bean managed Persistence.How can I specify 2 Datasources in Datasource.xml file.Is this sort of architecture supported by J2EE. Regards Rajeev
RE: Connection reset by peer: socket write error Can someone help
Last weekend, I found that the source of my problem was purely IE5 and XML. I cobbled a way to test this with Netscape and this problem does not happen at all. I'm basically using JSPs to generate pure XML pages with references to XSL stylesheets so that IE5 can do the transformations (instead of using server resources). In the following description, I don't mean to suggest that I've debugged into IE5 and understand how the IE5 engine actually works--rather I'm describing what seems to be the behavior. Here's the scenario. You're looking at a web page with a link to a JSP. When you click this link, the browser requests the JSP page. This JSP emits a page directive to change the contentType to "text/xml". It seems that as soon as IE5 gets this contentType switch, it abruptly drops the existing connection to the server and immediately requests the same page again. Well, this can cause problems on the server. For example, if the JSP page takes a non-trivial amount of time to render itself, then the socket write error will almost always occur since the 'peer' (IE5 in the case) always abruptly terminates the first connection to start the second. If the first JSP page request had time to open a database connection (before the second page request yanked the rug), then the socket write error may also interrupt the JSP's ability to execute enough logic to get to close the database connection at the bottom of the page. This tends to leave database connections hanging until they timeout. In my case, I was using a frameset which contained four JSPs--each of which emitted XML. In this case, each time I pressed F5, I saw four complete sets of "Socket Write Error" tracedumps along with stranding four different database connections. Imagine this problem in a scenario where hundreds or even thousands of customers were requesting updates to this frameset. There are two painpoints. First is the penalty of forcing the server to deal with needless exception handling four times per reload action (a performance penalty associated with dumping the stacktrace to the log file). Second are the resources held in limbo by stranded database connections (which looks like a big memory leak). My workaround is to avoid sending a pure XML page to IE5. Instead I send the XML data in an XML data island and use JavaScript to do the transformation. [Sample code follows] IE5 is still doing the transformation but since we're sending a real HTML file with embedded XML, instead of a real XML file, we don't have IE5 requesting every page twice. I would prefer to be sending pure XML/XSL to the browsers that can handle it. But even when/if this problem is fixed by MS, we still have to accommodate the millions of IE5 installations that don't have the patch. So this workaround is likely to stay online for a long time in my apps. I guess you could say that instead of fixing the problem, I'm avoiding the situation that leads to the problem in the first place. Cheers, Jeff HTML HEAD XML id="xslTransform" src="http://%=request.getServerName()%/Whatever/Style/ClassData.xsl"/XML XML id="xmlData" root !-- This JSP file emits the pure XML data for this page -- jsp:include page="ClassData.jsp" flush="true" / /root /XML script language="JavaScript" function doInitPage() { oData = xmlData.XMLDocument; document.all("InsertHere").innerHTML = oData.transformNode(xslTransform.XMLDocument); } /script link REL="STYLESHEET" TYPE="text/css" HREF="http://%=request.getServerName()%/Whatever/Style/ClassResources.css" / /HEAD body onload="doInitPage()" CLASS="NormalText" bgcolor="white" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" SPAN ID="InsertHere"/SPAN /BODY /HTML Another variation is to have the JS actually replace the entire BODY section of the page. This would let the XSL file have complete control over the attributes of the Body tag. In my case, this wasn't necessary.
Does Orion provide Application-clustering?
I am aware that Orion provides a built-in clustering for web-servers. Does it also provide clustering for applications? If yes, how to configure such clustering. Thanks for your help. Satish Gupta __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Re: Compiling tag libraries - with which IDE?
I use ANT and JIKES to compile. The tags work for me. The only gotcha there is with it is that the entire runtime expression has to be enclosed in %= %, not just a part of it. At 04:34 PM 1/29/2001 +0100, you wrote: Hi Is anyone of you able to compile your own custom tags which take runtime expression values as input? I have been trying to compile my tag library with "Forte for Java CE release 2.0", I keep getting internal compiler errors. The errors only show when I work with tags which use runtime expression values like Objects or Integers. - That is, when rtexprvaluetrue/rtexprvalue is part of the tag variable declaration. Are you using different tools or are you only using Strings as input parameters to your tags? R.
Re: Does Orion provide Bean-pooling?
Two comments! 1. I had to, occasionally, flush EJBCache to avoid getting a java.lang.OutOfMemory error, which, to me, implied that Orion was not passivating the beans! 2. Shouldn't there be a way to adjust the pool-size to tune the application? Too small a pool-size could 'choke' an application! Please comment. ___ Pooling of Entity beans? Yes, it does. You can verify that for yourself by logging when orion calls the activate and passivate methods. No special setup is necessary.Nick - Original Message - From: Satish Gupta To: [EMAIL PROTECTED] Sent: Sunday, January 28, 2001 9:12 AM Subject: Does Orion provide Bean-pooling? It seems that the question "Does Orion provide Bean-pooling?" has been asked a few times on this mailing list but never answered explicitly. I'd appreciate somebody answering this question and, if available, how to set it up? None of the configuration files seem to have a provision for it. If it doesn't provide bean-pooling, are there any plans for it? Thanks Satish Gupta
Re: application.log file size
My thought is that you should rotate that log file the same way that many logfiles are rotated. Then it will not grow to 2.1GB. tim. Hey there, Has anyone ever delt with the application.log file size? We ran into a situation where orion died because it could not access the log file. It's size had ballooned to 2.1GB. Any thoughts/ideas? Thanks in advance, -Ken -- /* * Ken Eisner * Developer * Bricsnet US, LLC * Portsmouth, NH * * phone: 603-559-2528 * [EMAIL PROTECTED]
RE: ClassLoader.getResource not working in 1.4.5
From the JDK 1.3 Javadoc for ClassLoader.getResource(): This method will first search the parent class loader for the resource; if the parent is null the path of the class loader built-in to the virtual machine is searched. That failing, this method will call findResource to find the resource. From the Servlet 2.2 Javadoc for ServletContext.getResource(); This method allows the servlet container to make a resource available to servlets from any source. Resources can be located on a local or remote file system, in a database, or in a .war file. Maybe try using the ServletContext.getResource() instead of the ClassLoader? The ClassLoader.getResource* methods do not seem to work properly in 1.4.5. I have been trying to use these methods to load resources from my WEB-INF/classes directory, and they fail every time. After experimenting, I found out that these methods expect to load resources from orion/lib. This seems broken. I would expect that each webapp would have a custom class loader that loads resources from the webapp directories - if I need system resources I can always use the system class loader instead. This is the way other app servers behave. The methods work properly if used to access resources contained within the webapp's jars, but don't work to retrieve plain files. Is this a known problem in Orion? Roger Vaughn __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
RE: application.log file size
Very good question. When doing stress testing, our log files were getting to 200-300M each time. Of course Orion has the file open for "writing", so what is suppose to happen in a production environment? A solution to the Orion developers may be what IIS does, a new log file for each day. Granted that generates alot of log files, but they are easy to manage, and you can write a batch file to either delete them or zip them. Obviously, one big log file is not going to work in production. -Original Message- From: Ken Eisner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 12:25 PM To: Orion-Interest Subject: application.log file size Hey there, Has anyone ever delt with the application.log file size? We ran into a situation where orion died because it could not access the log file. It's size had ballooned to 2.1GB. Any thoughts/ideas? Thanks in advance, -Ken -- /* * Ken Eisner * Developer * Bricsnet US, LLC * Portsmouth, NH * * phone: 603-559-2528 * [EMAIL PROTECTED]
RE: URL Mapping of /*
uh, if nobody replies, please post it in bugzilla TIA JP -Original Message- From: Gerald Gutierrez [mailto:[EMAIL PROTECTED]] Sent: Lunes, 29 de Enero de 2001 15:45 To: Orion-Interest Subject: URL Mapping of "/*" When I map a servlet to /*, and I go to a URL /hello, should not: ServletPath = / PathInfo = hello ??? Instead I get: ServletPath = /hello PathInfo = null If the servlet is not mapped to /*, but instead to /abc/*, then the URL /abc/hello produces: ServletPath = /abc PathInfo = /hello This feels like a bug to me.
RE: Why is Netscape slower with Orion?
Netscape is a CPU pig. Turn its prioriry down and turn Orions up using the task manager. -Original Message-From: Dan DiCesare [mailto:[EMAIL PROTECTED]]Sent: Monday, January 29, 2001 9:58 AMTo: Orion-InterestSubject: RE: Why is Netscape slower with Orion? So how do you really feel :). I agree. We are writing solutions that will have minimal functionality on Netscape and max functionality on IE. From: "Paul Kofon" <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: RE: Why is Netscape slower with Orion? Date: Mon, 29 Jan 2001 17:34:50 Hi, Netscape 4 sucks! Version 6 is even worse - it just won't run applets or even Netscape's own JavaScript! I don't know what those guys at Netscape are doing, making such crappy browsers and allowing IE seem like such a good product (well, I must confess it is). If it wasn't for IE, I don't think most of us would be programming the Web. Regards, Paul From: Konstantin Polyzois <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: RE: Why is Netscape slower with Orion? Date: Mon, 29 Jan 2001 09:40:09 +0100 No it is the crappy Netscape! It takes all your cpu and leaves none for your appserver. Netscape 4 sux big time! /korre -Original Message- From: Huibert Aalbers [mailto:[EMAIL PROTECTED]] Sent: den 26 januari 2001 17:58 To: Orion-Interest Subject: Why is Netscape slower with Orion? Hi everyone, Is it just me or has anyone noticed that Netscape is significantly slower than IE when accessing an application built with orion? Could there be anything wrong with my settings? Thanks, Huibert Aalbers Informix Software _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Get your FREE download of MSN Explorer at http://explorer.msn.com
BUG: Can't cast RMI interfaces in 1.4.5
In one of my webapps, I have to do an RMI call to an outside RMI server. I'm locating the server with a plain old traditional lookup like this: MyRemote server = (MyRemote)Naming.lookup("myserver"); But Orion 1.4.5 complains that it can't load the class MyRemote, even though it is included in my application jars in WEB-INF/lib. This works correctly in 1.3.8. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Virtual Server question
I have read the virtual server documentation on orionsupport.com, and I understand how to host two web-sites with one IP address (ie www.site1.com and www.site2.com) . My question is what is the term for having a domain split into two sub-domains (ie www.site1.com and forums.site1.com)? Would I need to create a separate web application for www and forums? I was wanting to do something similar to www.anandtech.com and forums.anadtech.com and am just curious on the best way to do this. Thanks, Robert Johnson
SV: Pooled Data Source
Hello, why do you use the same location for location and ejb-location? That might not be a good idea. /Niklas Uhrberg -Ursprungligt meddelande- Frn: Daniel Cardin [EMAIL PROTECTED] Till: Orion-Interest [EMAIL PROTECTED] Datum: den 29 januari 2001 17:29 mne: Pooled Data Source Well... it seems I just can't make it work, even though I have read just about all the messages on the subject. datasources : data-source class="com.evermind.sql.DriverManagerDataSource" name="ddsNP" location="jdbc/ddsNP" xa-location="jdbc/xa/ddsXANP" ejb-location="jdbc/ddsNP" connection-driver="com.inet.tds.TdsDriver" username="sa" password="" url="jdbc:inetdae7:theserver:1433?database=test" inactivity-timeout="30" schema="database-schemas\ms-sql.xml" / data-source class="com.evermind.sql.OrionPooledDataSource" name="dds" location="jdbc/ddsDS" xa-location="jdbc/xa/ddsXADS" ejb-location="jdbc/ddsDS" max-connections="2" source-location="jdbc/ddsNP" pooled-location="jdbc/ddsDS" username="sa" password="" inactivity-timeout="30" connection-driver="com.inet.tds.TdsDriver" url="jdbc:inetdae7:theserver:1433?database=test" / the code DataSource ds = (DataSource)ctx.lookup("jdbc/ddsNP"); // have used jdbc/ddsDS as well... the lookup returns an OrionCMTDataSource but the call to getConnection() DatabaseMetaData dmd = ds.getConnection().getMetaData(); raises : java.lang.NullPointerException at com.evermind.sql.OrionPooledDataSource.d8(JAX) at com.evermind.sql.ak.eo(JAX) at com.evermind.sql.ak.ep(JAX) at com.evermind.sql.ap.getMetaData(JAX) at dds_testclient.Frame1.dsTest(Frame1.java:81) Hints anyone ? Thanks! Daniel
Re: Downloading a file via a Servlet
You may try this for download any type of file code //Ns and MSIE need different content type to force download if(-1 _request.getHeader("User-Agent").indexOf("MSIE") ) response.setContentType("message/external-body; access-type=anon-ftp") ; else response.setContentType("application/octet-stream") ; response.setHeader("Content-disposition", "attachment;filename=" + "yourfilename.ext" ) ; response.setContentLength(file_to_send.length()); /code ~boris "Van Dooren, Damian" wrote: I was wondering if anyone knew of a way to get around the following situation: We have a servlet that sends back PDFs that are stored in a database. Everything seems to work great but the one oddity/issue that I would like to solve if possible is. When someone wants to save the PDF, instead of viewing, it wants to save the PDF as the name of the servlet. I understand why this is the case, but I wonder if there is anything, perhaps in the content header, that I could set the actual name of the file. Any suggestions would be greatly appreciated. - Damian Van Dooren Information Technology The Investment Centre (519) 672-4389 x718
Re: Downloading a file via a Servlet
"Van Dooren, Damian" wrote: I was wondering if anyone knew of a way to get around the following situation: We have a servlet that sends back PDFs that are stored in a database. Everything seems to work great but the one oddity/issue that I would like to solve if possible is. When someone wants to save the PDF, instead of viewing, it wants to save the PDF as the name of the servlet. I understand why this is the case, but I wonder if there is anything, perhaps in the content header, that I could set the actual name of the file. Any suggestions would be greatly appreciated. - Damian Van Dooren Information Technology The Investment Centre (519) 672-4389 x718 I couldn't even get IE to recognize that the file I was downloading was a PDF file from a database via servlet, but obviously I missed something you got to work, I would love to know what that is. As for actually saving it, I understand the problem but I haven't been able to get anything to work that will change the MIMI settings that the browser thinks it's reading. IE simply ingnores all of the header information as far as I can tell, and if the URL doesn't describe your download...bummer. Norm Jefferies Senior Software Engineer Dept Of Medicine University of California, San Francisco http://HIVInSite.ucsf.edu
Session EJB Accessibility
Requirements: An EJB to be Stateful Accessible by more than client Share the same data object and information Summarising the above information, I would like to have an EJB that can be called by many clients yet share the same underlying data within the bean. These clients may be another application running under Orion or a stand-alone application. Is this possible, and if it is, what special requirements do I need to meet. I have looked at SessionContext but does this have anything to do with it? Thanks in advance. Mark
Re: Downloading a file via a Servlet
We have a servlet that sends back PDFs that are stored in a database. Everything seems to work great but the one oddity/issue that I would like to solve if possible is. When someone wants to save the PDF, instead of viewing, it wants to save the PDF as the name of the servlet. I understand why this is the case, but I wonder if there is anything, perhaps in the content header, that I could set the actual name of the file. Any suggestions would be greatly appreciated. Most browsers only consider the URL when determining the name to save as. I do not know of any specific header to modify this. To solve the problem in previous systems, I designed the servlet to include the "name.pdf" at the end of the URL, which I used as the servlet's PathInfo. This certainly solves the problem. tim.
Orion mishandles Javascript in JSP
ello, The way Orion handles JavaScript codes in JSP files is totally wrong. The following lines in a script block in my JSP file: document.writeln("a class='toolbar' href='reply.jsp?action=reply' target ='msgform'"); document.writeln(" onMouseOver=\"document.images['reply'].src ='images/reply16.gif'; self.status='Reply to sender'; return true\""); document.writeln(" onMouseOut=\"document.images['reply'].src ='images/reply16bw.gif'; self.status=''; return true\""); document.writeln(" "); ... got translated into this: document.writeln("a onMouseOut="\"document.images['reply'].src ='images/reply16bw.gif';" self.status="" onMouseOver="\"document.images ['reply'].src='images/reply16.gif';" class="toolbar" target="msgform" href ="reply.jsp?action=reply" "); document.writeln(" ; return true\""); document.writeln(" ; return true\""); document.writeln(""); which is totally wrong! It works fine in Tomcat. Is this a bug or is there a work around? cheers romen IT Architect, Business And Data Services IBM GSA TEL: 612-84484716 FAX: 612-84484008 TIE: 84716
Accessing Orion-EJB-Server on one machine from Orion-web-server on another?
What is the best way to configure two installations of Orion, on different machines, so web-server on one can access the EJB-Server on the other? Can this be done through only the configuration files? Thanks Satish Gupta = __ 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges 4 cents Domestic calls with no fees: 5 cents per minute International calls also available http://globetrot.hypermart.net e-mail: [EMAIL PROTECTED] __ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
frustrated - jdbc: No suitable driver
Hi All, I am used to WebLogic, so please pardon my ignorance... I am trying to get my WebLogic application to run on Orion. I have a DataSource set up to PostgreSql. It seems OK because this Orion JSP works fine: InitialContext ctx = new InitialContext(); out.print("brContext: " + ctx); DataSource ds = (DataSource) ctx.lookup("jdbc/DefaultDS"); Connection conn = ds.getConnection(); // Create query and get results Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("select count(*) FROM weathersnapshots"); // List results while ( rs.next() ) { out.println( "br" + rs.getObject(1) + "br"); } // Close connection - important! conn.close(); This runs fine and gives me the count of rows in the table. When I try to get the standalone client to the same DataSource to run, I get this: Context: javax.naming.InitialContext@316e52 Exception in thread "main" java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.evermind.sql.DriverManagerDataSource.getConnection(JAX) at Test.main(Test.java:18) No errors appear on the server's console. I can not imagine why I would want to have a DB driver's jar in my client's classpath (ALTHOUGH I HAVE TRIED THAT). I have an application-client.xml: application-client /application-client I have scoured the list archives and can not find the solution. Remember, within the container, it runs fine. It is the standalone app that does not work. Using: Orion 1.4.5 JDK 1.3 Win2K Thanks in advance. -- Tom Mitchell [EMAIL PROTECTED] Very Current Stoneham, MA Weather http://www.tom.org
Subscribe me
Please subscribe me Thanks
Re: Downloading a file via a Servlet
I tend to put the filename as pathinfo - i.e. /myservlet/made-up-name.pdf?param1=yadda If memory serves me, you need to change the servlet mapping to be /myservlet/* for this to work. HTH, Trevor "Van Dooren, Damian" wrote: I was wondering if anyone knew of a way to get around the following situation: We have a servlet that sends back PDFs that are stored in a database. Everything seems to work great but the one oddity/issue that I would like to solve if possible is. When someone wants to save the PDF, instead of viewing, it wants to save the PDF as the name of the servlet. I understand why this is the case, but I wonder if there is anything, perhaps in the content header, that I could set the actual name of the file. Any suggestions would be greatly appreciated. - Damian Van Dooren Information Technology The Investment Centre (519) 672-4389 x718
Re: Session EJB Accessibility
It sounds like you're describing an entity bean more than a session bean. An entity bean can be called by many clients although access is serialized. And certainly the role of an entity bean is to encapsulate data in a apparently-storage-mechanism-independent manner, from the client's perspective... How does the notion of a session play into what you want the bean to do? Gary Mark Bernardinis ([EMAIL PROTECTED]) wrote: Requirements: An EJB to be Stateful Accessible by more than client Share the same data object and information Summarising the above information, I would like to have an EJB that can be called by many clients yet share the same underlying data within the bean. These clients may be another application running under Orion or a stand-alone application. Is this possible, and if it is, what special requirements do I need to meet. I have looked at SessionContext but does this have anything to do with it? Thanks in advance. Mark
RE: Credit Card Authorization
Thank you Victor for your suggestion. I do not want a secure area within Orion as yet. At this stage I want to get a connection to the Secure Site handling the payment. Do I still need to configure SSL within Orion and have a JCE Provider? When I tried to get a connection I got a java.net.SocketException: SSL implementation not available Is it because I have not configured or because jsse.jar is not found? Gamini de Alwis mailto:[EMAIL PROTECTED] Software Developer Business Manager Software Tel (03) 9813 3022. Fax (03) 9882 5887 -Original Message- From: Victor A. Salaman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 9:21 PM To: Orion-Interest Subject: RE: Credit Card Authorization No problem... create a stateless session bean, and make the connection from there. You should be familiar with the JSSE to create this ssl connection to the credit card transaction acquirer. From this session bean, you create a connection, send the data and wait for a response and follow your business procedures based on that response. some common pitfalls: 1. replace orion's ssl jars with current ones from Sun's site 2. since you are in autralia, you might want to use a different JCE provider, a good one can be found at www.bouncycastle.org 3. generate your server certificate request (keytool) with the RSA protocol. Other than that, you should refer to the JSSE docs... -- Victor -Original Message- From: Gamini de Alwis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 1:46 AM To: Orion-Interest Subject: Credit Card Authorization Hello, I am working on a typical shopping cart type application based on J2EE and we are proposing the Orion Server with our software. I am a bit stuck with the problem of Credit Card Authorization in supplying credit card details to a clearing house and receiving a response. I would like to do this from the server side. The Vendor identified by us wants us to invoke an SSL socket on a given port and send information via a standard POST request and will return a standard response. Both the request and response can and will be stamped with a unique reference. The problem is the single nominated port and the fact that threads are handled within the J2EE container. Perhaps someone has been able to solve this problem and I would be grateful for any suggestions or possible solutions to this problem. regards Gamini de Alwis mailto:[EMAIL PROTECTED] Software Developer Business Manager Software Tel (03) 9813 3022. Fax (03) 9882 5887
RE: Credit Card Authorization
Thank you Brett for your reply. Did you just construct a https URL and send it through a socket (non SSL)? Gamini de Alwis mailto:[EMAIL PROTECTED] Software Developer Business Manager Software Tel (03) 9813 3022. Fax (03) 9882 5887 -Original Message- From: Brett Lane [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:01 AM To: Orion-Interest Subject: Re: Credit Card Authorization Hi Gamini, If your working within Australia, I would recommend looking at the QSI Payment solution, from QSI. We bolted there client into a stateless session bean with minimal trouble, without having to worry about JCE and JSSE, as their client bundle handles most of it. Cheers, Brett Hello, I am working on a typical shopping cart type application based on J2EE and we are proposing the Orion Server with our software. I am a bit stuck with the problem of Credit Card Authorization in supplying credit card details to a clearing house and receiving a response. I would like to do this from the server side. The Vendor identified by us wants us to invoke an SSL socket on a given port and send information via a standard POST request and will return a standard response. Both the request and response can and will be stamped with a unique reference. The problem is the single nominated port and the fact that threads are handled within the J2EE container. Perhaps someone has been able to solve this problem and I would be grateful for any suggestions or possible solutions to this problem. regards Gamini de Alwis mailto:[EMAIL PROTECTED] Software Developer Business Manager Software Tel (03) 9813 3022. Fax (03) 9882 5887