I need to validate an XML file and throw an exception when duplicate tags are encountered.From the w3c spec. I have the impression that when a sub-element is defined in the DTD as :<!ELEMENT attr_cert (ver,serialNo,own,issuerName,issuerUI,valid,attr+,ext*,sigAlg,sig)>according to the ...
I'm new to XML parsing and would like to know a few things:Where do I get a parser and all .jars needed for XML work?Which one is the fastest?Where is a GOOD tutorial on parsing with Java (not by Sun)?That's all for now!SF
Hello -I'm trying to use the JMS reference implementationand get something to work between two Win2k machines.On a single machine, everything works fine.When I use two machines, I need to configurethe client orb.properties file to point to theserver host and port. This is discussed in ...
261 byte By
primeton at 2007-9-26 1:15:10
Hi,everyone ,please help me! Now I am writing a CMP bean in EJB2.0,and I must define a PK class,but I find there is a column is a foreign key and this column must be included in primary key?How can i deal with it? help please
81 byte By
fly6677 at 2007-9-26 1:15:38
please,how can I use javamail to implementing draft box on webmail
Hello.I''m going into this tutorial http://developer.java.sun.com/developer/onlineTraining/EJBIntro/exercises/DeployingJ2EERI/help.htmlI set set CLASSPATH=D:\oracle\ora81\jdbc\lib\classes12.zip;%CLASSPATH%in ...
I have downloaded the j2sdkee1.3 for comiling my Ejb files.All the files get compiled but my client file which uses javax.naming package doesnt get compiled.The error message says its unable to find javax.naming package. Can somebody help me on this issue please.Thanx
159 byte By
xerokool at 2007-9-26 1:16:26
hi alli have a question here. how do you parse a string to an XML format?an example will be most helpful :)thanks in advance
147 byte By
RohrerG at 2007-9-26 1:17:21
Hi!Has anyone here experience with IBMs WebSphere Commerce Suite or WebSphere Application Server?Regards,Gerhard
612 byte By
ventural at 2007-9-26 1:18:12
Hello!I am an Italian student who studies Computer Science at Pisa University, andI am developing some projects in Java using Java 2 Standard Edition (J2SE) and Java 2 Micro Edition (J2ME, for MIDP 1.0 compliant devices). I need to know if there are some Java API(for J2SE and J2ME) to send SMS ...
hi all i am new to EJB's. i am using weblogic6.0 . i am doing jar and deploying it. but my doubt is with the client program. why should i make the home and remote classes available to my client program(jsp page). what all the classes we have to make available to client and why should we do ...
470 byte By
bkprasad at 2007-9-26 1:18:36
Hi,My apologies if a similar question had already been answered before on this forum.I need to create a DOM tree with values at each node which should be valid in terms of a schema definition. Is there any way I could load a schema and it could hand me back an DOM tree into which I could load ...
I am succeeded in storing & then sending big files as an attachment except for ZIP & JAR files.Can anyone guide me what's the problem with ZIP & JAR files
1739 byte By
pnk_jha at 2007-9-26 1:18:51
hi gurus,i am trying to test sun provided demo programs for testing JAVA Mail API i am getting these errors please help me out ...... thanks in advance DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]DEBUG SMTP: useEhlo ...
Hi,I need to design the framework which will convert an XML tree to an object tree. Is there any standard way of handling this. parser used will be SAX. This will be used by lot of places in the application.
Hi,I am wondering if Fiorano's JMS Test Suite is certified for JMS spec conformance ? I got some responses from other places that the tool is buggy and also mentioned that sun has a JMS Test Suite for provider conformance. Is it publicly available ? if so where can i get them ?Thanks for any ...
HiI want to query a database table from a Stateless Session Bean (SSB). I have the getter and setter methods. And am connecting to the database in ejbCreate and disconnecting in ejbRemove methods. But where should I query the database to retrieve the data? In case of a entity bean it is written ...
186 byte By
Meghna75 at 2007-9-26 1:21:34
Where can I get information about environment variables?Can I set Environment variables through the bean so that I can access using jndi lookup "java:comp/env" path.
249 byte By
mc00db at 2007-9-26 1:22:28
Hello, I already have some good code for attachments but I was wondering if anyone had any idea of how to get the list of local files to pop up when using javamail and jsp, like with a browse button that most web mails have. Any ideas?
In our JSP application, at one point an email will be sent to notify one event. Currently, that is done by using the html tag: mailto. To have more control on the email in tems of context format (a bad layout right now) and others. I would like to have it processed at servlet by using the ...
Hi,I don't know if anyone has contemplated about this before, so in case you have the slighest of idea...please help me with it.If I were to build a medium scale search engine, and I have records(XML) of all the documents I want to search on my disk. Would I rather use the traditional approach ...
180 byte By
nacasuy at 2007-9-26 1:24:04
How do i set the context of a session bean from a JavaServerPage?.I mean, i want to set the context of a session bean with the JavaServerPage session...
hi group,Anybody using ejb in Visual Age tool.?please let me know.B'coz I want to use EJB in Tree stucture.I have one tree.(Visual Composition Editor)In that Tree, I have 2 Nodes.(root is invisible)One is : My BaskatSecond one is: WorldThis World contains all the countries.These countries are ...
640 byte By
JLam at 2007-9-26 1:26:09
I have created a Hangman game that executes by asking the user to input the word to be guessed through a JOptionPane Inuput Dialog Box. The problem is that I want the prompt to be a password text field that initally asks the user for input and the goes away. Is there a way to enable the ...
151 byte By
dritesh at 2007-9-26 1:26:11
Is there anyway by which I can check the validity of email id before sending the Mail.If its there do let me know urgently.
254 byte By
htroche at 2007-9-26 1:27:41
Is there any easy way I can create an EJB client to work over the web. The problem is that we can not open our firewalls to RPCs or RMIs. Any ideas? Any packages that let me abstract IIOP over XML to do this?Thanks,Hugo Troche
632 byte By
kttan at 2007-9-26 1:27:48
I want to have a XSL file to pick up the content of the XML file and fill it to an Input Text Field.The following is my XML file: -Profile.XML--<table><CompanyProfile> <Name>ABC, Incorp</Name></CompanyProfile></table>In my XSL file, the value of Name will be ...
Dear All,Currently i am running weblogic 5.1 for my javamail Application/WebMail. I have copied mail.jar, activation.jar,pop3.jar,imap.jarmailapi.jar in weblogic\jre1_2\jre\lib\ext folder. I get "javax.mail.NoSuchProviderException: No provider " exception when i run jsp page.Balaji ...
726 byte By
silmx at 2007-9-26 1:28:40
Hi,I test an application on J2ee application Server and on stress condition I got a server error:java.lang.OutOfMemoryErrorat java.lang.Thread.start(Native Method)at org.apache.tomcat.service.TcpEndpoint.processSocket(TcpEndpoint.java:246)at ...
248 byte By
sbpyari at 2007-9-26 1:28:56
Hi all I want to create CMP bean without primary key. is it possible.. cos my table fields doesnt have any unique datas and also i dont want to create any column in that table.. Thanks in advancePyari
Is there good ways to test EJB? Including the tools,method and the document?Thanks a lot !
187 byte By
andeka at 2007-9-26 1:29:02
We want to develop a statefull EJB, but we want that all of its instances have the same data. Can we share information between them? (no with a database)Andeka Puente
188 byte By
Anjali_c at 2007-9-26 1:29:32
Hi ,Can I create destinatios run time. If yes , is it temperory or permanant.If any one knows how to do it . Please share it Regards,Anjali
231 byte By
silmx at 2007-9-26 1:29:46
hi,can anybody tell me how to configure a webcontainer for JBoss (Tomcat I suppose)Or point me to a documentation, I think JBoss has a great ... lack of configuration documentation...please
1110 byte By
wvtbg at 2007-9-26 1:30:22
When i want to run a jms application with java <class> I get an error. But when I run it with vbj it works.The error i get is:javax.naming.NoInitialContextException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet ...
358 byte By
MVeena at 2007-9-26 1:30:25
Hi,Are there any ( non-3rd party) API's which support convertion of XML docs to PDF.(I know its possible using the FOP package in the org.apache.fop.* )Is there any in the standard packages ? If yes, can u give me a brief description of how to use it..Its a bit urgent,Thanks in advance,MVeena. ...
I'd like to access an EJB server from an existing client application written i C.Is it possible to do that via JNI? How?Thanks,Hans.
This is probably an easy question but I can't find anyone to help me.I am using the apache.crimson.parser to parse and validate an Xml doc against the BASDA eBIS-XML purchase order schema but i can't get the Namespaces right.I have this at present for the Xml doc;<Order xmlns ...
XML is supposed to become popular because it has been standardized by the w3c , but how much are the parsers and xslt code compatible with each other?I tried to write a xslt using msxml parser and try to run it with a xerces/xalan parser? I had numerous problems making it work and finally gave ...
152 byte By
pouac at 2007-9-26 1:32:19
what kind of problems can occur if i develop an application based on soap protocol with a VB client and java server ( apache server web) ?
can someone explain to me, why it seems to be normal that when people want to share code on this forum, everyone else posts their email-adress and asks to mail it to them...If I had build an killer-app to share with u all (soon, hopefully ...), i wouldn't have the time to mail it you all (I ...
503 byte By
azyang at 2007-9-26 1:32:56
Hi all,I had problem of validating XML instance with Schema using java and xerces release 1.4.1.It seems that the SAXParser only supports DTD, not Schema. The DOMParser, will not even try to validate even though the parser.setFeature( " http://apache.org/xml/features/validation/schema", true ...
1992 byte By
ulukb00 at 2007-9-26 1:33:26
Hi all,I use JavaMail API to send an email, but each time I call the send mail class I define. It sends the message 2 times for each call. I wonder if it's mail server's problem or there is something wrong in my code? I pass in a vector email address to that send mail class, would that be a ...
150 byte By
JMHOWELL at 2007-9-26 1:34:04
I'm new to JavaMail and was wondering if there was a way to connect to HotMail?I do know that it is an HTTP based mail v/s POP or SMTP.
953 byte By
wellards at 2007-9-26 1:34:39
Hi,I'd be very grateful for any help on the following...I used to use the following code to parse an Xml document, using a SimpleElementFactory to create my own class Element nodes...XmlDocumentBuilder builder = new XmlDocumentBuilder();parser = new ...
457 byte By
mrweb24 at 2007-9-26 1:35:12
hello java guru'scan someone tell me how will i get all the attachments(>2) and print each attachments content..part = new Packages.javax.mail.internet.MimeBodyPart(is);for each of the attachment, i want the filename, filecontent in a sort of array or something like vector...content is ...
2430 byte By
bocockli at 2007-9-26 1:35:53
Still trying to understand this EJB stuff.....My BMP EJB returns data to the client in a collection of objects; // Home interface (CountryHome) nothing unusual here public Collection findAllCountries() //Remote interface (Country) nothing unusual here public CountryModel getDetails() The data ...
We have a scenario where external partners will transmit requests to our application, which will reply back with some results. Some of the other requirements for _our_ application are: support for concurrency, scalability, high avail, etc.We feel that using EJBs to model our application will ...
273 byte By
mtndood at 2007-9-26 1:36:18
In the few weeks Ive started learning to use XML together with Java, there seems to be a lot of different parsers out there. IBM is now donated its XML4J to the xerces project. Other than JAXP, what is considered the "best" XML api for Java out there ?
678 byte By
MB_75 at 2007-9-26 1:36:35
I need help on using method importNode(Node importedNode, Boolean Deep). I have three document interface and need to combine it to one. I'm uinsg importeNode() method from Document Interface to accomplish this. Does anyone know if i'm on the right path? I have Document Doc1, Document Doc2, ...