problem withgetParentNode()

472 byte By amin_rashid at 2007-9-26 3:14:33
while retreiving data from xml filei wrote the codeNode desc3ValueNode = currentDesc3Node.getParentNode();where currentDesc3Node is a child nodeNow when i sayif (desc3ValueNode!=null){Node desc3NameValueNode = desc3ValueNode.getParentNode();}the value of desc3NameValueNode is coming as null ...

Problems publishing Object Messages

615 byte By sathyaS at 2007-9-26 3:16:40
Hi,I create an object message to publish to a topic.But that object's class was loaded by a custom classloader (The Application which tries to publish the message was loaded by the system's default primordial classloaders).When I try to do this.javax.jms.MessageFormatException Exception is ...

How to stop parsing XML in SAX

311 byte By Nik_Java at 2007-9-26 3:17:08
Hi,I'm using "standard" XML library by Sun.The parsing model is SAX (extending DefaultHandler).How do I signal the XML parser to stop parsing?(the reason is for example a data error is encountered and there is a need to cancel parsing any further)Thanks. ...

ADVANTAGES OF IMAP OVER POP3 IN JAVAMAIL

201 byte By mchaganti at 2007-9-26 3:17:22
Hi Everyone,Can any one explain me about the advantages of using IMAP over POP3 in JavaMail. I'll be greatly appreciate if anyone help me out.Thanks in advance,Chags

EJB using JCE

807 byte By gmiller999 at 2007-9-26 3:17:25
Hello everyone....Recently I've been trying to use JCE 1.2 in order to decrypta username. This is supposed to be done through a jsp invoking a bussiness method through the bean's remote interface. However, when dynamically creating a provider through :SunJCE newProvider=new SunJCE();the ...

XML Problem

181 byte By tnr009 at 2007-9-26 3:18:08
I need to have elements created whenever theuser selects an xml tag from tree or element panel. Does anybody have ideas on how can I achieve this?

XML and XSL(T)

182 byte By jbetanco at 2007-9-26 3:18:28
Hi, I need to transform a XML Dom using a xsl file to show html.Ive read that I need the packagesjavax.xml.*;Where could I find them.?thanks

xml and ![CDATA]

483 byte By ksella at 2007-9-26 3:18:38
HiI have an xml file with the following element : <paragraphSummary><![CDATA[><p>Today is Tuesday.</p>]]></paragraphSummary>If I am using DOM how is it possible to obtain the data within <![CDATA... (that is ><p>Today is Tuesday.</p>). As I ...

urgent please help

123 byte By ga11 at 2007-9-26 3:19:56
hi,Will anyone kindly let me know if it is possible to run j2sdkee in win 98?Thanks.G.P.

Entity Beans store and update rows. Urgent!!

495 byte By BayoD at 2007-9-26 3:20:21
Good morning:I use a CMP for each row in a table.I have a CMP, with ejbCreate, ejbRemove and ejbStore methods. In the home I have the create method, but not the remove and store. With VisualCafee I can promote de ejbCreate methods to the home interface, but not the store and remove. The ...

Map entity bean to multiple databases or tables.

507 byte By jaco@cyberseal.co.za at 2007-9-26 3:20:57
Can I use one entity bean to manage the same table in multiple databases. Or the same table type with diffrent names.I want to create an application where a customer applies online for a web service. With application a new database or table will be created for the customer. There might be 1000+ ...

J2EE server and session beans

701 byte By msyal at 2007-9-26 3:21:16
We need to develop application using J2EE specification. The application core desing is already made and we now want to switch to application server . The app server is still not decided and will be decided later by client.Can we start developing in J2EE app server , since it is a test server ...

Start up

72 byte By shemimkamal at 2007-9-26 3:21:42
I' interested to learning JSP.Where should I start

EJB Stateful

386 byte By icalv000 at 2007-9-26 3:21:44
Hi! First see the scenario:I Have one Stateful Bean which name is "BeanSF". A client request one page and the page made instance of my BeanSF. My question is:When the client close the navigator window or change the url location to another site, Can I detect this "event" and destoy my ...

How can i create a connectionPool in BMP?

83 byte By beulaamar at 2007-9-26 3:21:46
How connectionPolling handled in BMP?Application server is websphere.

J2EE server with JSP

341 byte By msyal at 2007-9-26 3:21:51
In J2EE server we need to add a web component to include our jsp file . But evertime JSP file is changed the new file is to be added to the web component . The aplication is undeployed and then deployed againIs there any other way that modified JSP file cane used without undeploying and ...

Can I FAX with JAVA MAIL?

172 byte By achintya77 at 2007-9-26 3:22:14
Any body can help me with some key code to fax with my Java mail? What are the other requirements apart from JAVA MAIL API?Thanking you Achintya

Thread in a session Bean

337 byte By jsjsjothi at 2007-9-26 3:22:21
A servlet invokes an SessionBean (Stateless)In the Bean , I have a thread which is constantly monitoring a column of a table.This bean is just invoked by the Servlet and the thread gets on.This thread had to killed (ie the instance) from a servlet.How to kill this thread or the instance. ...

Parse an InputStream!

1283 byte By ermahen at 2007-9-26 3:22:55
Hi I have a problem with parsing an InputStream from a host. I allways get the a error message (stated below).Is there anyone who know how to solve this problem?Is it possible to parse the InputStream and ignore <!DOC....../> line?//Ante Error-message:**************ERROR reading URI: ...

Reading String output into a xmlFile..

198 byte By sumanth_kumar at 2007-9-26 3:23:23
Hi, When i am getting output as a big string but it is a xml file. I want to save that string as xml file in the program it self. any sugessionsthanks

SOS!

254 byte By billpark at 2007-9-26 3:23:33
When I run a class in JBuilder5, it goes well.But when I run it in a command line, it does not work!Dose JBuilder5 use java.exe?This program is used to read a XML file by JDOM.That is WHY?Thank you!

SAX error with Sun tutorial

1747 byte By interfr4stic at 2007-9-26 3:24:10
Hello,I'm looking at the different ways to parse XML files using Java and currently I'm stuck with SAX. I'm following the JAXP tutorial here at the Sun site and I can't manage to run the echo example: http://java.sun.com/xml/jaxp-1.1/docs/tutorial/sax/2a_echo.htmlSeveral posts here pointed ...

Using JMS for automatic alert

742 byte By javanovice at 2007-9-26 3:24:27
Hi, guys,I am now working on a new project. It is similar to stock price alerting. I have some investment bank account and I would like to set an alert which will be sent to the customer via email automatically. If the amount of money in that account drops to a limit, the customer has to be ...

Applet communication with XML

1560 byte By CHeine at 2007-9-26 3:24:39
Hi there, hope someone of u could help.I'm writing an application with an Applet & Servlet communication. To minimize the object casting in the communication i will reduce the communication (its a DB request between client & host) in XML. The biggest part of my application is running ...

what could be the causes for this Error

243 byte By me_elf at 2007-9-26 3:25:01
"Invalid at top level of document,line 3, column 59"I get this error when trying to display an XML file in browser window,I need to get an \advice from u guys that what are the possible causes for this error.

Deployed petstore, but couldnt open on the browser

1593 byte By kvidya at 2007-9-26 3:25:27
Hi Everyone,I deployed Petstore using j2ee with out any problems, but then when i try to open it in browser using url http://localhost:8000/estore/index.html it gives me an error that application is not found and if i see j2ee dos prompt, the exception looks like ...

Parsing Error

4846 byte By abilal71 at 2007-9-26 3:26:30
I am using this program to parse a XML file and that's the error I am getting....Code:import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import org.w3c.dom.Document;import org.w3c.dom.Node;import org.w3c.dom.NodeList;import org.w3c.dom.NamedNodeMap;import ...

problem in connection pool

5149 byte By paruchurink at 2007-9-26 3:27:52
hi alli have created a datasource in weblogic6.0 connected in to database in EJB. But the problem is on weblogic server consol it is thorowing exceptions in equal intervels of time.is it a problem with any one of the attribute values likelogin delay seconds,refresh period, shrink period. i am ...

Xml parsers supported by JAXP1.1

229 byte By lavinarp at 2007-9-26 3:28:31
I'd like to know the xml parsers and their versions supported by JAXP1.1. although crimson.jar is the default parser provided, but i want to use a different parser. I need the answers urgently,Thanks.

How to ignore DEAMON mails?

699 byte By hikiran at 2007-9-26 3:28:42
hi,I've developed a discussion forums and in that i've added the feature"Email notification", so whenever an update is made to the topicmy server is sending a mail to all the users who have set the emailnotification to that topic.But some users may not be giving the genuine email id, ...

EJB

58 byte By subbumca at 2007-9-26 3:28:56
in which site i can find some example on ejb

is it safe to store reference?

1549 byte By verdi96 at 2007-9-26 3:29:05
I'm new to EJB, I've read about dynamic loading in EJB to improve performance. Is it safe to store a reference to object returned by InitialContext, because I assume that InitialContext returns an object representing the "class", not the "instance"?For example:public class SomeBean extends ...

Date update in database

483 byte By arsiva at 2007-9-26 3:29:31
hi everyone,I am curently using a EJB arct. on a Weblogic server.I have a swing client contacting the server. I have a Oracle database. My problem is , When ever I set a date in the client, it goes one day less (exactly 5.30hrs less)to the server and get updated in the database.When it goes ...

javamail problem in fetching mail from pop3

642 byte By shony at 2007-9-26 3:30:30
when i run a prograam to fetch mail from pop3 i get a exception asException in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStreamat com.sun.mail.pop3.Protocol.multilineCommand(Protocol.java:284)at com.sun.mail.pop3.Protocol.top(Protocol.java:179)at ...

Recognize different MIMEtypes?

361 byte By ermahen at 2007-9-26 3:30:46
Hi!I have a problem with MIMEtypes.If one have a MSWord document and changes the extension from word.doc to word.jpg. Is there a anyone who know how to recognize the "true" MIME type. It is a word document but MIMEBasicPart.getContentSubType() don't recognize the word document.Any one who can ...

Representing Objects as XML

361 byte By Steven W at 2007-9-26 3:31:05
Hi,I need to convert a runtime Object into an XML representation. Does anyone know the best way to do this? I have looked at implementing XMLReader and generating SAX events, but this assumes a stream based input. Is it possible to describe an Object as XML using the Java API's or should I ...

Get mail in raw format

897 byte By ChrNil41 at 2007-9-26 3:31:28
I'm stuck with a problem. When I try to use the .writeTo() function to get a mail in "raw format" into a String the OutputBuffer reaches a NullPointerException.But when I pass it to a file everything works ok!Anyone having some ideas of how to have the text into a String variable instead of ...

how to use Weblogic Server 6.1 build.xml with ant

509 byte By balajilogsan at 2007-9-26 3:32:07
Hi Java'sI have downloaded the latest version of BEA Weblogic server 6.1,they have changed the build.cmd to build.xml for compiling and building the ejb applications.they are telling that we have use $ant to run the build.xml but i couldn't able to do that.i'm getting "command not found ...

Decrpting attachment from unix text mail

3946 byte By mchaganti at 2007-9-26 3:32:59
HI Everyone,I am facing a problem in decripting the attachment and also the body message from a text file(ie mail) which i am getting from a unix system. I am expecting the problem in using steams. I really appreciate if anybody helps me and aso my advance Thanks.--CODE, unix mail message and ...

Simple Question

180 byte By kyleb at 2007-9-26 3:33:05
Why cant anyone answer it?Can someone tell me what a callback method is or what situations they are used in? I can't seem to find a real definition anywhere.

Physical Deployment of a J2EE application

741 byte By mhartman at 2007-9-26 3:33:58
I may have missed something in my research and training in J2EE and EJB but is it possible to physically separate the tiers of the application. That is, the JSP's and servlets within a web container run on a physically different machine than the EJB's in the EJB container. And usually, the ...

XSL for starter

311 byte By SSingh73 at 2007-9-26 3:34:05
I am new to XML/XSL world. Finding it really difficult to XSL processes the XML tree. I am getting unexpected nodes to be selected using XPATH expressions. Can any one suggest any good books on XSL for starter or any web site for learing XSL. Any other tips will be greatThanks,Sunil ...

Some strange SAX behavior

950 byte By rgarabedian at 2007-9-26 3:34:07
Hi,I'm somewhat new to SAX processing. I have a simple program that uses the SAX parser. In testing this code, I've noticed some behavior that I find strange. Can anyone veryify if what I describe is expected behavior?1) Parsing an element with no data, like <element></element>. ...

How does a client handle my CallBackHandler in code?

904 byte By 6tr6tr at 2007-9-26 3:34:16
I want someone to start an initial context and then when they try accessing a bean, I have my loginmodule send them a callbackhandler. What would the code need to be for them to handle something like that? Would they call my loginmodule and then do "while()" or "wait"?Or can they do it with ...

parsing errors with CDATA tags using oracle xml parser v2

1124 byte By mantenbr at 2007-9-26 3:34:34
I'm using the oracle.xml.parser.v2 parser to combine agenerated xml document from a database with a staticxsl file to produce html. Within the xml document, thereare fairly large CDATA sections (500 lines) which happento contain javaScript.Occasionally, I'm getting xml tags in the final ...

parser.jar file is missing in JAXP 1.1

188 byte By sundance at 2007-9-26 3:34:39
How come I don't see any parser.jar file in latest version of JAXP 1.1? My application is expecting a parser.jar file.Where do I get the previous versions?TIA.

ResourceException when opening a new connection

370 byte By ananthaneni at 2007-9-26 3:34:45
Hi, I am getting ResourceException when opening a new connection without closing the previous connection.I am using WebLogic6.0 as application server.Please tell me whether i have to do any modification in deployment descriptor or anywhere else to get the new instance of a connection.Please ...

Message.getRecipients() in java mail API

305 byte By metalcure at 2007-9-26 3:35:11
Hi~~I got a problem about method Message.getRecipients().When I setthe parameter to Message.RecipientType.TO,it works fine and I can get thecorrect data.But when I set it to Message.RecipientType.CC, exception occurs:java.lang.NullPointerException.Can you explain?Thanx! ...

How Can I use a same Stateful SessionBean from serval JSP ?

255 byte By lml919 at 2007-9-26 3:35:21
I can pass some data by session between two JSP or between JSP and EJP ,However I don't whether I can use /share some data get from a EJB(stateful Session)in several different JSPs ?Any help would be greatly appreciate!

java.io.FileNotFoundException when deploy converter in Tutorial

421 byte By huigao36 at 2007-9-26 3:35:47
I try to deploy converter application in the Tutorial. Always got the following Error:java.io.FileNotFoundException: http://10.1.5.104:9191/converter/ConverterAppClient.jarchecked in examples/src/converter. The jar file is not there. But I found the jar file in ...