873 byte By
nort_de at 2007-9-26 4:36:42
hi,i found a possibility to solve my first problem. i want to solve it with xpath. i have downloaded the xalan2 and tried to run an example.<document><POroots><db>test</db></POroots></document>when i say:String xpath = "/";the output is the whole xml file. ...
341 byte By
jamesliJ at 2007-9-26 4:36:51
I have downloaded J2EE and tried to compile some classes of ejb but its complaining that it can not find EJBObject. It says:connot resolve symbolsymbol :class EJBObjectLocation: interface ......public interface Interest extends EJBOjectPlease commet what this meantsJames ...
175 byte By
gla at 2007-9-26 4:37:09
I use J2EE 1.3 b2 with CMP and I can't edit or view SQL queries in entity bean deployment setting.I can't find any method in method list!any idea
422 byte By
gasser at 2007-9-26 4:37:27
Hi all: I 'm using brokat advanced server which supports only stateless session beansI want to share some data between ejbs that i've wroteis there a way.i've tried putting the data in a java bean with a session scope and i passed the data with every ejb call.but what if i want to modify the ...
514 byte By
maasg at 2007-9-26 4:37:52
Hi,We're prototyping on the J2EE RI 1.3 B3. We are not able to add a server other than 'localhost' to deploy to.Sure we have an IP stack, sure we have an IP (or a DNS server for that matter). I looked on the config files and documentation without much success.I've also been searching in the ...
323 byte By
skarunam at 2007-9-26 4:38:47
Hello, I have an xml structure as follows:<Title Description = "Hello World"><Hello>RHW</Hello></Title>For the tiltle i have to extract the value at node hello. Can anybody help me in solving this problem.Thanks in advance.Reg,sk ...
1043 byte By
RodLoos at 2007-9-26 4:38:51
I'm using JDOM beta 7, and I have problems building certain XML documents when I try to read them from a URL using SAXBuilder builder = new SAXBuilder();document=builder.build(url);I get an "invalid XML character (Unicode 0x13) was found in the element content of the document" error. However, ...
633 byte By
ledford at 2007-9-26 4:40:27
I'm working on a system which automatically generates entity beans and one use of this technology is to make legacy databases available as entity beans.I'd like to provide entity beans as an incremental integration approach for databases which are still being used by legacy systems. To do ...
606 byte By
beattris at 2007-9-26 4:40:51
Hi all,I'm using the JavaMail 1.2 API to send email to an SMTP server and I'm having a problem with invalid addresses. I'm using the Transport.sendMessage(Message, Address[]) method. The API docs says, ". Also, if any of the addresses is invalid, a SendFailedException is thrown. Note ...
395 byte By
pcam at 2007-9-26 4:42:03
Hi All, I have developed a JavaMail Application using JBuilder4Pro. It works fine when I run it without creating a JAR (including attachments). However if I package everything into a JAR JavaMail starts to work differently. I can still get all the message details but I can not see any ...
1227 byte By
usam at 2007-9-26 4:42:37
Hey,I build an Document with following code:DocumentBuilder builder = factory.newDocumentBuilder();document = builder.newDocument(); Element root = (Element) document.createElement("Root");document.appendChild(root);I write it to a file:TransformerFactory tFactory = ...
151 byte By
e_moon77 at 2007-9-26 4:42:50
the error is Internal Servlet Error, the description is " Cannot create bean of class". Please tell me the possible cause, thanks a lot!
Dear all, I am a beginner of JavaBean. I would like to know how to start the JavaBean in the JSP Container. Because when i execute the *.class file, there is a error that "Exception in thread "main" java.lang.NoClassDeffoundError : "how can i execute the *.class when it is without the "public ...
820 byte By
ko5tik at 2007-9-26 4:43:34
I developed a bean, say to provide sequence numbers. ( for other beans )This bean is needed virtually everywhere, solooking it up each time is very verbose. So I developed a class with some static members:private static InitialContext ic = null;private static SequenceHome sh = null;private ...
1097 byte By
nusa at 2007-9-26 4:44:30
Hi,I need your help.I just download the J2SDKEE1.3 beta-2.I've setup the env variable J2EE_HOME, set J2EE_CLASSPATH to %JDBC_HOME%\classes\jconn2.jar (Sybase JDBC Driver) ,JMS_HOME set to J2EE_HOME ( default).When I run "j2ee -verbose", here what I have :Syntax errorSyntax errorSyntax ...
3426 byte By
amtanoli at 2007-9-26 4:45:55
i am using weblogic 5.1. i am trying to run the jms example. pl have a look on my code.///////////////////////////////////////////import java.util.*;import javax.naming.*;import javax.jms.*;public class TangoSender {public final static String ...
214 byte By
RilwanJ at 2007-9-26 4:46:07
Hello,Can someone please tell me how to use XML in Swing Applets. Is it as easy as importing the XML package into the Applet code, or do I have to do more than that?Thanks,RilwanJ
1923 byte By
yue42 at 2007-9-26 4:46:10
anyone used the xsltflat 2.0 to do flat to xml transformation? it does it by using xalan extension... the packate is com.fs.xalan.extensions.* and test.com.fs.xalan.extensions.*anyway, it works fine when I do it from command prompt... however when I tried to do it by calling it over Tomcat, the ...
1640 byte By
essmith at 2007-9-26 4:46:19
I am trying to build the converter example on page 48 of the J2EE tutorial using ant. Ant seems to choke on the following line from the build.xml:<property environment="myenv" />The output of the "ant converter" command is:Buildfile: build.xmlinit:BUILD ...
926 byte By
falocite at 2007-9-26 4:46:30
I wrote a JSP Web Mail application that is hosted on Apache 1.3.14 and Tomcat 3.2.1. The server is RH 7.1 Linux. I am using JavaMail API to handle the email part of the system with IMAP server running with Postfix. After sometime I notice, using netstat -a, that there are so many imap socks ...
Hi,I am trying to generate a JAR file for a container managed persistence Entity Bean (for weblogic 5.1). I am in a strange situation and does not have any clue about the following error. There is no compilation error for the classes I used. I am giving the classes I used for this purpose. Can ...
2162 byte By
Jackhg at 2007-9-26 4:49:11
I have installed Jdk 1.3.1 and j2sdkee 1.2.1 on win2000Adavnced Server.And, I also have set the environment viables as:J2EE_HOME=f:\j2sdkee1.2.1JAVA_HOME=f:\jdk1.3.1 The output on the DOS-mode window I got was:c:\>j2eeJ2EE server Listen Port: = 1049Redirecting the output and error streams ...
Hi,Any one can explain step by step procedure of bean managed persistance Entity Bean using oracle database and jdbcodbc driverThank u in advance
I am getting the following error while compiling a demo code in Javamail Api:Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSourceat msgsend.<init>(msgsend.java:139)at msgsend.main(msgsend.java:52)where can i find the above class ? which jar file should i ...
Hi friends...i am running a BMP EB on Weblogic5.1 sp9 i am able to create a bean i mean to fetch to database..and to populate the bean....but as i try to use setter or getter on any bean populated after finding by Primary Key...i get javax.transaction.TransactionRolledbackException in ...
Hello I'am new to EJB. When creating a entity bean-managed persistence and you need to specify the jdbc url with user nameand password to establish a connection object, how does one specify that in the deploymenttool?Heres an example of what has in the J2EE tutorial has in AccountEJB to get an ...
When I start my client app with runclient, I get the login dialog. I sign in and everything is fine.In the main of my app, if I make a call to Context.lookup("java:comp/env/ejb/MyEJB") I get the home interface without problem.But after that I open a JFrame and call the same method when the user ...
414 byte By
khoa01 at 2007-9-26 4:53:03
I was wondering if there was an easy way to have references to jars that is contained in one ear in another ear. The main question is that if we have some EJBs that are commonly used in multiple ears then is there a way to have those common EJBs in a single ear and have the other ears that need ...
240 byte By
ottox at 2007-9-26 4:53:27
Hello.I would like to get your opinion about what application server is "better" (in terms of performance, scalability, bla, bla).... The competitors would be: Jonas, JBoss, and Free version of Orion.Otto Cordero
596 byte By
jsaraiya at 2007-9-26 4:53:37
hi We are making our jsp to generate xml document which would get parsed on client side with xslt. Has any one worked on this before or aware of any efficiency issues ?This is a good idea if we expect differemt types of client like PDA and web browser accessing the same server side application. ...
Hi, anyone out there know how to send secure email using Java Mail? Greately appreciated.
1641 byte By
garbuzov at 2007-9-26 4:56:04
Can anybody give any suggestion on the following stack trace? It worked fine from stand-alone client, but fails from JRun. The latter has all needed client libraries for JBoss where EJB is deployed. Boris.-javax.naming.CommunicationException. Root exception is java.io.StreamCorruptedException: ...
510 byte By
dave1971 at 2007-9-26 4:56:19
Can anybody explain Significance of remove() method of remote interfaceDo we have to call this remove() method immediately after i call methods of bean.The reason behind is ............I have written a class which access many stateless session beans and has many functions to access them.Instead ...
212 byte By
brodeurc at 2007-9-26 4:56:20
Is it possible for an primary key class to contain a reference to another entity bean (a reference to an object implementing EJBLocalObject interface) ? Will EJB 2.0 containers support this ?
How can I develop a GUI java mail application.Any Examples Provided?
153 byte By
dsanand at 2007-9-26 4:57:01
I want know, how to access the MS-Exchange server calendar folder object through java. If you have any idea please post that.Senthil
1274 byte By
davoutuk at 2007-9-26 4:57:06
As a Java/EJB beginner I'm hoping somebody can help me with some advice on the following question.I'm looking at building a server app using EJB but am concerned that my app requirements do not fit the usual EJB mould. From what I've seen of sessionand entity beans, EJB seems to be highly ...
Hi,I am working on a project where we need to decide between using Entity EJBs and direct SQL queries using session bean to the database for read only operations. The tradeoffs being performance and flexibility. All the literature I have read just mentions that the project team needs to decides ...
1188 byte By
tomclose at 2007-9-26 4:57:24
Hi,Please help me out here as I am going crazy. The following code is my ejbLoad() method, username is the primary key of the class. My problem occurs when I call the findByPrimaryKey(String username) method on my home interface. ejbFindByPrimaryKey(String username) finds the record in the ...
787 byte By
mdshukla at 2007-9-26 4:57:28
Hi firendsI am beginner to EJB world, and trying first EJB object i.e. Hello World programI prepared first Remote interface, HelloBean and it compiled also properly.names of programRemote interface :HelloBean:HelloBeanHome interface :HelloHomeBut after preparing Home interface it fails to ...
162 byte By
anand000 at 2007-9-26 4:57:35
Please send me the javax.mail package to hianandraj@rediffmail.com orwrite the location where to download it.ThanksAnand
Hi,While i am tring to run the Account entity Bean code in j2ee examples using Oracle as back end and jdbcodbc driver as driver i am getting this Exception Java.rmi.ServerException : RemoteException occured in Server thread;nested exception is java.rmi.RemoteException :Could not create Entity ...
774 byte By
srferoz at 2007-9-26 4:57:46
i am doing a transfer of data from sql database to Oracle database using XML as transfer format as required by client.All rows in the tables are represented in blocks in XML.I capture these date from XML and create java objects to store each row of data and these objects are stored in ...
165 byte By
valefr at 2007-9-26 4:58:08
my architecture: servlet->EJBWhy i have to use ejb instead a simplier object.When i really nead to use EJB?Thanksvalefr
722 byte By
rhandsch at 2007-9-26 4:58:28
Here are two basic questions regarding container managed persistence Entity Beans:How many database read operations are performed when a remote reference to a CMP Entity Bean is obtained by a client?Is it correct, that each row is read twice?For example if a have one row in a database which I ...
Dear jdc'si feel i small problem how i convert address to string to display it in inbox page to tells who send the mailthanks
422 byte By
sabufeb at 2007-9-26 4:58:36
Hi How can I send email with password authentication.Certain mail servers only allow to use it's resources only with authentication.I want to send email from my program using yahoo mail server with password authentication.I do have a yahoo account.could you pls help me to solve this ...
Hello..I build a servlet with this code :TransformerFactory tFactory = TransformerFactory.newInstance();Source xmlSource = new StreamSource(new URL(" http://63.4.1.11/wml/foo.xml").openStream()); Source xslSource = new StreamSource(new ...
983 byte By
marcoted at 2007-9-26 4:59:30
Hi.This is my problem, please help me.I've got a source that sends a mail message, and it works on my pc (running Win2000). When I insert it into a Servlet (running on Linux and Tomcat 3.2) it doesn't work and gives me no Exception, it stops and no more!I'm using package mail.jar (JavaMail ...
1565 byte By
j_bond7 at 2007-9-26 4:59:46
Hi I have got a tutorial from the web written by sun. I follwed the example exactly i still get a class cast exception while grtting a refrence to a home object. I start up the server and deploy the bean properly then I start up tht alient and i get this C:\classes>java client.TellerClient ...