I can't compile the JavaMail demo

11823 byte By Tomexa at 2007-11-27 2:52:36
Can somebody please help me out. I am trying to compile one of the demos in JavaMail. It compiles successfully but it won't execute. It keeps giving me the normal exception when there is no 'main()' in a code. The code is below:import java.util.*;import java.io.*;import javax.mail.*;import ...

"Catch all" exception in a servlet

360 byte By dragosionela at 2007-11-27 2:53:33
I have a servlet that is deployed on WebLogic 8.1. At one point I am initializing a XSLT processor that is throwing an error.I don't know what error as the Servlet implementation (AIX machine, JDK 1.4) is catching it and showing me "Page cannot be displayed"Is there any configuration that ...

Concurent creating problem

718 byte By johnm1997a at 2007-11-27 2:53:41
I'm new to JavaEE.I'm programming a system where people can submit "tasks" for evaluating.When a person submit a task, the request go into a JMS queue, and later on a MDB is processing the task.Task is an entity.If there is no task with that id, i need to create it first (long operation)The ...

Remote EJB 3 lookup error in Sun JAS 9.01

1704 byte By Mackela at 2007-11-27 2:54:05
Hello,I have a very simply EJB 3 deployed to a remote SJAS 9.01 (say, in the host "Jupiter") that has only one remote business interface that returns a string. The JNDI name is "mypackage.MyBean".On a local host (named "Earth", local) there is a simple App Client:-package appCliente;import ...

How to write join queries in EJBQL

480 byte By Satish_Pa at 2007-11-27 2:54:46
HiI have a join query as follows:SELECT a.person_seq_id FROM fr_node_employees a,fr_nodes b,fr_node_owners c WHERE b.node_seq_id=c.node_seq_id AND a.node_seq_id=c.node_seq_id AND c.person_seq_id=?O/R mapping for tables:fr_node_employees - NodeEmployeefr_nodes - Nodefr_node_owners - NodeOwnerHow ...

Q: JCA outside of an Application Container?

701 byte By EdHildoa at 2007-11-27 2:54:53
Hi all. I have a question about JCA Adapters. Is it possible to use a JCA Adapter outside of a J2EE Application Container?For example, you can use a JDBC Connection on its own (instead of using a DataSource provided by an Application Container). You can also use the JPA in a standalone JVM ...

octet-stream type , problem!

4093 byte By jj_vzlaa at 2007-11-27 2:55:47
Hi,I'm trying to develop a proxy client for a Web service developed with Axis. In its WSDL there is an element defined as 'octet-stream' type, referencing xmlns:apachesoap=" http://xml.apache.org/xml-soap"My problem is that Im using Jdeveloper to generate Proxy client and it does not find ...

Help me to remove this Error in Entity Beans

9467 byte By Ketan.Makadiaa at 2007-11-27 2:56:02
this is the Error i am getting along with this Error i have also put my ds xml file and other related file , please help me to remove this errorat org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:91)at ...

How to send one email to multi-users using JavaMail ?

901 byte By ritesh163a at 2007-11-27 2:56:16
I am using JavaMail API. I am working in "sending emails to users", I had already tested "one email to one user" and got success but when tried to send one email to multi-users then I failed to do that? Can anyone help me to do this?I have used the below code to send to multi-user:Address[] ...

EJB 3.0 Session Bean Inheritence

398 byte By sagmana at 2007-11-27 2:56:31
Hi all,Can one stateless session bean extend another? I get "no" for an answer during deployment of my EJB module. I'm using NetBeans 5.5 with Sun App Server 9.0.For example:@StatelessMySessionBean1 implements ...some remote interface {...}@StatelessMySubBean extends MySessionBean1 implements ...

Websphere ejb remote call

97 byte By skoizumi2133a at 2007-11-27 2:59:24
Is it possible to call the ejb remotely without using application client in the websphere?

JAXB

585 byte By cronydudea at 2007-11-27 3:00:02
Hi All,I would like to use JAXB in my project. I am currently using WSAD5.1 and JDK1.4I searched on the net and got confused which version should I use.Can anyone point me to an example and the required library (from where I can download JAXB)which would support the above environment?I used the ...

Parsing java objects into XML

1004 byte By rrvvg_1976a at 2007-11-27 3:00:27
Hi,I know that we can take a POJO and use XMLEncoder to convert that object into XML. But here is the problem that I have.I have to convert my data structure (or just a plain old string - using StringToakenizer, for that matter) into a predefined XML format. Something like this:I would have TT, ...

compare EJB 3.0 vs Hibernate

275 byte By vs777a at 2007-11-27 3:00:29
It's more a theoretical question than practical. What's advantage and disadvantage of using either approach. In what sort of applications EJB is more appropriate than Hibernate and vice versa. Any references to the publications are greatly appreciated.thanks.

Injection @EJB x InitialContextLookup

706 byte By Mackela at 2007-11-27 3:01:24
Hello all,what is the "lookup" correspondent to this injection:@EJB (mappedName="corbaname:iiop:jupiter:3700#ejb/package.HelloRemote")Are the following lines?InitialContext ic = new InitialContext(); HelloRemote hello = (HelloRemote) ...

How to share common CMP beans across multiple web applications?

437 byte By hemanthna at 2007-11-27 3:02:01
In the current environment, we have 2 web based applications consistings of 2 ear files. Each EARfile consists of WAR, EJB jar and common files.There are few CMP beans which are common across the 2 applications. Can we create a seperate JAR file consisting of CMP beans and deploy it outside the ...

java.sql.SQLException: Error in allocating a connection

512 byte By patel123a at 2007-11-27 3:02:20
hi,I have developed enterprise application using net beans IDE 5.5.I created one enity bean using sql server database.When i tried deploy this project i am getting following error...Internal Exception: java.sql.SQLException: Error in allocating a connection.Cause: Class name is wrong or ...

Legacy systemv - mail configuration

369 byte By joshkeneetha at 2007-11-27 3:03:21
Hello,Could anyone please help me. I have been assigned a maintainence task for a legacy system which has no documentation in the web application code.My problem is I need to figure out where does a mail configured as "info@mydomain.com" is mapped to the actual email address within the code.Any ...

Validation of XML document % DTD

136 byte By Cordiala at 2007-11-27 3:03:34
I need method which allows to check if an XML document is valid regards its DTD. is it possible? I use JDOM.thanks,

Sending Hash Table Object

66 byte By NilanjanGMa at 2007-11-27 3:03:59
How to send a Hash Table object from one client to another?

How can I create a Web Service with several classes

697 byte By WebServicea at 2007-11-27 3:04:02
Hello,I developed an API which I want to use to create a webService that offer an acces to all the classes and use all their methods.I tried this with Netbeans but I view that I will have a WSDL file for each class.But I have tested the yahoo api web service of the image search and it offer ...

search emailids by alias or partial names

317 byte By srinivas_pokunura at 2007-11-27 3:04:07
Any ideas on using javamail API to get valid emailids based on alias names?I have a list of" last name, first name" I can simply do a ctrl+k, outlook address book will let me know if there is a valid email or not. since my list is really huge, i cant go manual.any pointers is greatly ...

Call Enterprise Bean from a Java Class

200 byte By deepak@stara at 2007-11-27 3:04:14
Hi I am trying to Call Enterprise Bean from a normal Java Class but I am dont get the expected results. But when I do the same thing a Servlet...it works fine.Please help me this.

wsimport problem from wsdl created from axis

1031 byte By Meirya at 2007-11-27 3:04:30
Hii got wsdl file and i need to create java client stubs from it but when im trying to do this with wsimport im getting : [wsimport] [ERROR] undefined simple or complex type 'soapenc:string' in :<complexType name="user"><sequence><element name="myname" nillable="true" ...

Rich Client and Security

968 byte By agesa at 2007-11-27 3:04:42
Hello,i'm a litte bit confused about security in JEE5. I've searched now for a long time in the web and found nothing which helped me a lot. First I explain what I want to do:I'm writing a client/server application. The server part is done with session beans and the client is an rich swing ...

Problems to verify XML Signature produced by .NET

845 byte By stettlermarioa at 2007-11-27 3:05:02
Hello allI'm currently implementing a Java application that must verify XML Signatures following the XMLDSIG standard of W3C.So far i'm able to verify XML Signatures produced by standard sr105Provider "org.jcp.xml.dsig.internal.dom.XMLDSigRI" which is part of jwsdp-1.6 and jwsdp-2.0 ...

doc/literal/wrapped question

4180 byte By Flossya at 2007-11-27 3:06:33
HI,I want to create a web service that takes a XML document as input and returns the same document only with added information. The XML of the document is defined by XML schema.I started with the WSDL using the document/literal/wrapped style. I defined a element with the same name as the web ...

Java xml XSTL problem

1460 byte By vatora at 2007-11-27 3:07:06
I've got a problem using XML and XSTL. I want to present last times logged into a webpage for a user. The database contains several logs for a user but the problem is that it only presents the first.Here is the code:This is the function for making the XMLpublic Document ...

JMS exception

1745 byte By ahujava at 2007-11-27 3:08:06
Hi,I have a JMS client and I am using ActiveMQ. When my JMS client is on the same machine where ActiveMQ is running, everything works just fine. However, if I run my JMS client from another machine (my laptop), a JMS exception occurs at one of the steps as follows:1. javax.jms.Connection ...

What way to parse large XML-message?

973 byte By Mr_T_Andersena at 2007-11-27 3:08:55
Hi all!I'm trying to parse an incoming XML-message, but I cant figure out what way to do it.The message that I'm supposed to parse lookes something like this:<message><name>Name</name><text>Text</text>[...] Some more textfields [...]<data>Base64 encoded ...

@GeneratedValue Oracle error

679 byte By elSkoonoa at 2007-11-27 3:08:58
Hello,I've been searching and haven't found any reference to this problem. I'm getting the following errorInternal Exception: java.sql.SQLException: ORA-00942: table or view does not existError Code: 942Call:UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ?bind => [50, ...

Example of using session bean with webservices

841 byte By Hinanuia at 2007-11-27 3:09:18
Hello,I am working with netbeans 5.5 (with JAX-WS 2.0 library) and using Tomcat.I have created webservices and everything is working well so far. However, each webservice is making a connection to my database. I would like to use a session bean so that I make the connection only once (at the ...

MQ-Get all Q Names on a queue manager

99 byte By yehuditrua at 2007-11-27 3:10:21
Hi,Please suggest an java API that describes all the queue names on a queue manager .

javax.naming.NameNotFoundException

535 byte By Viplava at 2007-11-27 3:10:43
Hai All, I have created a EJB project and a Web Project IndividuallyI am trying to lookup the onject of EJB from the Web Project I am getting the following Exceptionjavax.naming.NameNotFoundException: Context: 01453Node01Cell/nodes/01453Node01/servers/server1, name: vvv: First component in name ...

error accessing enterprise application in SJSAS 9

1476 byte By isaacvma at 2007-11-27 3:10:52
Hi all.I developed an enterprise application using Oracle JDeveloper 10.1.3. The application contains an EJB module and a WAR module. The EJB module uses BMP Entity Beans according to 2.1 specifications, while the WAR module uses the JavaServer Faces Technology version 1.1. The EJB and WAR ...

Messaging Exception returns host name

3746 byte By MAYAa at 2007-11-27 3:11:02
I'm trying to connect to a mailbox in a machine with following code:try{Properties props = new Properties();Session session = Session.getDefaultInstance(props,null);// Getting the store for the given protocolstore = session.getStore(protocol);// Connecting to the ...

XML Messaging in Distributed Env.

926 byte By sobee26a at 2007-11-27 3:11:43
HiWe are about to start a big project, which needs a web application to process 30-40 different XML message types and reply back the messages in both synchronous and asynchronous way. There are around 10 other system involved, which will send and receive message to the web application and all ...

How to write JTree to a XML file using DOM4J ?

126 byte By HungNguyen_230864a at 2007-11-27 3:12:28
Hi All,Pls show to me how to write JTree to a XML file using DOM4J ?Thanks in advance.Hung Nguyen.

xml file parsing using DocumentFactory

1236 byte By kurra99a at 2007-11-27 3:13:01
Hai ,I dont know how to read an xml document using DocumentFactory ..i am using netbeans and jdk1.6. do i have to download any jar files and put those in lib. Can any one tell me what i have to fallow.my sample code is:import org.w3c.dom.Document;import org.w3c.dom.NodeList;import ...

Gmail Could not Send Mail

4034 byte By JChefa at 2007-11-27 3:13:02
Hi,I've wrote a code to send a mail to recepient from my gmail account.My Code is as below:import java.io.*;import java.security.Security;import java.net.*;import java.sql.*;import java.util.Properties;import javax.mail.*;import javax.mail.internet.*;import javax.servlet.*;import ...

BPEL VB interface Communication

116 byte By Akash_Gangaa at 2007-11-27 3:13:30
Hi,Is there any way in which I can invoke a Visual Basic interface from a BPEL process ?Karthik

Client Problem

1860 byte By steelbutta at 2007-11-27 3:14:09
Hi everybody,I'm trying to program and run the simplest of EJB 3.0/Client examples using NB 5.5/Enterprise Pack 200612... . I've got a stateless session bean that contains one method which is exposed to the client via the remote interface. I've also created an EJB client, that has a ...

SAAJ with JAX-RPC...help needed.

854 byte By karthik_reddya at 2007-11-27 3:14:55
Hi,i have a web service in JAX-RPC. if i want to use the SAAJ API to create the SOAP message and send it to the Web Service how do i do it? I found we use the following to invoke the web serviceconnection.call(message, endpoint)where message is the SOAP message created and the endpoint is the ...

web sphere or web logic

102 byte By senthil_yogaa at 2007-11-27 3:14:57
Dear friends,May i know which one is good to work , regarding web logic or web sphere...

Capture Schema DB2

389 byte By hdeweerdta at 2007-11-27 3:15:26
I have upgraded our DB2 version to the latest Fixpak on our test and development system and capture-schema stopped returning the column names. Only the tables are listed within the schema file. I used the CLI and the latest Netbeans version. Capture-schema works on the Production DB2 which is ...

Connection pooling for a standalone application

438 byte By Ru@PAa at 2007-11-27 3:15:42
hi,I am exploring the choices available to implement connection pooling for a standalone java application. One option is to use Commons-DBCP package.Another is to use an application server's Database pooling using RMI. Is this possible with Websphere? I have seen posts where this has been done ...

Unsupported Version error when trying to run Web Services Tutorial example

1119 byte By azeem3a at 2007-11-27 3:16:38
Hi there, I'm trying to run the first example from the Java Web Services Tutorial and get the following error when I type 'asant build' in my Command Window. Buildfile: build.xmlBUILD FAILEDjava.lang.UnsupportedClassVersionError: com/sun/tools/ws/ant/WsImport (Unsupported major.minor ...

Database connectivity

650 byte By deepak@stara at 2007-11-27 3:17:45
hi friends,I am using NetBeans IDE 5.5, Java EE 5 SDK and SQL Server 2000 as backend Database. I am trying to use Microsoft SQL Server 2000 Driver for JDBC to connect to the database but it keeps on trying to connect but it never gets successful.Can anyone please tell me which is the most ...

Deleting CMR OC4J 9.04.0 - 9.0.4.1 - 10.1.2.0 - 10.1.3.0 - 10.1.3.1

563 byte By Alexis_SOUMAGNEa at 2007-11-27 3:19:19
I've a simple code that work correctly on Oracle iAS 10g Release 1but not on Release 2 or Release 3.We have already received a patch from Oracle for the Release 2Today we are requesting a patch for the Release 3 as the bug remains on the NEW Release.Unfortunately, Oracle Support didn't want ...

web Service Client

1258 byte By tonizza at 2007-11-27 3:19:29
Hi everybody,I am trying to create a web service client for a weather service. When I make the call I receive the error: Server did not recognize the value of HTTP Header SOAPActionHere is the code and the web service descritpion,thanks in advance!web service: ...