vicky malhotra

Greenhorn
+ Follow
since Feb 05, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vicky malhotra

Hi!

What is the difference between getAbsolutePath and getCanonicalPath methods of File class.

Regards,

Vicky
14 years ago
Hi All,

I am facing a very strange problem. I am using Crystal Reports in a web application on hosted on Weblogic server. Now crystal reports uses a configuration file "CrystalReportEngine-config.xml". So it is kept in WEB-INF/classes.

However when i make a war n put it on Weblogic server, it simply does not recognize it and so gives an error on the console. But when i explode the jar on the same place and run the application, it works. Can anyone tell me what the problem is?
14 years ago
Hi!

I have a very fundamental doubt regarding class loaders. When I deploy a J2EE application on a server, i specify a lot of lib and class sile path in the class loader of the application server. I also have a syatem level class loader. Now what is the order in which these class loaders are called and what all places will they look for the class files? What all things do i need to mention in the system cllas loader n what in the application server?

I am working on weblogic, so it will be great if anyone can explain this with a reference to the weblogic server.

thanks
14 years ago
Hi Jeanne,

i do have the application logs and i can take the date from there, but not all logs are there. So i was looking if the DB does store the date of inserted records.

Anyways, thanx.
Hi!

I have an application wherein i insert some records into the database. i also have a field called date which is date YEAR TO YEAR (Informix). So it takes only the year. But now i need the day and month also. Is there any way by which i can retrieve the day and month when these records were inserted. If i simply alter the table and convert this date to date YEAR TO DAY, then it makes the day n month as 1 by default.

Please if any one has any idea, reply soon.

Thanks

[Bear edit: not so urgent]
[ March 21, 2005: Message edited by: Bear Bibeault ]
Hi!

I have a database administration application and it will be developed using struts.
I need to support internationalisation for it. i.e. the user shoud be able to enter data in any language. Also, i want to store the data in my Database (Informix database) in the same format n not UTF-8 encoded. Then i need to show him the same data.

If anyone has any experience on this please tell me what can be the problems associated n the possible remedies.
Even if u dont know the remedy, please list the problems atleast.

Thanx
14 years ago
Hi!

I have a database administration application.
I need to support internationalisation for it. i.e. the user shoud be able to enter data in any language. Also, i want to store the data in my Database (Informix database) in the same format n not UTF-8 encoded. Then i need to show him the same data.

If anyone has any experience on this please tell me what can be the problems associated n the possible remedies.
Even if u dont know the remedy, please list the problems atleast.

Thanx
14 years ago
Hi!

Let me explain further.
The thing is I have a master table say Country. Now I have 10 more tables that hold different information for that table, say divisions, departments. So when I add a country, ill need to add values in the dept and division n other such tables and link them to the country table via some mapping tables.
If i add the country only, without adding/updating all the other tables, my database will be inconsistent.

So how while the user updates all the tables, i actually need to keep all this updated values locally, then finally make a check that all the tables have been updated and only then do i actually update my database.

Regards,

Vivek
Hi!

I have a application which does database administration. Here there is one table such that if the user updates it, he has to updtae a host of other tables else it will create inconsistency. So i need to carry all the data that is updated and finally after he is done, update the database. So how do i achieve that? there is the option where i keep all the data in an xmll and use xql and finally write to the database. But i am totally new to xml. So any suggestions on how to go abt it will be highly appreciated.

Regards,

Vivek
Hi!

I am getting this error while starting the weblogic server on which my struts application is deployed:

[ChangeAwareClassLoader] : Name is : META-INF/services/org.apache.commons.logging.LogFactory
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[ERROR] ActionServlet - -null <java.net.UnknownHostException: java.sun.com>java.net.UnknownHostException: java.sun.com
at java.net.InetAddress.getAllByName0(InetAddress.java:566)
at java.net.InetAddress.getAllByName0(InetAddress.java:535)
at java.net.InetAddress.getAllByName(InetAddress.java:528)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:198)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:263)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:121)
at weblogic.net.http.HttpURLConnection.getHttpClient(HttpURLConnection.java:123)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:315)
at java.net.URL.openStream(URL.java:793)
at weblogic.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory.java:149)
at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:777)
at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubset(DefaultEntityHandler.java:574)
at weblogic.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1154)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2230)
at weblogic.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2185)
at weblogic.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:916)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:975)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
at java.lang.Thread.run(Thread.java:479)

javax.servlet.ServletException: java.sun.com
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1437)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
at java.lang.Thread.run(Thread.java:479)
[ChangeAwareClassLoader] : Name is : META-INF/services/org.apache.commons.logging.LogFactory
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='ApplicationResources', returnNull=true

I have checked the strutd-config and web.xml. They are all right.

Please if any one knows the problem, do reply
14 years ago
Hi Ankit,

Have you included the entry for this property file in your struts-config.xml. It will be like:

<message-resources parameter="property file name"/>

Please try this and let me know in case of issues.

Regards,

Vivek
14 years ago
Hi Kartik,

I went through the code of your applicationa and i have a doubt. In the "fileList.jsp", there is this logic:iterate tag:

<logic:iterate id="file" name="files">

What does this "files" refer to? there is no such field in the form associated with this JSP. Please clarify the same.

Regards,

Vicky
14 years ago
Hi Vikas,

The problem in your code is with the form tag. There you have written:
onsubmit="return validatestateForm(this);">

It should be onsubmit="return validateStateForm(this);"> This is because the javascript function generated for this will have this namei.e.validate and the form name with first letter in caps.

Just try this and please get back if it does not work
14 years ago
Is there any way by which we can force garbage collector to act? I mean its true that garbage collector will act on any object for which there is no reference. But the garbage collector works on its own. Can we somehow force it to run?
14 years ago
I use the Transport.send to send a mail and give only the mail server host address and not the port number, it senda the mail. Does it not need the port number as well??
14 years ago