Hello,I'm developing an application with EJB3 technology and i have a trouble when i try to make a query that involves entities with a OneToMany or a ManyToMany relationship.I can recover an entity in the "One side" of the relationship only if there is not any entity related in the "Many side" ...
Could any one provide ,what would be the reasons for the following error information.--[5/7/07 0:16:21:853 EDT] 11ba7fef SystemOutO DEBUG SMTP RCVD: 505 Authentication required[5/7/07 0:16:21:853 EDT] 11ba7fef SystemOutO DEBUG SMTP SENT: QUIT[5/7/07 0:16:21:853 EDT] 11ba7fef SystemOutO ...
Hi,I've been bashing my head against a wall on this one for too long now.I've got a JAX-WS web service deployed to Glassfish v2 b33 which works fine when called by a Java client. It also works fine when methods with no parameters are called from the MS client, i.e. simple and complex types ...
Hi, I have DOM parsed doc, if i use xpath to select a node by passing in the parsed doc it will return what i am looking for-- hence the xpath is correct. If i clone a node (true), with all it's children and pass this node into xpath to select the same node with the correct xpath it returns ...
hello all I wanted to run a java class from a c prog,can any body suggest the way in which this can be done, links or tutorials in this regard is highly appreciable,thanks in advanceMessage was edited by: mahima_vyas
4532 byte By
Boomaha at 2007-11-27 3:49:17
Hi people. I'm having a problem that I really can't solve no matter how much time I spend on it and was wondering if it is possible.I want to validate and create XOM documents. The xml will always be a certain format whether the schema is defined in the xml or not. I need to handle both ...
Hi Everybody,Is this possible to add a link to XSL file in an XML file using some API?my application generates an XML file and I have an XSL file for that.is it possible to add this tag to the XML file: <?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>or there is a way to use that ...
137 byte By
Joswetha at 2007-11-27 3:49:59
Hi..Im new to JMS and I need help to send/recieve a HashMap through JMS application.Thanks in advance,Josweth
611 byte By
svagera at 2007-11-27 3:50:52
I have an XML file that can potentially have special symbols in it such as &,/,<,>. etc.How do I handle this characters with out exceptions being thrown?Example File<?xml version="1.0" encoding="utf-8" ?><BATCH> ...
Hello-I have trouble understanding the packaging of an ear. I understand that it packages an entire enterprise application, but don't you usually want to deploy EJB's in a separate container than your wars?How would you do that with an ear?
1511 byte By
danilexa at 2007-11-27 3:51:58
Hello, this is my first post.I have a problemm when i try to read a mail with attachments. this is my code: Object o = unaParte.getContent();if (o instanceof String){System.out.println (o);}else if(o instanceof javax.mail.internet.MimeMultipart){MimeMultipart multi= ...
339 byte By
Balroga at 2007-11-27 3:52:51
If you have a scenario where an Asynchronous Message Arrives and then it has to be written to the database. In casethe write fails, is there any way we can roll back the ENTIRE transaction, so that the message can be re-delivered?This is assuming I'm using the conventional JMS model (not ...
I am trying to create a development environment for web services, web portals, java, etc. using Netbeans.I have a question on which toolkits I should download. I looked at the site for Java Web Services Development Pack and it said it had been replaced with the Glassfish Applciation Server.My ...
Hi there,I'm having a database with live data in it.Now i have to change some tables (add columns, etc.). How can i do this without using drop-create-schema mechanics?Do i really have to change my entity classes first, change schema creation to just create-schema so that only new tables are ...
255 byte By
rajavena at 2007-11-27 3:56:01
hi all,I'm using apache axis2 for creating Webservices.When i calling the webservice i'm getting response in xml format as expected.I wants return the response in text format.How can i do this.regards,Raj
244 byte By
fox_xofa at 2007-11-27 3:56:33
i made a web service and i upload the war file to the Apache Tomcat/4.1.31, JVM Version (1.5.0_01-b08) and when i build client to access the web services it s tell me that (The Server dose not support JAX-RPC)i need help :)
224 byte By
Jakvaa at 2007-11-27 3:56:44
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.Can anyone help me about this problem? or may be leave some suggestion plz.
Hi All,I have an exterprise application containing few configuration screens in web module and an MDB in ejb module. I'm using OC4J 10.1.3.0 as my server.In the jsp screen, I've a text field for the user to key-in the name of JMS destination to which my MDB will have to listen to. i.e, when ...
Hi,I'm creating webservices that send objects but i don't manage to create a client (java) as somebody who will just see the WSDL.The specific method of the webservice I want to call from a client is that:public Person sendObject(Person pers) throws ...
hii m trying to read a mail from java prog using pop3 please tell how to differentiate b/w read n unread mailthanksregardsmahima
Hi,Someone knows who to manage easily Exceptions with web services ?- Do we have just to add some lines in the WSDL ? (which ones ?, an exemple is welcome) Maybe the WSDL can be generated with "Fault" tag automaticly with glassfish ? (if yes, how ?)- for the client, how he can treat the ...
Hello, I'd like to enable logging in my enterprise application's ear (from my session beans) and war (from my backing beans) modules and log to console and also a file. I couldn't find satisfactory help on the subject. So far I have enabled loggin to console by using lo4j, but can't enable ...
I don't know if this is the right forum to ask this question, I wanted to know if anybody have implemented a web scraping program in java using standard library or using some third party library.Is it advisable to write such a module in java or some scriptiong language is more suited for this ...
Hello all,We've got the up-to-date-check working for the JAXB xjc ant task; it works like a charm. However, I've got other ANT tasks that need to be conditionally executed based on whether the schema and the generated source are up to date.For instance,1) I don't want javac to recompile the ...
2539 byte By
jay44a at 2007-11-27 4:00:17
As I searched this forum for a discussion to answer my question, I located some discussions that while relevant indicated some people posting did not understand basic concepts regarding system exceptions and ejb抯.So I first make this statement, and ask someone to correct it if it wrong. If an ...
352 byte By
Ni_Mina at 2007-11-27 4:00:20
I have a java email program that can take a mail host name , port number and then send an email, but I don't want to use the mail host at work, I wonder if I can send email through my Yahoo Mail or Gmail account with Java, do they have any Java API that my program can log me in and send emails ...
461 byte By
yircoa at 2007-11-27 4:01:06
Hi,I need to parse an XML file which has xinclude e.g.:<xi:include href=" http://www.something.com/xml/document.xml"/>I use the SAX parser. The problem is that the parser runs on a network behind a proxy so the parser times out while trying to connect to the href location. Is there a way ...
in java mail function if i not connect to smtp....is it give catch exception message ..........
302 byte By
jw-a at 2007-11-27 4:03:21
Just find that in the design of a web application server, the inter-process communication between different processes on the same serveruses SOAP other than the classical inter-process communicationapproaches. Is the overhead too high by using ...
How does one handle a J2EE application's deployment-dependent properties?That is, say my J2EE application needs to lookup a property value (for simplicity, say, a string valued property like 'server.name') that will vary across deployment and server environments.1. I don't want to bury it ...
Hi,I've realised a web service with style=rpc and now I want to change to "document".Everything is ok, but my DIIclient throw this error :ERROR org.jboss.ws.jaxrpc.CallImpl - Call invocation failed with SOAPFaultExceptionjavax.xml.rpc.soap.SOAPFaultException: Endpoint cannot handle requests in ...
Hi friend iam trying to deploy my MDB on Jboss as but i get these errorsVerify failed; continuing java.lang.NoClassDefFoundError: jms/server/MDBi cant find what is the problemin the jar file i hav directory jms/server under that directory MDB.class exhists. and in the ejb jar i mentioned like ...
288 byte By
Laddhaa at 2007-11-27 4:04:52
Hi,But, if I want to use a thick client then how I can make calls through HTTP.I know about j2ee client container. But in addition to it, I may have to write some code on client as well on server. Any inputs/guidelines will be helpful for me.Thanks,Plad
HiI stay developing a base web application which should be able to comunicate with other web applications (like application on front of module applications). The colaborating applications can be in the same application server or distributed against base web application...Well, my question is if ...
366 byte By
kbirda at 2007-11-27 4:05:40
hi , i am relatively newbie to ejb, i have been learing ejb for last week , having going through some stuff in ejb 2.1/3.0 versions i am relatively confused of difference ejb stuff here.what is the possible better version to start the ejb with, and can someone tell me the some differences in ...
474 byte By
basti78a at 2007-11-27 4:05:41
I need to pass login information to server when sending SOAP request. Do I use MimeHeaders to carry username/passwrod pair?...SOAPMessage message = factory.createMessage();String authorization = Base64.encode("username:password".getBytes());MimeHeaders mimeheaders = ...
325 byte By
rajavena at 2007-11-27 4:05:51
hi all,I need to implement REST architecture. Is there any framework for REST.I'm studying restlet framework but i am not able to implement this framework.Can anyone help me implementing this framework.If u know any other REST frameworks pls guide ...
719 byte By
caesara at 2007-11-27 4:06:30
Hi All,I have task to develop a java based email client (POP3, IMAP and SMTP based) which only allows email with attachment with certain extension to be downloaded by clients. I develop it with javamail API.So far my implementation for IMAP is to retrieve all unread/new messages and then check ...
Has anyone encounterred any issues with a single client trying to talk with two different JMS vendors?I have experienced problems with this before where the classloader picks up the implementation of the first vendor on the classpath and thrown exception because the message was not formatted ...
Hi,I asked some questions on this forum but didn"t get answers.In order to help many developers in the same time, I try to make a tutorial (with holes). But I need help too.If you can bring changes on this tutorial I'm sure thqt all developers will be happy to have it.the tutorial is updatable ...
559 byte By
Ankrotha at 2007-11-27 4:07:23
Hello developers,I磎 student from the Czech Republic and now I磎 working on my StressTester for Kerio Technologies (school work). I磎 using MailAPI and my program is almost complete, but I really need help now. My question is: "How can I discover when the e-mail was delivered to Kerio Mail ...
1017 byte By
bunnya at 2007-11-27 4:07:52
hi,I'm trying to send email to two addresses... thus have:message.setRecipient(Message.RecipientType.TO, to);message.addRecipient(Message.RecipientType.TO, toW);I get an error unless I remove 2nd line...(I don't want to add both recipients in one stmt because the 2nd one will go inside a ...
569 byte By
June_Ma at 2007-11-27 4:08:23
I have 2 ejb3.0 entities, @Entitypublic class AReadOnly {...}@Entitypublic class A extends AReadOnly{...}and then I have a session bean @Statelesspublic class B{@PersistenceContextprivate EntityManager em;public void doSomething(){AReadOnly aReadOnly = em.find(AReadOnly.class, 1); // succeedA a ...
import java.io.IOException;import java.io.PrintWriter;import java.io.StringWriter;import java.util.Vector;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;public class ...
873 byte By
rapthora at 2007-11-27 4:09:52
Hello,I am about to build a new web application and there will exist 2 major roles like administrator and user.Those two roles can then be extended to assign more rights to them.Is there a common most used practice for this topic?Are administrator and user persistent classes that should be ...
824 byte By
tmmeta at 2007-11-27 4:12:23
Hi,Can anyone help me out ?I am using Stateless session bean. In my bean, I call BO class which performs business validations and then , call Data Access Object class(say, class A) .The class , A updates database table A, then, calls Data Access Object class B which updates database table B and ...
[nobr]Hi,recently I started playing around with bluepritns and I encountered some problem I cant get pass by. The problem is with the fileUploadTag and it's postProcessingMethod that does not seem to be working! The fileUploadTag itself is working alright but if I bind the postProcessingMethod ...
592 byte By
vatora at 2007-11-27 4:12:47
Hey!In my project I have a database with several tables. To each of the tables I have an entityclass that communicates with the table and a sessionbean that communicates with the entityclass. So far all is well, but I've run into a problem when Im trying to select info from several tables.Here ...
1254 byte By
hofri-ya at 2007-11-27 4:12:59
Hi,i'm using the latest release of sun-bpel-engine, and have encountered some weird behavior / BUG.... when running it over windows, my project runs great. but when deployed to unix (when not debugged), it fails and throws: May 13, 2007 3:44:41 PM com.sun.jbi.engine.bpel.BPELSEInOutThread ...
Hi all,I have xml in which there are elements that all have an exact set of attributes: name, beanid, type, description. e.g,<state name="il" beanid="il" type="il" description="country"><properties><population variable="" type="" mandatory="false" direction="in"/><flag ...