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 ...
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 ...
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 ...
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
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 ...
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: ...
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" ...
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 ...
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 ...
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: ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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
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 ®ards
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
public static String XMLTransform(Source xmlSource, Source xsltSource)throws DocumentException,TransformerException,TransformerConfigurationException,Exception{ByteArrayOutputStream returnByteStream = new ByteArrayOutputStream();StreamResult streamResult = new ...
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 ...
Hi,I am new to the javax technology.I have a xml that has data in this format <?xml version="1.0" ...
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 = ...
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 ...
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 ...
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 ...
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 ...
Hi How do you deploy a normal Java application onto the Sun server...what are the required config files one needs to set etc
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 ...
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 ...
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
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 ...
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 ®ards
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 ...
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 ...
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 ...