this is my code to fill a drop down<select name="loc"><%int i=0;while (rs.next()) {i++;String location = rs.getString(1); %><option value=<%= i %>><%= location %><% } %></select>this is the default query i run on the page so it doesn't load ...
956 byte By
johearn at 2007-9-26 7:57:51
I am using a published technique whereby the handle of an EJB ("B") is stored as an attribute of another EJB("A"), thus supporting the concept of an association. By the way, I am working with J2EE v1.2.1. After deserializing the handle of "B", I cast it to be the remote interface type and call ...
I need to login to a web server from a java application instead of a browser.I understand that I need to send the server the session cookies and I need to post my login info, but I'm not sure on the details. Here is what I believe sends the cookie back to the serverString thecookie = ...
347 byte By
tehcon at 2007-9-26 8:00:30
I got an error:javax.xml.parsers.FactoryConfigurationError: The specified class "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" is not instance of "javax.xml.parsers.DocumentBuilderFactory"while running the follow line:DocumentBuilderFactory.newInstance();can anyone help me?thank a lot! ...
I am trying to set up my NT box so that I can start developing servlets. I understand that the javax.servlet classes are not part of the jdk, and I _believe_ they are part of of the j2sdkee. I have jdk1.3.1 and j2sdkee1.3 installed, but I can't figure out how to tell the compiler where these ...
559 byte By
alexgnp at 2007-9-26 8:01:25
I am a novice in Java but due to project need, I need to basically create an instant messaging/communication software between client-client. I am currently exploring JMS, JAXM and stumble upon JAX-RPC. What is the difference between the 3 and what advantage does each holds? I have downloaded ...
485 byte By
javamad at 2007-9-26 8:01:40
Hi,please help me, i turn crazy!!I'm trying to create a cluster with weblogic 6.1.The documentation says that each member of a cluster MUST use the same port number.I start the first server and everything is OK.But when i start the second server, a shutdown sequence is initiated because the ...
I would like to know whether we can use files in ejb? -v.b.
350 byte By
linette at 2007-9-26 8:02:08
Hi I am new to JavaMail. I just want to know how do I get the content of the message. The message.getContent() method gives me a boundary error, if I use message.write(System.out), I get the whole message. I have looked at some code, should I use a if statement to see isMimemessage() and go on ...
1763 byte By
ribilla at 2007-9-26 8:02:27
Okay, this one stumped me. Here's the situation: I have two PCs running win ME, connected via a router. I am able to access the internet as well as send/receive mail from both PCs. Both are running tomcat, and both have the same jsp code. However, I am only able to send smtp e-mail via jsp ...
341 byte By
linette at 2007-9-26 8:03:27
Hi all, I want to see the contents of my message, i use the following code where p is an instance of part. At the mp.getCount() part of the code the exception occurs can any one please help me with this ?Object o = p.getContent(); Multipart mp = (Multipart)o;int count = mp.getCount();Thanks ...
3797 byte By
verdi96 at 2007-9-26 8:03:30
Hi,I created a stateful session bean, it's flow are as following:- client invoke open()- client "iterate" using method next()- client invoke close()In open, I get Connection to db-source, create a PreparedStatement, and execeute the query, store in a resultset.In next(), I traverse the ...
199 byte By
jamesyin at 2007-9-26 8:04:46
What do I have to do to program an ejb1 that calls another ejb2? Where do I place the client-jar files for ejb2 so that it is available for ejb1 on weblogic server (6.1)? Thanks.
I need to deploy session and entity beans on WebSphere. Can anyone give me the url for the step by step process of deploying EJBs on WebSphere?
519 byte By
syinka at 2007-9-26 8:05:21
Hello All,I am new into this....I just downloaded j2sdk1.2.1.I have set the following varibles in the userconfig.bat in the bin directory & executed it.set J2EE_CLASSPATH=C:\j2sdkee1.2.1\lib\j2ee.jarset JAVA_HOME=C:\jdk1.2.2And then when I try to run this in Dos C:\j2sdkee1.2.1\bin > ...
511 byte By
chenis at 2007-9-26 8:05:22
If I create an EAR file with the deploy tool, and add utility jar files to it, my ejb jars are updated with the appropriate manifest.mf entries, but the verify tool fails the compliance test on 100's of accounts because it can not find the classes referenced by the EJB's. I assume this is a ...
1027 byte By
harrypb at 2007-9-26 8:05:48
Hi, the problem I'm facing is that, FactoryConfigurationError is occurring at the line where, SAXParserFactory factory = SAXParserFactory.newInstance();But the line before this,Class.forName("com.sun.xml.parser.SAXParserFactoryImpl");is not giving any exception, which means that the class is ...
1785 byte By
DiwakarK at 2007-9-26 8:06:32
//some greek alphabetsdescription = "description ? ? ? ? ?";name = "";String str1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"<object><objectKey><objectId>0</objectId></objectKey><objectAction>NEW</objectAction><name> ...
519 byte By
dhah at 2007-9-26 8:06:50
Hi all,I need to give the user an courses menu showing all available courses with check boxes.First, I already have two xml data. One includes the courses that the user already registered, and the other has all the courses. When the user browse, she/he see the entire list of all courses with ...
805 byte By
amitva at 2007-9-26 8:07:41
Hi everybody,Following is the error i get when i run the following comand,It prepares the std_ejb_jar file and when executing the ejbc command following error ocurs :D:\bea\wlserver6.0\samples\ejb\com\entity\cabin>java -classpath ...
I am using the saxon parser for the first time to parse an XML document. I need to knw if there is any site which explains stepwise with source code on how to use saxon as the parser.I have understood tht the saxon parser uses eventhandlers for each node in the document.what is the diff between ...
Hi,I've set up this tutorial and used the deploytool to deploy it, which parses through the code and all is well, however, after setting APPCPATH=CartAppClient.jarand type the following command -> runclient -client CartApp.ear -name CartClient -textauthI get the following error ...
Is there any plans to include a DTD parser in the next release of JAXP or whatever they make next? I'm looking for a DTD parser if anyone has one available. I'm trying to build an user interface that will be generically based on the DTD and XML file. The DTD would be used to know what ...
Hi everyone, I am new to java mail API and have just downloaded both JavaMail 1.2 and JavaBeans Activation Framework, I already have installed j2sdk1.3 docs and jdk1.3.1.I have unzipped JavaMail 1.2 into the folder c:\javamail-1_2[1]and the JavaBeans Activation Framework into the folder ...
3049 byte By
ugtroy at 2007-9-26 8:10:34
Hi,I am using ColdFusion Server to connect to a local bean. My problem is, I actually am able to connect to the bean once and everything works fine. If I try connecting consecutive times in a rapid paste I eventually get this error:Error Diagnostic InformationUnhandled System exception ...
574 byte By
jwtulp at 2007-9-26 8:10:51
Hello everyone,I was just wondering, is it possible to send XML messages over the internet using JMS? And if so, where can I get some resources about that, and about the nessecary architecture?If this is not possible, what other messaging service would you suggest? I am building a multiuser ...
863 byte By
bctaylor at 2007-9-26 8:10:52
Why is it so difficult to find an example of how to configure a servlet to talk with an EJB. I'm looking for a generic configuration that is not specific to any container. However, I am using Tomcat 4.0 and JBoss 2.4.1 as the Web and EJB containers respectively. I've got the Bean successfully ...
342 byte By
jdk2xml at 2007-9-26 8:10:53
Hi All,I am able to generate the XML DOcument and print it on the screen using XDK by Oracle.My question is how you can take the XML string generated and put it in a CLOB column of a table in the oracle database .I have searched a lot of Web sites.Any help would be appreciated.Thanks ,jdk2xml ...
816 byte By
lichtenw at 2007-9-26 8:11:24
Installed j2sdkee1.3Installed jps1.1.2DeployTool can NOT open the petstore.ear...ERROR: [DeployToolWindow._openApplication:2207]Openning Applicationjava.lang.SecurityException: sealing violationCan NOT build the petstore.ear...Building jar: ...
Hey all!I'm trying to setup JMS for MQSeries which requires an LDAP server to be running. I've installed the iPlanet Directory Server 5.0 and it's up and running. When I try to create a ConnectionFactory in MQSeries (DEFINE QCF(MyConnectionFactory)) I get a NameNotFoundException and a ...
2031 byte By
lpinan at 2007-9-26 8:12:10
when I start up my j2ee server, the system.err file throws out the under messages. ************************Logging for J2EE Server Version: 1.3-b47 started at: Sat Sep 29 14:42:13 CST 2001..Using the Java HotSpot(TM) Client VM and the version number 1.4.0-beta2 from Sun Microsystems Inc..VM is ...
hi, I'am facing problem with message header fields.For some mails, message.getHeaders() method is not returning Message-ID field even though that header is available in that message.What is problem with getHeader () method .Is it not properly implemented?.Can any one suggest solution for my ...
Hey i am working on java mail api can anybody tell me what maximum size attachment a server accepts and is mail api able to handle it.
220 byte By
alexgnp at 2007-9-26 8:12:51
Hi there..I got kind of confused about enterprise JavaBean and Servlets.Are there examples for them to help me understand each of themCould someone kindly enlighten me. Thank uAG
2169 byte By
heRo at 2007-9-26 8:13:29
Hi guys,I recently thought I'd dabble in some EJBs. But my first EJB is not running correctly. This is a simple stateful session EJB, which basically just has set/get methods for a string. I took this EJB straight out of a book, so I don't think there's anything wrong with the code.I have ...
92 byte By
friendy at 2007-9-26 8:14:09
Could you give me any good idea or advice?Share your experience,thanks!
47 byte By
friendy at 2007-9-26 8:14:10
I can't find the search funtion!
I am using JMS and want to use it to do some load balancing works.My plan is to have several subscribers to listen to the same topic and make only one subscriber to receive the message. Thus, I could have several servers (the subscribers) to serve a client (the publisher). And, even some of the ...
Hi, In my program if I send a mail using Transport.send(message).... it is going in HTML format.. but if i use transport.sendMessage(message,...) it is going in plain text.. If somebody can tell me what is wrong...thanx,Arvind
I want to to be able to store required data from various databases and sources in XML files on the server and then access that on demand through browser. Is there a way to achieve it in a simple way rather than using expensive engines like ones provided by companies like XML Solutions etc.Would ...
I need to do a project in java to check information as well as to extract information from an XML document.Can anyone tell me how to go about doing it ?I would appreciate if there's some sample codings for me to look at.Thank you.
392 byte By
jwtulp at 2007-9-26 8:17:07
Hello everyone,I am building a 3D multiuser environment. Any suggestions on what kind of messaging I should use? Streaming or not? Asynchronous or synchronous? XML with SOAP, or JMS? It should be a broadcasting network, because users should be able to interact at realtime. Any hints, tips, ...
Hi,I am now develop my app on J2EE platform using EJB, i read through quite a lot of doc and books to find out when, where and why we should use one type of beans(Session/Entity) instead another. I too had some examples which had the following architecture.From JSP -> JavaBeans -> Session ...
555 byte By
s_sabel at 2007-9-26 8:18:00
Hi,I am trying to combine JMS with EJB. I want to use JMS to send messages from an entity bean to clients. I do not want to use the java:comp/env/jms as the environment subcontext for JNDI. When I lookup QueueConnectionFactory I get a warning:Warning : Illegal connection factory access to ...
660 byte By
sarumii at 2007-9-26 8:18:04
Hi, I used the JavaMail API in a feedback form using JSP. All went well,but it has been discovered that if french accents (characters) are used in the form we get an error message:"This message uses a character set that is not supported by the Internet Service. To view the original message ...
209 byte By
sarumii at 2007-9-26 8:18:21
I am trying to find out more information onjava.mail.internet.contentType andjavax.mail.internet.MimeMessageI can't get there, can someone provide a URL PLease.Thanks
285 byte By
saintlos at 2007-9-26 8:18:22
Hi All !I have a problem : when getting a message in which one of the recipients has a white space in address (i.e. "Some recepients@technion....") - the above exception is thrown if I try to use Message.GetRecipients() method... Can someone help, please ?
1023 byte By
engheim at 2007-9-26 8:18:30
I am trying to find out which Java IDE is best for J2EE development. The application is supposed to be a demo so it wont be anything heavy duty. It will only run on a computer with a single user. At the moment I have tried out both JBuilder and Forte. They are quite different and I am not sure ...
3082 byte By
dionisia at 2007-9-26 8:19:06
I have an entity EJB (I call it Account). When I tried to run a jsp that refers to that ejb I received the following error:javax.naming.NameNotFoundException: Name Account is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at ...
Hi,I'm new at developing EJB's. I've created a home-, remote-, a bean- and a client class. I've read something about a deployment descriptor.. do I have to do it manually or is it generated automatically ? How do I have to deploy the entity bean ? Is there a tool for deploying it ? Is there ...