Prob in running ejb client program...pls help ...i am struggling with this

3098 byte By priyapa at 2007-11-26 21:16:06
I tried run the sample program in Headfirst - (Advice). I was able to generate the class file after the successful compilation, but failed in running the AdviceClient. The command given is java -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClientI am getting NoClassFound Exception. Below is ...

JDK1.5 + JDOM

443 byte By A.Khana at 2007-11-26 21:18:03
Has any one tried JDOM with JDK1.5?I am trying to use XMLOutputter:-XMLOutputter outPut = new XMLOutputter();outPut.ouput(doc,new PrintWriter("OUTPUT.XML"));-it throws exception :symbol : method ouput(org.jdom.Document,java.io.PrintWriter)location: class ...

java.lang.OutOfMemoryError in Tomcat

794 byte By firvina at 2007-11-26 21:18:22
Hi,We are running an intranet application using JSP/Java and Tomcat Server. We are getting the following error.Mar 12, 2007 8:02:48 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable runSEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing ...

[JAXB] Multiple imports in the root node

1069 byte By Rockza at 2007-11-26 21:18:24
Hello,I use JAXB and am doing this scenario : unmarshalling an XML document created manually, and automatically marshalling another from the generated Java code.This is a multiple schemas / multiple imports issue.I would like the 2 XML documents to be similar, but in the first one, I get ...

Generate a xml file

6711 byte By Ayrton_4a at 2007-11-26 21:19:43
Hello, i want to generate a new xml file with the values insert by the user. The format of xml file is this:<?xml version="1.0" encoding="UTF-8"?><!--Document: pcx.xmlVersion: 0.6Created on : 07 March 2007, 10:20Author: francescoDescription: example of a PCX file--><pcx ...

new tsamples and new tutorial

511 byte By serkolaa at 2007-11-26 21:20:57
Hello,I download the new version of J2ee samples, the j2eesdk-1_4_03-samples.Is there a new tutorial for this samples?PS:The tutorial what i found in http://java.sun.com/j2ee/1.4/docs/tutorial/doc/is addressed to the old sun J2ee samples and has a lot of reference in the samples to the deploy ...

Code working in IE but not in FireFox

835 byte By sakthiia at 2007-11-26 21:24:08
Hi all,I want to scroll within a window.<a href="javascript:window.location('#first');">First</a>When i click First then it moves to the particular anchor tag within the same page.<a name="first" id="first">This is the first section of this page</a>This code is working ...

jymsg(java yahoo istant messenger )

883 byte By alok_agrawala at 2007-11-26 21:24:30
I making instant messenger in java using socket programming and swing. I want in my messenger the service such as, all the users which are registered to my messenger, can talk to the online friends of my messenger as well as the friends which are online on yahoo messneger as well.I have make my ...

Delivery receipt with Message-ID as automatically

248 byte By rvnareshkumara at 2007-11-26 21:25:57
hi,i posted this is sixth time i didn't get any response till now,my requirement is getting the delivery receipt automatically with message-id. iam trying from last one month but i did't get. if u have any code pl let me know

Creating and Web Service Client

5447 byte By supercoder97a at 2007-11-26 21:26:37
I am hoping others here have ran into this problem and can shed some light on what is causing some of my frustration on getting an axis client to contact a web Service running on JBoss 4.0.5. I am using an ANT script to build the AXIS client. I am using axis 1.4.<axis-wsdl2java ...

deploying EJB into WAS

342 byte By praveenkummara at 2007-11-26 21:26:38
hi,i am deploying EAR file into WAS. My EAR contains 6 JAR files. Each JAR file have EJB's. We need ibm-ejb-jar-bnd.xmi for each jar file which is responsable for all JNDI names. How can we write this .xmi file. Can we write manuvally, OR is there any tool for this? plz help me,Thanks & ...

Business Activity Monitoring for BPEL Processes

1021 byte By rajaba at 2007-11-26 21:28:31
Hello,IEP is capable of monitoring real time events, Real time business event collection and processing.In that case, can we use IEP to monitor BPEL process activities with activity data.One very big part, the ability to provide functionality for third parties (clients like Me) to register some ...

New to XML

138 byte By 3P_Pritesha at 2007-11-26 21:29:28
HiCan anybody tell me where people use XML in real world application?And how can I use JAXP and XML in such projects?

How to implement this...

409 byte By Mellona at 2007-11-26 21:30:12
Hi, in my project, there is a login.jsp, which I need to implemented. In this JSP page, it ask the user to input his/her username and password. Besides the 'submit' button there is a box, if user click the box , next time, when this user input his/her username, his/her password will come out ...

EJB 1.3

402 byte By shioa at 2007-11-26 21:30:36
sorry guys, this might be the only place that i can seek for expert advice about the different in EJB 1.3 and 5.0 i wanting to get EJB Certification (SCBCD), there are 2 different version 1.3 and 5.0. i have minimal experience in EJB, i am not entirely sure whether is worth to do the 1.3, ...

Mails were marked as spam by Yahoo, what should I do ?

1097 byte By layouta at 2007-11-26 21:31:20
Hi , All;We are sending email by javamail in our project, but the yahoo and hotmail marked our emails as spam.And we checked our email by SpamAssassin 3.1.0 ,and here is the report:--X-Spam-Flag: YESX-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13)X-Spam-Level: *****X-Spam-Status: Yes, ...

error sending mail

1377 byte By eckoa at 2007-11-26 21:32:00
why i got this error :Sjavax.servlet.ServletException: javax.mail.AuthenticationFailedExceptionthis happen just in one pc and in other pc works perfect! what happen? :Sthis is my code:<%@ page import = "java.util.Properties" %><%@ page import = "javax.mail.*" %><%@ page import = ...

wanna use parameters from a form to use it in Authenticator

832 byte By eckoa at 2007-11-26 21:32:08
i wanna save parameters in strings in order to use them as the user and password in the Authenticator but i just cant, i try to access the string inside the constructor but it is not allowed, then i try to make a method inside the constructor it was ok but i cant access it<%@ page import = ...

Message queued (problem)

3265 byte By Subramanyaa at 2007-11-26 21:32:15
Hi, I'm working on java mails. I have given the debug details below. It is giving me the message 'DEBUG SMTP RCVD: 250 Message queued'. What is this message queued for delivery. If i send it from my outlook express it delivers successfully. Please go through the debug details. I'm stuck. ...

unable to create connection pool on admin console!

660 byte By serkolaa at 2007-11-26 21:33:13
Hello, i try via application server's admin console connect to my mysql database.The jdbc.mysql.Driver is already in as_home/lib directory. My database has no password and the root is authorized and has full access. My Configuration on admin console look like:Datasource Classname: Datasource ...

Validate xml with dsx and getting a list of validation errors

951 byte By poringa at 2007-11-26 21:33:23
Hello.I need to validate an xml files with xsd and obtain list of validation errors. Is this even possible?What I've been doing so far is:DocumentBuilder parser = dbf.newDocumentBuilder(); // this is from javax.xml.parsersValidator handler = new ...

components on jsp page get repositioned when window minimized!!!!

528 byte By sonali-amonkara at 2007-11-26 21:33:42
hi....I am new to using the forum for my help so in case i have posted this in the wrong forum or anything else please help me out....i m new to struts...basically i have this login window....a jsp page...now the problem is when i minimize(restore down) the window....the controls in my page get ...

EJB3 Design issue

1095 byte By simonkent1a at 2007-11-26 21:33:46
I have a query on a design issue of using EJB injection into servlets as instances. The EJB is a Stateless Session Bean therefore is thread-safe, but using the design of an injected @EJB refererence and the propagating all calls to this EJB from the servlets service method - does this not just ...

How to import data streams of XML on a DataBase like Mysql

241 byte By hanimichia at 2007-11-26 21:33:54
Hi I would like to know the processus to import data streams of XML on a DataBase like Mysql . If you have an idea to help me. i develop on java and i use DOM library .Thanks you all proposition hanimichi

WS security, SSL and client auth

575 byte By Ben-Hura at 2007-11-26 21:34:20
Hello all,I need to secure a web service using SSL with client auth (client has a certificat issued by the web service provider wich he can use to access it... i suppose).Being a newbie i have no idea what are the options and how to implement them.If good tutos are available on the subject it ...

External references

1233 byte By jmorcatea at 2007-11-26 21:35:43
Hi, I have a problem trying to load a XLM file with a external references.The situation is as follows:1) I am delivering my application as a unique jar file: app.jar2) Within the jar file i have two xml files. In pack01.xmlFiles I have the included.xml file and in pack01.pack02.xmlFiles I have ...

JBoss, returning ArrayList, ClassCastException

3549 byte By Glenn_Pucketta at 2007-11-26 21:36:05
I have run into a really frustrating problem. This is code that has been running fine in production for more than 6 months. I am enhancing the code in my development environment. One of the things I have done is move a certain package from one project to another such that it is now in a common ...

Dependency Injection of EntityManager / -Factory in Servlet doesnt work

7628 byte By Peddaa at 2007-11-26 21:36:45
Hello i would like to use Application-Managed Entitymanager in my Application and have been tryin to get Dependency Injection workin in my Servlet for quite a time now and have not found the error yet. The PersistenceUnit is mapped successfully when deployed on JBoss 4.0.5 but it seems to me ...

Cascade or delete in database server, why if my EJB do it for me?

728 byte By kerulea at 2007-11-26 21:37:05
Hi,I am in design phase of a database for my j2EE application. In the database desing i have some relationships entities, that have foreign keys. I have several options about foreign keys in the relationships, cascade deletes, restrict .... all in my database server.But, when i am reading the ...

jpa newbie: Exactly what is 'mappedBy'

405 byte By nnatgrossa at 2007-11-26 21:37:11
Although I have read the tutorials and examples, I fail to comprehend what is accomplished by the 'mappedBy' annotation. All examples I have seen use the lowercase of the entity class name as its value. It seems like its always a default.Related to this (and maybe if I 'get' this I'll ...

Implementing a Revision History Strategy

1851 byte By devusr4a at 2007-11-26 21:37:20
Hello,I'm looking for advice on ways to keep revision history for all updates to entities in EJB3. Users of my application will need to interact with the historical data, so a simple audit log will not suffice.As a proof of concept, I implemented a save() method in a Stateless facade that ...

XML Parsing

353 byte By java_jamboreea at 2007-11-26 21:38:04
Hi All,I am new to XML and XML parsing.I am having a task of taking a XML file and to generate report in HTML.What i found out is i can have one XML file and i have to have a XSL file for it.Then i have to take XML and XSL as source and generate the HTML result.Can anyone please explain how to ...

How to install blueprints in Java Studio Creator 2 using Sun App server 8.2

300 byte By burferda at 2007-11-26 21:38:12
Could someone direct me to install instructions for loading blueprints into JSC2?I did this once before and it was fairly easy to do, but I need to reinstall and forgot how.I thought there was a simple import mechanism, but I do not see a complib in my last ...

Requesting Source Code for sending Javamail on a yahoo account using smtp

113 byte By eyunyina at 2007-11-26 21:40:13
Hi im new to JavaMail and can anyone kindly write me a source code for sending email for an yahoo account?

Help with JavaMail various errors!!

2886 byte By eyunyina at 2007-11-26 21:40:22
It gives me an error like this, when im in my schoolorg.apache.jasper.JasperException: Connect failedHowever when im at home, it gives me an error stating invalid password and id.Which i clearly have input correctly!So is there anyone can help me because i need to set up a Javamail to send ...

Having problem running petstore 2.0.. database related problems

1136 byte By merlin_aa at 2007-11-26 21:40:30
I am running the following :Sun Application Server PE9NetBeans 5.5 petstore2.0-ea4.5Java EE5on windows XP With the jar files, I had the missing jar files (for httpjunit, nekohtml and xercesimpl), i d/l the latest jar files and solved that. When I run the project in netbeans.. I have the ...

Trouble with sending a simple mail

2572 byte By TrAnScEnD3nTa at 2007-11-26 21:40:38
Good day to all, since I will not be taught how to use JavaMail by my school, I will have to learn it on my ownAfter reading countless tutorials and looking at many examples, I am still unable to send any mail.This is my source code :import java.util.*;import javax.mail.*;import ...

How to get a sub tag in xml file

1185 byte By Reply_mea at 2007-11-26 21:41:30
As the xml file is the below thing <?xml version="1.0" encoding="UTF-8"?><addRequest xmlns:spml="urn:oasis:names:tc:SPML:2:0"><data><attributes><attr name="Objectclass"><value>SafePolicy</value></attr><attr ...

what is the most up to date implementation of web services in Java?

537 byte By artursca at 2007-11-26 21:42:57
I'm completely new to web services and just got confused. I installed Sun App Server 9 Update 1 Patch 1 and successfully deployed some simple web services with it. Later I found sth that is called Web Services Developer Pack 2.0 but it can't use Sun App Server 9 as a container ... and ...

Declared XML Namespace(s) - is this corrct?

2835 byte By kevpa at 2007-11-26 21:43:24
Hi. First post here. First of all I've been looking for an active forum to post this question on thought I'd try here.I have to create an XML file that stores music and video recordings. Some of the music and video recordings have the same attributes such as title, category etc so I have ...

Javamail problem with SEEN flags (Autmatically updates the server)

614 byte By ramamoorthyga at 2007-11-26 21:43:47
Hi all,I am using Javamail 1.4.When I read a message I used to get "java.io.IOException: No content" exceptions. Then I have created new MimeMessage from folder.getMessage() return as below 1) MimeMessage m = (MimeMessage)foldergetMessage(i);2) MimeMessage mimeMsg = new MimeMessage(m);After ...

Help with Javamail

4870 byte By AndyHarimaa at 2007-11-26 21:43:54
I got this error when i try to send my mail in Index.htmlAn error occurred at line: -1 in the jsp file: nullGenerated servlet error:[javac] Since fork is true, ignoring compiler setting.[javac] Compiling 1 source file[javac] Since fork is true, ignoring compiler setting.[javac] ...

JMS properties

6094 byte By prabhu.ramadasa at 2007-11-26 21:44:34
I am writing a simple JMSSender and receiver using queues. I understand there are some properties that need to be set in the Context. JMS Sender:public class SimpleQueueSender {/*** Main method.** @param argsthe queue used by the example and,*optionally, the number of messages to send*/public ...

how can i apply targetEntity to two child class

673 byte By chenga at 2007-11-26 21:44:42
example:@Entity or @MappedSuperclass@Inheritance(strategy=InheritanceType.JOINED)class MenuItem{ ...}@Entity...class SimpleMenuItem extends MenuItem{ ...}@Entity...class ComplexMenuItem extends MenuItem{}//be referenced here@EntityMenu{ /*how can i use targetEntity here so that i can reference ...

How to Parse a string into an XML DOM ?

131 byte By Amit.Sriva at 2007-11-26 21:44:43
Hi,I want to parse a String into an XML DOM. Not able to locate any parser which supports that. Any pointers to this?

New Entity is not managed?

3614 byte By Perryiera at 2007-11-26 21:45:52
I have created several EJB 3.0 persistence Entities using the wizard provided by netBeans 5.5 all with success. However, when I try to create my own persistent entity outside the wizard, I get an error when trying to use the .refresh method on it. Why would it be a non managed object? EJB5018: ...

@WebService and dependency injection

1485 byte By FelipeRiccettoa at 2007-11-26 21:46:43
I have the following web service:@WebService@Statelesspublic class TestWS {@EJBprivate MyService myService;@WebMethodpublic void test() {//at this point, "myService" is null !! It was not injected....}}-I am using Sun System Application Server 9.0.-My stateless session bean "MyService" is ...

configuring JavaMail with Sendmail

3679 byte By ashiersa at 2007-11-26 21:46:52
Hi there,I create a simple standalone app that has the following method in it for sending emails: String SMTPServerName = "smtp.someserver.com"; String addressTo = "someone@someplace.com"; public boolean sendMail(String addressTo) {try{Properties props = ...

Persistence outside EJB

512 byte By vpalkondaa at 2007-11-26 21:47:34
Hi I am developing a web app with tomcat and JSF and apache derby db. I want to use the java persistence api to talk to the DB. (Note: I am not using the EJBs here)I would like to know if this possible or should I just go with hibernate. This application will reside in an embedded device with ...

mq3_6-plt-win.zip seems to be corrupt

292 byte By bernd.pragera at 2007-11-26 21:47:35
Hi,I am trying to install the latest Sun Java System Message Queue 3 2005Q1 Platform Edition on Windows XP. The installation crashes with complaining about a missing JaxRPC.cab.A brief check confirms it does not exist in the zip file.Any help?Thanks,