installation

144 byte By codename47a at 2007-11-27 9:12:39
Hi all I am a beginer. I have to do a jsp project I installed tomcat 6.how can i change the work directory to D:/JSP

Servlet VS JSP

149 byte By BomberMana at 2007-11-27 9:13:33
Hi, thereI'm newbie, can any one tell me what is advantage and disadvantage of servlet compare to JSP?Thanks for advance

Problem with decoding

185 byte By burchika at 2007-11-27 9:14:46
How to decode text like this: ?koi8-r?Q?=FD=C5=CC=CB=D5=CE=CF=D7_=ED=C9=C8=C1=C9=CC?= with the help of Java, of course?P.S. Do not send me to Java Mail FAQ, I've read it.

error compile stylesheet

3307 byte By Taigoa at 2007-11-27 9:15:11
hi!i need to transform a xml file into html file using docbook styleseheets, my java is:import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.DocumentBuilder;import javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import ...

Please tell me how to solve this

12805 byte By George-Kankavaa at 2007-11-27 9:15:31
I am using EJB 3.0 and SJSAS 9.0 --deployed with moduleid = EmployeeEntity[TopLink Config]: 2007.06.29 06:14:14.760--ServerSession(11110670)--The alias name for the entity class [class employeeentity.entity.Employess] is being defaulted to: Employess.[TopLink Config]: 2007.06.29 ...

To deploy a webservice on Sun Application Server 9.0_01

1911 byte By quazarbluea at 2007-11-27 9:16:17
Hello,I developed a very simple service class annotated with @WebService.If I copy the class directly in the autodeploy, the server startsautomatically everything and I see it on the web services, andalso the call to http://server/MyService/MyService?WSDL works fine.If I package the class ...

command to generate client stubs

667 byte By javaguy2007a at 2007-11-27 9:17:22
Hi, I'm quite new to J2EE field and my question must be a simple one.I've written an enterprise bean (stateless session bean, j2ee 1.4) and also the Home and remote interfaces. I want to generate the client stubs so that other project can invoke the session bean doing a JNDI lookupI'm using ...

Send SMS from the system that i create to Hand Phone

237 byte By Angel_Weia at 2007-11-27 9:20:11
Can anybody tell me how to send SMS from the system that i create to Hand Phone. now i am doing a system and i need to send same information to inform the user via hand phone. Can i use Java Message Service or J2Me to do that? TQ.

CMP Entity Beans and data cleanup

723 byte By ak102a at 2007-11-27 9:20:25
Hullo,I'm fairly new to entity beans, and I have a general design question regarding CMP entity beans. I've been trying to google for an answer but I still can't quite answer it yet.... Anyways, here's my question: as I understand it, the J2EE server is responsible for creating and removing ...

how do I get EJBContext in EJB 2.1

67 byte By Jatin_Kulkarnia at 2007-11-27 9:20:36
How do I get EJBContext in EJB 2.1. rgds,Jatin

Admin console password

164 byte By ronada at 2007-11-27 9:20:48
Hi,I have forgot Sun java 9 App server's admin console password. Is there a way to reset the password or reset ?.Thanks,Veeranna Ronad.

Constructors in Session Beans

837 byte By albertthea at 2007-11-27 9:20:53
Hi all!I'm trying to understand the basic concepts of EJB. Starting with Session Beans I read that all these beans must implement a default constructor, for instance:public class HelloBean implements SessionBean....public HelloBean(){}....And I read that also other parametric constructors can ...

need help in url mapping ...

608 byte By deaaa at 2007-11-27 9:21:04
hello,(excuse me for my poor English)I want to map a short url to large one. for example:mapping : 1)www.example.com/testto2)www.example.com/sport.jsp?x=1&y=2meaning every one hit the first url redirect to the second.(and case insensitive: TEST or TeSt is legal)what is the best way to do ...

Java EE 5 SDK Installation Errors

1143 byte By sandeep_m1981a at 2007-11-27 9:21:09
I get the following error and installation abruptly halts.Can someone please suggest what do i need to do ?INFO - unpacked jar file: F:\Program Files\Sun\SDK\lib\webservices-tools.jar.pack.gzINFO - unpacked jar file: F:\Program Files\Sun\SDK\lib\deployment\sun-as-jsr88-dm.jar.pack.gzINFO - ...

NetBeans ApplicationBean PageFragmentBox upload

667 byte By Pawel34a at 2007-11-27 9:21:33
Hi. I have a site created in NetBeans (it's a Visual Web Application). It's based on Sun tutorials for NetBeans like this one http://www.netbeans.org/kb/55/vwp-fileupload.htmlApart from the File Upload component I also have - as a header - Page Fragment Box where there are : one picture ...

Not able to see farsi words in email on windows server 2003

566 byte By ketanbparekha at 2007-11-27 9:21:46
Hi all,I am using james mail server 2.3.0 along with jsieve(java implementation for the Sieve mail filtering language )mail content filter on OS windows xp along with jboss for putting the mail on the queue.I am sending farsi words in my email they are been seen in email body in windows XP but ...

javax.ejb.EJBHome not Found

2820 byte By Java_Boxera at 2007-11-27 9:21:55
Hi there,m new to EJB i' ve got a prob in compiling a client java fileErrors:HelloClient.java:22: cannot access javax.ejb.EJBHomeclass file for javax.ejb.EJBHome not foundHello hello=home.create();^HelloClient.java:24: cannot access javax.ejb.EJBObjectclass file for javax.ejb.EJBObject not ...

Java 6 JAX-WS self hosted services listening on one interface only

1497 byte By kubakabacinskia at 2007-11-27 9:22:54
JAX-WS included with Java 6 provides a built in HTTP server giving the ability to host web services without running a Java EE server. I've created several sample services to get myself familiar with the functionality and followed http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/ ...

Message Persistency

509 byte By boraboraa at 2007-11-27 9:23:17
Hi,I am a noob on JMS, I understand that message can be persisted before it is send to the destination.However, I need to persist the message whenever it reaches my local queue (for recovery purpose, e.g. before the message being processed, the whole server need to restart). Can the JMS ...

XPath problem - how can I correctly parse this XML?

1883 byte By syg6a at 2007-11-27 9:23:45
Hello.I have a problem with how XPath parses my XML doc, and I don't know if there is any way to fix it.Let's say I have the following XML which represents room availability for a given hotel :<GetAvailability> <IdHotel>x</IdHotel> ...

Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Addr1

476 byte By prakash.nmsp@gmail.coma at 2007-11-27 9:24:15
Hi All,I am getting this error when am try to exeucte the jar file.D:\>java -jar smirror.jarException in thread "main" java.lang.NoClassDefFoundError: javax/mail/AddressI have set the classpath like this :D:\>set classpath=D:\javamail-1.4\mail.jar;D:\jaf-1.1\activation.jar;But i dont no ...

XML classpath issue.

1112 byte By srins_2000a at 2007-11-27 9:24:50
Hi,My web app is running on iPlanet 6.0 with JDK1.3.1. I'm planning to upgrade the JDK version to 1.4.2. But by doing so, I'm getting a FactoryConfigurationError. I'm using the old xerces.jar file and its on the classpath. Here is the error message:Internal error: Unexpected error condition ...

New to EJB

194 byte By pinto_ga at 2007-11-27 9:26:08
HiI am new to EJB technology.Can anyone pls let me know from where can i download a sample application which i can install on Websphere and learn more?ThanksPG

Using a transaction in CMP which is marked as setRollbackOnly in session be

257 byte By tetsa at 2007-11-27 9:27:40
Session Bean is calling CMP.Session bean starts the transaction and CMP has transaction="Mandatory". What will happen if I call some finder method on CMP after I set mySessionContext.setRollbackOnly () in session bean?ThanksAbhay

BPCatalog file-upload component bug

529 byte By @akira_aga at 2007-11-27 9:27:42
Hi!I think that found a bug:If for the BPCatalog uploading example (bp-file-upload.war) you change in web.xml a Faces Servlet mapping from "/faces/*" to "*.jsf" - component doesn't work when index.jsf is opening (progress bar didn't see and uploading didn't any action):... ...

How can I persist the content of "xsd:any" tag using JAXB and EJB3?

3744 byte By bastrala at 2007-11-27 9:28:11
Hello,Using wsimport I generated a class from the following xsd type:<xsd:complexType name="MDVendorExtensions_T"><xsd:sequence><xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/></xsd:sequence></xsd:complexType>The class ...

Web service to validate US states, city and zipcode

222 byte By tahirakrama at 2007-11-27 9:29:19
I want to validate city against selected state and zipcode against selected city.Is there any free web service that I can use to validate it.Kindly help...thanks in advance.--Tahir

Using SQL Server to call stored procedure?

234 byte By CJ_125a at 2007-11-27 9:29:41
Hi All,I am using Netbeans 5.5, app.server 9.0 and SQL server 2005. I have some problems when calling stored procedures in EJB 3.0. Do you have any idea how to call stored proc? Kindly regards, Chris

java.lang.NullPointerException in session bean

1407 byte By jiangzhia at 2007-11-27 9:30:48
Hi !I am trying to get a Entity bean through "LocalHome.findByPrimaryKey".I get an error:java.lang.NullPointerException.this is session bean:public class LoginBean implements javax.ejb.SessionBean {private javax.ejb.SessionContext mySessionCtx;public UsersLocal usersBean = null;public List ...

ArrayList in WebService

1094 byte By prashant1406a at 2007-11-27 9:31:00
I am newbie to WebService. I was able to develop a sample WebService using AXIS. The WebService had only primitive datatypes like int, String. Now i would like to move a step further. I would like to create a WebService that has non primitive data types like Collection Data Types etc. Any ...

How to get name of default mail server?

275 byte By deepakchandarana at 2007-11-27 9:31:08
Hi , I need to get the name of default mail server . In 1.5 i can get this usingSystem.getenv("MAIL_SERVER");.How do i get this in 1.4?Since getenv() is depricated in 1.4 , how can i get the name of mail server in 1.4?plz help me....

JAX WS webservice returning List

489 byte By patel123a at 2007-11-27 9:31:32
HiI want web service to return list,following is the code snippet i tried@WebMethod() public List<CustomerInfo> getAccountList() {Query query=em.createQuery("from CustomerInfo c");List<CustomerInfo> info= query.getResultList();return info; }i tested webservice using web service ...

ERRORsymbol:class UserTransaction(cannot find symbol)/package javax.mail.in

690 byte By crisssa at 2007-11-27 9:32:10
Hi people, I am trying to compile a web proyect in MyEclipse with Ant 1.6.2, but now it appears an error that says : [javac] F:\...\Doc1.java:13: cannot find symbol[javac] symbol : class UserTransaction[javac] location: package javax.transaction[javac] import ...

JAX WS version?

156 byte By patel123a at 2007-11-27 9:32:36
hiI am very new to webservcie.can anybody explain how could i check JAX WS version.I am using jdk1.5. and jboss 4.0.5 app server

given some xml and an xsd, how to remove extra stuff in the xml.

412 byte By NightWinga at 2007-11-27 9:34:04
Hi. I have a question. I am trying to use the various XML libraries to parse/validate an xml file given an XSD schema. I want to remove the extra stuff in the xml to output a new xml. The problem is as I validate or parse the SAXParseException it produce only gives me the localName. Is there a ...

Who can tell me about the addresses?

3420 byte By amanjpro@yahoo.coma at 2007-11-27 9:34:11
I'm trying to send an email to via my contact us page, to my info mail account...but my problems is about addresses...boolean debug = false; // change to get more informationString msgText = "A body.\nthe second line.";String msgText2 = "Another body.\nmore lines";boolean sendmultipart = ...

Reseting the database with java pet store and Java EE SDK 9.1

180 byte By jahendrick5a at 2007-11-27 9:34:16
I have added contents into the Java Pet Store Database through the web application interface and now I want to reset the database back to its initial state. How can I do so?

JNDI Context Retrieval in EJB 3.0

713 byte By albertthea at 2007-11-27 9:34:32
I have a doubt about JNDI context retrieval in EJB 3.0. I know that when I call a bean from another bean I can use this line:InitialContext ctx=new InitialContext();But I'd like to know whether in a Client I am obliged to pass this parameter:InitialContext ctx=new ...

help required

2978 byte By shahi.mcaa at 2007-11-27 9:36:45
i am getting following exception when running my HelloClinet from command prompt after deploying EJB Application in Websphere 6.1the exception is:Exception in thread "main" java.lang.NoClassDefFoundError: HelloClient (wrong name: examples/HelloClient)at java.lang.ClassLoader.defineClass0(Native ...

about javamail

1909 byte By abhinay_31a at 2007-11-27 9:37:32
hellow hi friend i have one doubt i am new in javamail so i have successfully compiled following javamail program import javax.mail.Message;import javax.mail.Session;import javax.mail.Transport;import javax.mail.internet.InternetAddress;import javax.mail.internet.MimeMessage;import ...

Error in generating a new XSL Transformer from large xslt File

561 byte By RollinMaoa at 2007-11-27 9:38:17
Good day to all,Currently I am facing a problem that whenever i try generating a Transformer object from TransformerFactory, I will have a TransformerConfigurationException threw. I have did some research from the net and understand that it is due to a bug that JVM memory limit of 64kb. However ...

postMail method does not work

2360 byte By shamexa at 2007-11-27 9:38:26
postMail method throws this exception "Could not send email". This exception occurs at this line of code "Transport.send(msg)". Does anyone have any idea ? public void postMail( String recipients[ ], String subject,String message , String from) throws MessagingException,IOException {boolean ...

How to create EAR file

43 byte By sumanmainama at 2007-11-27 9:39:14
how to create EAR file in my project

java sendfailedexception

324 byte By vrajkumar09a at 2007-11-27 9:39:30
Hi,When I try to send a mail from my app it is throwingjavax.mail.SendFailedException: Sending failed; nested exception is:class javax.mail.SendFailedException: Invalid Addresses; nested exception is:class javax.mail.SendFailedException: 598 mail is rejectedany ...

new to web service...

384 byte By sachin_katariaa at 2007-11-27 9:39:35
hi,i have to create web service which will call pl/sql procedure. i have wsdl file (order.wsdl) and xml file (order_request.xml) .and i am new to webservice, i dont know how to create it.so, pls give me some details regarding web service(creation, test, deployment)i am using eclipse 3.2 WTP and ...

Getting error while sending mail through javamail api

6086 byte By Anbarasu.Da at 2007-11-27 9:39:36
I can able to compile the following code successfully but while executing it showing the error C:\Program Files\Java\javamail-1.4\demo>java msgsend -o anbarasu.d@abs.in -M 203.112.158.188 anbarasu.d@abs.inException in thread "main" java.lang.NoClassDefFoundError: msgsendimport ...

Indent XML code

404 byte By bbclonea at 2007-11-27 9:39:50
Hi,I'm generating an xml file using Java (dom) and I need it to be idented. How can I do that ? I'm using java 1.6 and I already have the line transformer.setOutputProperty(OutputKeys.INDENT, "yes");Is it possible without changing api? I think JDom does the indentation, but I can't change to ...

WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping:

874 byte By patel123a at 2007-11-27 9:40:21
hi I am trying web service,where it returns collection.following is the code snippet, @WebMethod() public Collection<CustomerInfo> getAccountList() {Query query=em.createQuery("from CustomerInfo c");return query.getResultList(); }the problem is at the time of deploying i am getting ...

Entity EJB 2.1 and finbyprimarykey

388 byte By mirentxua at 2007-11-27 9:40:45
hello i am using one entity bean for find by primary key oe database register.one field from this row isone oracle clob field.if i access to tis row using one normal resultset i load the data into one byte[] well but if i try to load this row i cannot put it into the byte[] propertie od one ...

Illegal Access Exception

391 byte By kiransp_screena at 2007-11-27 9:42:32
I m using Sun Java Application Server for learning J2ee. I started with EJB. When i create a client stub jar and try to invoke the session bean from the application client using the tool appclient....then i m getting an error ......Error::java.lang.IllegalAccessExceptionThe description is like ...