NetBeans 5.5/Tomcat and WebServices

793 byte By Ajaxranda at 2007-11-27 5:20:03
I am between a project that uses JSP and Servlet technologies in it. These are the project environment that i used up to now for this purpose.IDE: NetBeans 5.5Application Server : apache-tomcat-5.5.17Now i need to Add a web service to my project. but once i tried to do that i am getting a ...

Weblogic smtp connection timeout!

2655 byte By qchanga at 2007-11-27 5:20:53
Hi, when I deployed my program in the weblogic server, everything is ok, but after somedays it can not send mail! I believe my code is available, because I can send mail in my tomcat server in the same machine. I wonder if the conflict between weblogic.jar and mail.jar can lead this happen.Can ...

Merging a fragment into an XML doc

1343 byte By tushar3j79a at 2007-11-27 5:21:43
Hi,I have an XML document, which contains elements from different namespaces e.g. <?xml version='1.0'?><employees id="..." xmlns='def-nmspace' xmlns:tax='nmspace1' xmlns:hiring='nmspace2'><employee name='..'><tax:form>..w2 tax form ...

JBoss Messaging or ActiveMQ

275 byte By rapida at 2007-11-27 5:21:52
Hi,I am using JBoss4.2 for my application( web application).I got confused which JMS provider to be used. There are lots of in the market.Have to make choice among ActiveMQ, JBoss Messaging and OpenJMS.Looking for your support.Thanks

insertbefore dont work

1181 byte By Taigoa at 2007-11-27 5:21:58
i need to insert one node from one document (docDcont) to another document (doc) but this my code don?t work. try {// parse the XML as a W3C DocumentDocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();Document doc = builder.parse(new File("book1.xml"));Document ...

ejb deployment error

942 byte By subratjyetkia at 2007-11-27 5:22:53
17:31:19,253 INFO [STDOUT] 2007-05-24 17:31:19,112 [main] ERROR org.jboss.system.server.Server : Root deployment has missing dependencies; continuingIncomplete Deployment listing: MBeans waiting for other MBeans ObjectName: jboss:service=SchedulerStartup State: FAILED Reason: ...

Having java.net.UnknownHostException in using DOM

1235 byte By okmicha at 2007-11-27 5:23:01
Hello Guys,I am trying to read an XML file using DOM. Everything works except for an exception thrown if I uncomment the portion of my XML file that specifies the doctype, like this...<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" ...

With Open ESB CD in hand, how do I get started?

598 byte By jtp512a at 2007-11-27 5:23:26
I spent time at the Open ESB booth at JavaOne 2007 talking with the Sun representatives and engineers about Open ESB.I'm glad I did, but I'm having a heck of a time getting started.I have all of the requirements set-up running on Solaris 10 development server.I've used the Service Oriented ...

Using external library jar

576 byte By jackychana at 2007-11-27 5:23:31
Hi everyone,I am working on a J2EE 1.3 project. I have a external library jar file at, for example, /myproject/lib. My EAR has to access that external library jar. Moreover, the library jar is not self-contained. It has to use the class that stored in the EAR file.I have seen a lot of articles ...

NoClassDefFoundError AnnotationProcessorFactory

425 byte By ydriuttia at 2007-11-27 5:23:58
I'm trying to compute webservices.Reading documentation I found that I have to use <apt> ant task to create artifacts and war.I currently use jdk1.5 with Jboss and jaxwx2.0 of glassfish.I got this error :An exception has occurred in apt (1.6.0).....java.lang.NoClassDefFoundError: ...

Extract Node Values using XPATH

1523 byte By bhuru_luthriaa at 2007-11-27 5:24:26
This may be a repeat question.No offence meantI am using XPATH to extract values from the nodes.I need to extract the value of i:RequestedBy Node using XPATH<?xml version="1.0" ...

Physical table name - abstract table name mapping in CMP Bean

2195 byte By Jithesh_Gangadharana at 2007-11-27 5:25:28
Hello,I am using a EJB 2.x bean deployed on a SJSAS 9 server. EJB has problem associating the EJB to the actual tableDetails are as follows:EJB name: AccountCMPActual tablename : accountErrorejb store calledIM: postInvokeentity3.AccountBean145996470_ConcreteImpl@d6be89EJB5071: Some remote or ...

retain 'from address' after setting 'envelope from'

667 byte By AswinYa at 2007-11-27 5:25:54
I am trying to use JavaMail API for sending mails to a list of users. If I have an invalid email address, I would like a bounce mail to be sent to a common email address that is not the same as the "from email". I have no trouble doing this as I am setting envelope address. But, for the success ...

IMAPInputStream instead of Multipart when handling MIME message

806 byte By djuri@ska at 2007-11-27 5:26:47
Hi all,I'm creating standalone java application, which read e-mails from exchange server using IMAP protocol.I have a problem with handling MIME Multipart messages. My message is type of "multipart/alternative", but content is IMAPInputStream instead of Multipart object and I don't know ...

Accessing a Web service

547 byte By dilip_jsfa at 2007-11-27 5:27:38
Hi,I need to know how we can access a web service that is running in a remote machine in java. For this purpose i created a simple web service and i have exposed a simple method that returns a string (no input parameters). The WSDL that was generated had a URL specified in a ...

Integrating Java with MQ.

404 byte By Saurabh_Deloittea at 2007-11-27 5:27:53
My program requirement is that I should be able to insert and delete the messages in the Websphere Message Queue (MQ) through pure Java code . This MQ is used in the MiddleWare Technologies to read and write into the XML file .Then I will be using RFHUtil to check whether the message is ...

Zero downtime

145 byte By javanewbie80a at 2007-11-27 5:28:31
i want to know if i want to upgrade my software of my website, how can i upgrade it without taking down the site even for a single second?

Why do I see only one MDB?

814 byte By sagmana at 2007-11-27 5:28:48
Hi,I'm having a weird issue running my MDB on SAS9.01: I have a stateless EJB JMS producer and an MDB which is both a consumer and a producer.The test logic is this:1. the ejb sends a single message2. the mdb's onMessage method is triggered and does the following:if the methos has not been ...

Optimist lock and @Version in inheritance mapping EJB 3.0

375 byte By kerulea at 2007-11-27 5:28:56
Hi,I磎 using inheritance mapping for two entities. I need that at both entities a optimist lock using EJB 3.0 JTA. If i have a @Version annotation on the parent class, I have a optimist lock on the subclasses too?If i using Join tables for mapping the inheritance, the parent table will have a ...

mail attachement content trnsfer encoding 8bit , 7bit

374 byte By ElisaCappaa at 2007-11-27 5:29:11
Good morning to everybody.I have a problem reading mail attachement.When the attachement is 8bit encoded the exadecimal char "3D" is write in a file as "0D". This is wrongWhen the attachement is 7bit encoded the exadecimal char "3D" is write in a file as "3D" . Thi is rightIs there anyone who ...

Creating a jar from code that uses javax.mail

233 byte By PeterNortha at 2007-11-27 5:29:14
I can't get the javax.mail methods that I use in my program to work when I create a jar with the following line:jar cmf MyProg.txt MyProg.jar *.classDo I need to include the mail.jar somehow?/Peter

email verification

102 byte By RAMJANEa at 2007-11-27 5:30:00
Hi Allhow i will come to know that an email address is exists?Thanks &regards

Error in sending mail 2nd time, Where is the fault- Help Please

7921 byte By Ashish.Mishra16a at 2007-11-27 5:30:14
Hi friends,I had written a program to send mail. Everything is fine, when i send first time. But if I try to send mail 2nd time, It gives the error:Exception in Connect: IOException while sending messageHere is the complete code what i had written, It successfully connects using t.connect();the ...

need clarification about SCBCD

377 byte By mullapudia at 2007-11-27 5:30:23
Hi all.. i am done with my SCJP exam and scored 86% last october. Now i am planning to prepare for SCBCD. I dont have hands on EJB now i need to start learning and practicing. But i am not able to decide whether i need to target EJB3.0 or EJB2.0 and also i wanted to know how many months will it ...

indent-amount - has no affect

3840 byte By HelenaStarMountaina at 2007-11-27 5:30:26
Hi, i am trying to create an xml-file looks nice and readable. The code:tf.setOutputProperty(OutputKeys.INDENT, "yes");works fine, and the file is no longer on one long line, but the code tf.setOutputProperty("{ http://xml.apache.org/xslt}indent-amount", "2");doesn磘 work on the computer that has ...

Can A Web Service Take An Abstract Class As A Parameter?

1531 byte By jphilli9a at 2007-11-27 5:32:02
I am new to J2EE and web services so please excuse me if I am clumsy with my terminology.I am developing a web service using JAX-WS. I want the parameter to be an abstract class because I want to pass a composite object (composite pattern). The parameter should be the abstract component class ...

Did setIgnoringElementContentWhitespace quit working in 1.6?! Is it a bug?

3017 byte By MePacoa at 2007-11-27 5:32:07
I'm desperate for some help here. I know it looks like a long post but it really isn't. Basically, I have some code that works find in 1.5 but now is broken in 1.6. Here is the code (error handling, etc. has been removed):File schemaFile = new File("test.xsd");// Now attempt to load up the ...

Problem in creating a CMP bean with MySql

737 byte By RahulNimbargia at 2007-11-27 5:32:17
Hi,I am using lomboz eclipse, jboss 4.0.2, xdoclet 1.2.3 & DB as MySql 5.0. I am encountering a very strange problem when I try to create a CMP with MySql as DB. After entering relevant information about the datasource & testing the connection & finding it to be successful, I get ...

JBoss and jndi

758 byte By Trunks7712a at 2007-11-27 5:32:33
Hey all, I am trying to write a stand alone client that accesses a java message queue on a remote machine. This machine is implementing JBoss technology. I assume I need to use a jndi lookup. I have tried created an inital context. For example, Hashtable environment = new ...

How do you pass classes as parameters to web services?

1753 byte By jphilli9a at 2007-11-27 5:32:39
I want to pass the following class as a parameter to a web service operationpublic class TestClass {private String a;private String b;public TestClass() {}public TestClass(String s1, String s2) {a = s1;b = s2;}public String concat(){return a+b;}}the web method looks like this@WebMethodpublic ...

SOAP and Webservice

427 byte By bala_newa at 2007-11-27 5:33:08
Hi all,i am new to java..!! so can someone pls help me..its urgent?i want to create a agent which will read the content sent through SOAP and create an XML file and send it through web service. Can anyone help me in this regard..?P.S :- sorry if i am repeating this question as many of them wud ...

Object is null but not nillable - JSR 172 client

4478 byte By ericchoa at 2007-11-27 5:33:15
Here's the scenario....I have a web service that's been created with the RAD 7 wizard (IBM JAX-RPC) running on WAS 6, which works great (tested via web service explorer).On the other end of it, I am trying to develop a web service client on a Lotus Expeditor device/mobile application, which ...

Is Java EE really enterprise?

1803 byte By JDevila at 2007-11-27 5:33:25
I really didnt know where to post to this topic, so I thought this forum seems to be most approriate to share some frustration with Java EE.I have been being doing java ee for fairly a small amount of time which is three years for mission critical applications, specifically in the financial ...

xsl-xml transformation: how to resolve namespace prefix?

1875 byte By sachinpatel_ita at 2007-11-27 5:33:29
public static String XMLTransform(Source xmlSource, Source xsltSource)throws DocumentException,TransformerException,TransformerConfigurationException,Exception{ByteArrayOutputStream returnByteStream = new ByteArrayOutputStream();StreamResult streamResult = new ...

CSV to XML?

540 byte By JonJacksona at 2007-11-27 5:34:07
HiI need to convert a csv file to xml.Can anyone give me any advice on any approaches.I read a few articles about this can be done with XSLT but none of these articles covered how you might instantiate this process from within a java method.What I want to do in my method specifically is:1. get ...

XML transform using XSL

855 byte By dilip_jsfa at 2007-11-27 5:34:24
Hi,I am new to the javax technology.I have a xml that has data in this format <?xml version="1.0" ...

Ugly XML files, missing line breaks.

1519 byte By DanH.a at 2007-11-27 5:35:49
Hello everyone,using org.w3c.dom and the following output method public static void writeDocumentNode(Node node, File file)throws TransformerException {// Use a Transformer for outputTransformerFactory tFactory = TransformerFactory.newInstance();try {Transformer transformer = ...

JMS- Iplanet 6.0 connection.

469 byte By srins_2000a at 2007-11-27 5:36:36
Hi,I'm running iPlanet 6.0 WebServer and SwiftMQ router for JMS connectivity. Both the versions are running on JDK1.3.1, now when the JDK version is changed in iPlanet to JDK1.4.2, the webserver & Messaging router are unable to communicate. I'm unable to guess anything with the error ...

JPA Query Problem

369 byte By Konrad84a at 2007-11-27 5:36:55
Hi. I've got a problem with a JPQL query.SELECT o FROM Charter AS o WHERE 1=1Siple, but it doesn't work. Instead of returning all the rows one time, it returns all the rows N times, where N is the number of rows in the table.WHY? Do I need to check my annotations in the Entity class?Quite new ...

Error when trying to read the SOAP Response

3239 byte By Maqa at 2007-11-27 5:37:35
Hai,iam trying to access the web service of DUBAI international AirportGetFlightSchedulebyDateRange at http://dca.gov.ae/WebServices/FlightsThis is my programpackage MyClient3;import java.io.FileOutputStream;import java.net.URL;import java.util.Iterator;import ...

petstore database connection problem

7641 byte By funplaya at 2007-11-27 5:38:24
Hi everybody,I am using NetBeans 5.5 and PetStore javapetstore-2.0-ea3 (always has problem with javapetstore-2.0-ea4.6). After some trouble (with the application server), it started to work for a while. But now it fails though no change is made anywhere. The symptom: the application server ...

How to deploy a normal Java application onto Sun Server

138 byte By ABC_SUN_a at 2007-11-27 5:38:46
Hi How do you deploy a normal Java application onto the Sun server...what are the required config files one needs to set etc

Can i send email ok even mail server (service provider) doesn't use java ?

376 byte By roamera at 2007-11-27 5:38:51
I downloaded the javamail 1.4, before looking the documentation, I would like to ask can i still test and send the mail successfully even the service provider didn't use the java techonology in their mail server?In my opinion, i think solely my client setting is correct and pass the right ...

Generationg WS client using Axis which support use="encoded" in WSDL

502 byte By Kharode_Pa at 2007-11-27 5:39:09
hey all: I am trying to develop client API for an existing service using Axis. I have the WSDL for the service and I tried generating client stubs using eclipse code generator plugin. But, diplays an error showing "does not support encoding" I am relatively new to all this and not sure as to ...

Java Mail Exception

239 byte By Manojmaruthoora at 2007-11-27 5:39:21
Doing an application in JAva MailBut it is encountering exception as follows"java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write"What will be the problempls help

Specifying schema with stylesheet

397 byte By steinvommarsa at 2007-11-27 5:39:38
How can one specify Schema(xsd) and Stylesheet(xsl) together in an xml file? I tried doing that, but it gave me problems.I used:<note xmlns=" http://www.w3schools.com" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.w3schools.com xsd1.xsd"> And ...

Email verification

102 byte By RAMJANEa at 2007-11-27 5:39:57
Hi Allhow i will come to know that an email address is exists?Thanks &regards

How to popup massage on below Taskbar right-corner

508 byte By kaenkoona at 2007-11-27 5:40:13
Hi every body I am a student and do senior project. I have some problem to develope java programing with Windown XP How I do popup massage on taskbar similar MSN. I would like to develop server/client, when server send massage to client the client respon show massage popup on taskbar (similar ...

How to inject to class to become persistent?

918 byte By CJ_125a at 2007-11-27 5:40:26
Hi All Developers,I have a problem about the Injection in web application using j2EE. I'am creating a customers entry.. The error is [ EntityManager can not be injected into a web application that uses multithread model because EntityManager is not thread safe. ]but i put in ...

problem in sending mail

4611 byte By avnish.nitja at 2007-11-27 5:40:51
hi.. i have the following code to send mail..package mailserver;import javax.mail.*;import javax.mail.internet.*;import java.util.*;import java.io.*;public class SendMailUsingAuthentication{ private static final String SMTP_HOST_NAME = "gmail-smtp.l.google.com"; private static final String ...