XML parsing: alternative to sax and dom

210 byte By clarkkentkalel0429a at 2007-11-27 0:23:04
Hi, I am newbie to java, I'd like to ask you if there is any java tool/lib to parse XML documents besides w3.dom and org.xml.sax? If so, can you please let me know where I can download it?thanks.

JDOM DOMBuilder constructor error with boolean argument!!

1689 byte By manishd_2003a at 2007-11-27 0:23:14
Hi,I am very new to JDOM and am trying to compile this little piece of code:import org.jdom.*;import org.jdom.input.DOMBuilder;import org.apache.xerces.parsers.*;public class DOMValidator { public static void main(String[] args) {if (args.length == 0) {System.out.println("Usage: java ...

How to send XML from Client to Server and display the data?

557 byte By Fengyuana at 2007-11-27 0:23:22
Hi, I am now to Java, and now I am going to set up a simple network in the lab.I have created a random array of data and transferred to XML file on my client. Now, I would like to send it to the server. I am wondering how I can put the XML file into my client, and do I need any parser to let ...

problem: Exception in thread "main" java.lang.NoClassDefFoundError: javax/x

1246 byte By ravi.mha at 2007-11-27 0:24:55
hi, i am facing some problem while executing the program about web services,i have followed every step in detail as given in the tutorial Developing web services with j2ee 1.4, its able to compile my program but i am not able to execute the program,the deployment was successful and i was able ...

Populating attribute values

108 byte By ReallyStupidJavaProgrammera at 2007-11-27 0:26:01
Hi,Does anyone know how to populate attribute values of a class from a corresponding XML file?

Packaging multiple EJBs into one deployable unit

486 byte By jha_dipaka at 2007-11-27 0:26:54
Hello,My application comprises three entity EJBs and three session EJBs. Currently, I'm packaging each of these six EJBs into a jar file of its own, complete with the necessary deployment descriptors.I was wondering is there is a way to club these EJBs into one deployable unit (jar, ear, war ...

configuring tomcat....please help.

413 byte By karthik_reddya at 2007-11-27 0:26:56
Hi,I have developed a web service which provides a result after 30 sec. Now i want only two clients to access the web service concurrently. if a third client wants to access teh service at teh same time, the third request has to be dropped. please help me how to configure this on tomcat for ...

xpathSelect="dc:title"

8243 byte By prachisa at 2007-11-27 0:27:21
I am using lucene index for the full text search in my application. I want to enhance the code to search the files using 憈itle of the file?(title search).I think i need to make the changes in 憀iusFilesConfig.xml?file. The code for same is as follows. I tried to use the xpathSelect=攄c:title?for ...

Validating error with JAXP

719 byte By pao_a at 2007-11-27 0:28:06
i wrote a small app that read a COLLADA instance document and convert it to a html document. First I wrote some xsl stylesheets and now I'm using a JAXP DOM parser to parse the instance document and a JAXP xslt transformer to perform the transformation.When I use a non-validating parser it ...

NoClassDefFoundError when creating new MimeMessage

996 byte By Enxiser34454a at 2007-11-27 0:28:07
Hi,I get a NoClassDefFoundError when creating a new MimeMessage object from within a Tomcat web application (Tomcat 5.5.20 and Javamail 1.4). Here is my code:Session session = Session.getDefaultInstance( mailConfig, null );MimeMessage message = new MimeMessage( session );The exception is:Caused ...

TagExtraInfo noclassfound problem(please help)

4829 byte By SheepSheepa at 2007-11-27 0:28:08
Some people have encountered this problem before but nobody seemed to have an answer for it, I digged a little bit deeper (as I am stuck and can't really move on to the next thing until I solve this) and I found a bit more.I have got a jsp file, an actionform file, an actionclass file and ...

ejb Stateful Session bean removal

216 byte By dfghdftha at 2007-11-27 0:28:12
I already got the Handle for stateful session bean .Can i remove a stateful session bean instance using HomeObject.remove(Handle h) method . whether container remove the bean instance physically or not.

Converting XML to Java Objects...possible?

397 byte By GSPa at 2007-11-27 0:28:18
Hi, Am a newbie to JAXB. As far as I read, JAXB has facility to convert "XSD" (not XML) to Java "classes" (not objects). This can be done using xjc compiler. Can XML files (i.e. ones with data) be converted to Java objects (retaining the data from XML files)? If yes, please throw some light on ...

How to: Tomcat 6.0 + JAX-WS

721 byte By Nincaa at 2007-11-27 0:28:24
I would like to develop a web service with jax-ws and tomcat without using net beans (but eclipse). I am quite new to web applications and web services. My problem is, I do not know how to set up Tomcat 6.0 with jax-ws (contained in the j2se jdk1.6) and how to build a simple web service in this ...

Problems with J2EE architecture

864 byte By propjea at 2007-11-27 0:28:31
I have some experience using Java SE and recently wanted to learn more about J2EE. I have read some books and tutorials, but still not everything is clear to me.I am looking for a place where I can manage several tasks on the server. I want to initialize several classes, check database, ...

Annotation Processing Error - Run vs Debug

1690 byte By Mackela at 2007-11-27 0:28:56
Hello,I'm trying to run the Converter Example (Chapter 21 of the Sun's JavaEE 5 Tutorial) with a difference: I've deleted the Enterprise application ("Converter") and I'm using the packages alone: one for the EJB (Converter-ejb) and the second is the App Client (Converter-app-client). No ...

Scheduler in BPEL engine

198 byte By rajaba at 2007-11-27 0:29:42
Hi all,What is the scheduler used by bpel se (like quartz,..)?Is it possible to use this scheduler outside bpel se, in other components (like javaee)?Thank youRaja

'Persistent Identity' vs getId()/setId()

1987 byte By devusr4a at 2007-11-27 0:30:01
Can anyone provide details on how how an EJB3 @Entity's 'persistent identity' works (and how it's different than the entity's @Identity field)?Entity:@Entity class MyEntity implements Serializable{..@Id@GeneratedValue(strategy=GenerationType.AUTO)private Long id;...}Test WebService://First ...

paging

345 byte By stridersuna at 2007-11-27 0:30:11
How does java EE handel paging?If I have a bean that has a collection defined inside of itsay a bean (employee) that has a collection of timecards in it.There may be thousands of timecards so I would not want to retrieve all of them but would want to be able to page through them.how is this ...

java.io.IOException: Unexpected response: 220

3479 byte By Ashitosha at 2007-11-27 0:32:00
Hi,I am trying to read mails from my inbox.I dont get error during compiling the code but get the below error while executing.Can any help me.And also i am able to send mails but can't read it from inbox.Thanks in advance.OutputSession completeStore completejavax.mail.MessagingException: ...

xml to html conversion

120 byte By sun789a at 2007-11-27 0:32:20
hi i am very new for this topic , i want how to convert xml to html using xsl please inform me with out java code

Getting Ljavax.mail.internet.InternetAddress:@1ded0fd in sender field

311 byte By judesebastiana at 2007-11-27 0:32:27
HiI m developing a software for sending and receiving the mail using the java mail api . when i receive the mail the sender name will be display like thisLJavax.mail.internet.internetAddress;@1ded0fdpls tell me how to get ride off coding: ...

James Email Server

490 byte By J2EEHungera at 2007-11-27 0:32:33
Hi,I had installed james in my pc at home. I have an internet connection.I am not able to send mails to external accounts (yahoo / rediff / gmail) from JAMES.can any one please provide your inputs here?ping yahoo.co.in is fine.telnet smtp.mail.yahoo.co.in is giving me a 220 greeting.I am trying ...

java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStrea

7987 byte By sotota at 2007-11-27 0:33:14
Hi all,I'm trying to send mail using Sun Java Studio Ceator 2 IDEusing this codeimport com.sun.rave.web.ui.appbase.AbstractPageBean;import com.sun.rave.web.ui.component.Body;import com.sun.rave.web.ui.component.Form;import com.sun.rave.web.ui.component.Head;import ...

return Document in web service (nb 5.5)

340 byte By abanka at 2007-11-27 0:33:38
Hi guys, i need help here...i would like to build web service in nb 5.5, but i want the return value is a org.w3c.dom.Document. When i tried it, it didn't work, anyone can give me some explanation here...In this case, the web service will return a Document, if a client invoke its service...Thx ...

CorrelationSet in bpel

343 byte By sujaa at 2007-11-27 0:34:30
hi,i have set correlation set in bpel but when iam excuting the process, the properties value of correlationSet in correlationSets is becomming " " and the final result of the process after excution is failing .what is the error here.. why this is happening? plz some one help me..Message was ...

Implications of sharing an entity manager in a web application...

1026 byte By balteoa at 2007-11-27 0:34:33
Hello,I would like to put an entity manager instance into the ServletContext/application scope of a web application. The reason for this is that I want to cache the results of a query (I want to use the query cache) and it seems that I need to put the entity manager either in session or in ...

Hi Guys plz help me in removing this bug...

1595 byte By gopal@tcsa at 2007-11-27 0:35:10
Hi,I am new to ejb3.0.I am trying with simple program in netbeans5.5.I am getting NullPointerException while executing client program.But while deplying the ejb i am not getting any errors....Here is my client programpackage simpleclient;import simpleEJB.HelloRemote;import javax.ejb.*;/** * * ...

Calling a Web Service from Java

508 byte By The_Real_E.T.a at 2007-11-27 0:35:16
Our java guru (who is out sick....AHHHH) created all the calls that are needed to access the web service that he has running. For example the call getLongList(String user, String password) will return a list of all outstanding transactions. He made a jar file that has service has class files ...

Please help ..... simple JAX-WS Example does not work

1175 byte By Nincaa at 2007-11-27 0:36:25
I tried out the simple Calculator Example described at http://weblogs.java.net/blog/vivekp/archive/2006/12/webservices_in.html (Vivek Pandey's Blog).and got following error message typing apt ...: error: Could not get TypeDeclaration for: jaxws_calc.Calculator_Add in apt round: 2Problem ...

SOS!! Simple yes/no question about JPA...

728 byte By balteoa at 2007-11-27 0:37:16
Hello,I have the following environment and requirements:-Tomcat 5.5 (no ejb container)-Latest version of Hibernate-JSF 1.1-A requirement to use JPA-I must use the query cache and the second-level cacheMy question is as follows:What is the best solution?Solution 1. ONE EntityManagerFactory ...

Document object appearing as [#document: null]

741 byte By parag_savanta at 2007-11-27 0:37:20
Hi ,I am using OpenSaml to generate a SAML Response. I am passing an XML document to one of the SAMLAttribute. The snippet from the code is as follows :Document docAttrbXML = formAttributeXML();..... .....SAMLAttribute attr5 = new SAMLAttribute("ApplicationData", ...

retrieve 7 bit mail

15521 byte By yzmewona at 2007-11-27 0:38:58
my code is a very normal retrieve mail from the sample demo from javamail 1.4....i have trouble to retrieve 7 bit mail...pls provide me a solution.....Message from yahoo.com.Unable to deliver message to the following address(es).<jafdcassdsdfhjsfs@yahoo.com>:This user doesn't have a ...

org.apache.crimson.tree.DomEx: HIERARCHY_REQUEST_ERR: This node isn't allow

617 byte By ramkumar_goslinga at 2007-11-27 0:39:47
HI I have to generate more than 1 xml file so that i have while loop inside i call a xml generate method .I creates xml file successfully in first time , in the second pass when it comes to doc.appendChild(root) It shows this error org.apache.crimson.tree.DomEx: HIERARCHY_REQUEST_ERR: This node ...

Displaying email with Rich text format & Images in IFRAME

2817 byte By passion_for_javaa at 2007-11-27 0:40:13
I have embedded a rich text editor in my compose message page. Now that when I mail text with formatted text am recieving the mail correctly. I am able to see the mail RTF. But when I paste images inside the Rich Text editor and when I send the mail, the image is getting stripped out. I am ...

Java Application Server 8.1 can not start

2387 byte By asumotoa at 2007-11-27 0:40:33
I have installed my JDK under "C:\Program Files\java\JDK1.5.0_08\" and i also installed the Java Studio Enterprise 8 which is include Java Application Server PE 8.1. I installed it under "C:\Program Files\Sun\jstudio_ent8\....". When i started my Default Application Server, its show up under ...

Inserting Strings in XML elements

2298 byte By qabpafia at 2007-11-27 0:40:35
I have an xml file that describes the content of an OpenOffice document (content.xml). A node in the file contains a bookmark named 'DateWritten' where data, in this case a date in string format "YYYY-MM-DD" , is to be entered. The node looks like this: <text:bookmark ...

castor in tomcat

725 byte By naekoa at 2007-11-27 0:41:00
i have a small internet application, where i would like to use castor.i included in my project a lot of jars (xerces, castor-xml, castor, etc.)But i still get an error:javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org/exolab/castor/xml/Marshallerthere is no error in source ...

Namespace resolution bug in JAXP, Augmentation bug in Xerces 2J

1405 byte By dufthera at 2007-11-27 0:41:35
Both the Apache Xerces bundled with jdk 1.5, and Xerces 2j have serious bugs that are preventing me from proceeding in my current task.I need to parse an XML document (namespace aware), and validate it in such a way that the default element values are inserted as specified in the schema (as per ...

sending Chinese email

218 byte By rioza at 2007-11-27 0:41:40
I am writing a java application to send Chinese email.However, the Chinese characters shown as a meaningless symbol in the client end. Anyone can give me some examples to send a Chinese email using javamail api?

java.lang.ClassCastException?

7902 byte By nsqsmilea at 2007-11-27 0:43:34
Hi ,AllIn JSC 2.1 , web call Ejb's method, run fine on sun appserver 8.2,but happend error on jboss 4.0.2,as follows:==========================================================================================================================2007-04-11 21:04:12,093 ERROR ...

localhost and external IP for web services?

890 byte By ryanmccolluma at 2007-11-27 0:44:14
I've developed a web service using NetBean5.5 (JAX-WS 2.0) and deployed it to Tomcat 5.5. To access the WSDL and XSD I use the following URLs respectively (where SERVER and PORT is the server name and port on our local ...

Call webservice through URL (without client implementation)

486 byte By Hinanuia at 2007-11-27 0:44:22
Hello,I am a newbie in webservices development. I have created my webservice, invoked it with a java client and everything works well.But I was wondering if it is possible to call a webservice directly by entering a URL in my browser.What I really need to do is to change the href property of ...

Can't create/deploy ejb-based webservice to WebLogic with Netbeans5.5

946 byte By TheRata at 2007-11-27 0:45:00
All,I've used NetBeans 5.5.1 rc1 to successfully create an "ejb-based" web service that I am able to successfully deploy to both JBoss 4.x and Sun's application server 9.2 - but whenever I try to deploy it to WebLogic 10.0 I get an error:[HTTP:101216]Servlet: "WSEE_SERVLET" failed to preload ...

how is SEI used?

215 byte By caesarkim1a at 2007-11-27 0:46:10
I am a newbie to the web service. I am just wondering how it is used. Is the SEI only for the client side or both on the client and server side? I have been googling to find out how it is used. Thanks.

UTF-7 & Unicode-UTF-7-1-1NULL

1988 byte By yzmewona at 2007-11-27 0:47:05
i am getting null for my charset nullam i coding wrongly... ?my content type :ContentType:multipart/report; report-type=delivery-status; ContentType contentType=new ContentType(p.getContentType());String charset=contentType.getParameter("charset");System.err.println("charset:" ...

XSLT - getting the attribute name

361 byte By kk_da at 2007-11-27 0:48:34
hii am new to XSLT. i need a helpi have a xml file and it contains a node with attribute<songs type="folks"></songs>i want to knw how to get the attribute name ie (type) in a XSLT. i got its value uisng the @type function. but i have to get the attribute name.and print it in a ...

Problem in Sending mail thru gmail........

3482 byte By Agpatela at 2007-11-27 0:48:42
i am new to Java mail API,can any one help me out...i have gmail a/c named ajaypatel1724@gmail.com and it is smtp enabled.now i want to send mail from my application.so, i write the following code....but it give some error as describe follow...../**************** Code **************/package ...

Jave EE version

824 byte By AsbjornFa at 2007-11-27 0:49:05
With Eclipse 2.1.3 I am trying to build a project that imports javax.management.MBeanServer by using package org.apache.log4j.jmx.For compatibility reasons I only want my machine to have java sdk 1.3.1 and have therefore removed newer versions of SDK and ensured that my classpath does not ...

Using StAX with xslt transformations in the right way?

1198 byte By perajonssona at 2007-11-27 0:49:16
Hi!What do I need to enable the stax functionality to transformations, and which transformer implementations is supporting this? (or is the implementation irrelevant)I have made the following to create a StaxSource, but is it enought?8<private static XMLInputFactory inputFactory = ...