Re: classpath issues??

2002-02-06 Thread Jacky Cheung

You can put allsrc.jar under WEB-INF/lib of your webapp. Or you can put the
jar in ear and add an entry "Class-Path: allsrc.jar" in the manifest file of
the ear.

Best regards,
Jacky

- Original Message -
From: "Dan Ascheman" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 10:24 AM
Subject: classpath issues??


> Ok, I've created an application (.ear file) which has successfully been
> deployed, BUT my servlet in my .war file blows up on a runtime exception
> because it can't find it's base class, or helper classes.
> I have a .jar file called "allsrc.jar" that contains all classes in my
> system, and that resides in my .ear file - I thought that would be enough
> for my servlet to see it, but it's not.  I tried putting the "allsrc.jar"
in
> my "d:\orion" directory and it didn't work, and I tried referencing it in
my
> classpath upon startup like this:
> java -cp="d:/orion/fwrk/allsrc.jar" -jar orion.jar
>
> Nothing seems to work!!  The only way I can get my servlet to successfully
> run is to unjar all of my classes into my web-inf/classes directory, and I
> don't want to do that.
>
> So, where do I put my allsrc.jar so my servlet can find the classes it
needs
> to run??
>
> thanks,
> Dan
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>





Re: Servlet JDBC character conversion problem

2001-10-15 Thread Jacky Cheung

In Oracle, you can use UTF-8 to store data to avoid conversion problem.

Jacky
- Original Message -
From: "Eduardo San Martin B." <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, October 16, 2001 8:36 AM
Subject: Re: Servlet JDBC character conversion problem


> Gustavo:
>
> I had a similar problem using PostgreSQL. I solved it changing my
> database encoding to UNICODE, which is what Java uses for String
> representation.
>
> Hope it solves your problem. Regards,
>
> Eduardo San Martín.
> Concepción - Chile.
>
>
> Gustavo Comba wrote:
>
> > Hi,
> >
> > I'm having a strange problem. I'm developing a J2EE Web
> > Application, with Entity Beans, Servlets, JSPs and so on. I've
> > started to get character conversion problems, and I've isolated
> > the piece of code giving me problems.
> >
> > The code is:
> >
> > DriverManager.registerDriver(new
> > oracle.jdbc.driver.OracleDriver());
> > Connection con = DriverManager.getConnection
> > ("jdbc:oracle:thin:@oraclehost:1521:orcl", "user", "password");
> > dumpTable(con, out);
> > String updateStatement = "UPDATE IDIOMAS SET IDIOMA = ? WHERE
> > IDIDIOMA = ? ";
> > PreparedStatement prepStmt = con.prepareStatement
> > (updateStatement);
> > prepStmt.setString(1, m_Idioma);
> > prepStmt.setLong(2, m_Id);
> > prepStmt.executeUpdate();
> > prepStmt.close();
> > con.close();
> >
> > Where "m_Idioma", which is a standard java.lang.String, which
> > eventually is "Español", and m_Id is a long with the primary key
> > of the record I want to update.
> >
> > If I paste this code into a JSP, then I get the desired
> > result, BUT, if I paste and run the code from a Servlet (exactly
> > the same code), then my "Español" becomes "Espaýol"... I've
> > tried almost everything, I've runned the Servlet on the J2EE
> > server and locally whit the debugger, and the same result.
> >
> > My DataBase server is a Oracle 8.1.7 Database, and I'm using
> > Oracle 9i Application Server OC4J (the Orion AS).
> >
> > The problem is the same with "á", "é", "í" and so on.
> >
> > I'll apreciate any kind of help you can give me.
> >
> > Thanks in advance, and please forgive my English.
> >
> > Gustavo Comba
> >
>
>
>
>
>





Re: help jsession problem -urgent

2001-05-24 Thread Jacky Cheung

Kesav,

It seems that your are using url rewriting to track sessions. According to
the Servlet specification, for session tracking using URL rewriting, a path
parameter should be added. I think the url should be...

http://localhost/vms/servlet/Logout;JSESSIONID=x?fileName=blah

You can find the information in SRV.7.1.3 in the specification of Servlet
2.3 PFD2.

Best regards,
Jacky

- Original Message -
From: "Jeff Hubbach" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 12:35 PM
Subject: Re: help jsession problem -urgent


> Kesav,
>
> Do you mean to have the URL:
> http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x
> ??
>
> It looks like you have a semicolon where an ampersand should be:
> http://localhost/vms/servlet/Logout?fileName=blah&JSESSIONID=x
>
> The correct method of separating multiple URL parameters is with an
> ampersand,
> not a semicolon as you sent.
>
> Jeff Hubbach
>
> On Thu, 24 May 2001 19:16:14 -0700
> Kesav Kumar <[EMAIL PROTECTED]> wrote:
>
> >I am using a URL
> >http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x
> >
> >In my servlet I am accessing the fileName by
> >request.getParameter("fileName")
> >I am getting the following value 1;JSESSIONID=x
> >
> >Why doesn't orion strips out the jessionid from the name value paris of
> the
> >request.  It seems it is happening in the new version only.
> >
> >I am using 1.5.1 version.  I haven't seen this problem in the previous
> >versions.  Is there some thing I am missing or is it a bug?
> >
> >Thanks.
> >
> >Kesav Kumar
> >Software Engineer
> >Voquette, Inc.
> >650 356 3740
> >mailto:[EMAIL PROTECTED]
> >http://www.voquette.com
> >Voquette...Delivering Sound Information
> >
> >
>
>
> --
> Jeff Hubbach
> [EMAIL PROTECTED]
>
>
>