help! trying to build dynamic query and get results from user selection!!

767 byte By richwerth at 2007-9-26 7:57:25
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 ...

Persisting EBJ Handles to support EBJ Associations

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 ...

http session

1091 byte By michaeljgarner at 2007-9-26 7:58:31
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 = ...

help

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! ...

Beginning Servlet Problems

364 byte By docmittens at 2007-9-26 8:00:55
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 ...

JMS, JAXM and JAX-RPC what is the difference?

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 ...

CLUSTER ! For real J2EE programmers

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 ...

EJB and Files

80 byte By bhaskarvtm at 2007-9-26 8:01:50
I would like to know whether we can use files in ejb? -v.b.

how to get message content

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 ...

javax.mail.MessagingException: 501 Invalid Address

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 ...

javax.mail.MessagingException: Missing start boundary

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 ...

Error execute query from stateful session bean

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 ...

how to do ejb calling another ejb

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.

Urgent..Help

157 byte By bintoo_shyamal at 2007-9-26 8:05:01
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?

j2ee server not starting

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 > ...

Classpath issues with Spec Verifier

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 ...

FactoryConfigurationError

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 ...

XML documents converts my UTF-8 charecters into

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> ...

compare two xml's in XSL

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 ...

Error while running entity - help needed

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 ...

Saxon as Parser for XML documents

458 byte By jaya-shree at 2007-9-26 8:07:55
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 ...

j2ee tutorial CartEJB

676 byte By suzigriffiths at 2007-9-26 8:09:48
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 ...

Parsing a DTD

577 byte By bsampieri at 2007-9-26 8:09:49
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 ...

JavaMail API Installation Problems - Please Help!

851 byte By java_novice1 at 2007-9-26 8:09:50
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 ...

cannot get initialcontext more than once or twice

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 ...

XML messages over Internet with JMS?

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 ...

Servlet/EJB Hell

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 ...

To create an XML document and load it in to the CLOb column of a table

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 ...

Sealing Violation w/ Java Pet Store

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: ...

iPlanet Directory Server

2359 byte By jdc_forum3 at 2007-9-26 8:12:08
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 ...

Startup error

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 ...

Message Header problem

374 byte By sunthosh_p at 2007-9-26 8:12:27
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 ...

MAIL ATTACHMENT

148 byte By h_butalia at 2007-9-26 8:12:29
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.

What is Enterprise JavaBean and Servlets?

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

EJB newbie... HELP!

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 ...

How to study EJB?It puzzled me!

92 byte By friendy at 2007-9-26 8:14:09
Could you give me any good idea or advice?Share your experience,thanks!

How search some specified article in the all articles in this forum?

47 byte By friendy at 2007-9-26 8:14:10
I can't find the search funtion!

selective subscriber

494 byte By swwong888w at 2007-9-26 8:14:22
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 ...

transport.sendMessage

261 byte By arvind_dhiman at 2007-9-26 8:15:08
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

Using XML to access enterprise data

355 byte By my_dummy_id at 2007-9-26 8:15:34
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 ...

How do I get started with XML ?

266 byte By footprint at 2007-9-26 8:16:18
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.

Suggestions for messaging in 3D multiuser environment

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, ...

EJB concept

771 byte By small_dream at 2007-9-26 8:17:30
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 ...

JMS and EJB

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 ...

JavaMail API and other language support

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 ...

Infor on java mail and charsets

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

How to deal with "White space in address" MessagingException ?

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 ?

Best IDE for J2EE development

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 ...

Error : javax.naming.NameNotFoundException

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 ...

Entity Bean problem

385 byte By FrederikJo at 2007-9-26 8:19:19
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 ...