Does anyone know how to write a Bytearray as attachment?

351 byte By sjallan at 2007-9-26 7:16:56
I try to put a file I have on my disk in a MimeMessage as it is. I have somme spcial characters inside and when I transform them to char or string to use the setText method, it gives me "3F" code. So I try to use the setContent methode with a byte array, but i can't find what kind of ...

How to set up JDBC for MSSQL7?

191 byte By airqq at 2007-9-26 7:17:12
hi all,I'm new in MSSQL7. I used to connect jdbc/odbc with oracle. do I need a driver class file from MSSQL7?thank you for your advise.regards,elvis

Administering topics with MQSeries

503 byte By Ssteven at 2007-9-26 7:17:17
Hi,I'm working with MQSeries v5.2, and support pack MA0C (for publish/subscribe).I don't get it: I have everything working with queue's, but now I also want to use Topics (publisher/subscriber). Therefor, I think, you have to administer a topic with JMSAdmin.bat. The rest should be ...

Caching EJB on client side!!!Help

653 byte By darkit at 2007-9-26 7:17:54
Good day.I've read an article ( http://www.javaworld.com/javaworld/jw-12-2000/jw-1208-clones.html). And when i tried to make the same, i got the exception:System/communication error: Error (de-)serializing object: com.evermind.server.ejb.EvermindEntityContext; nested exception ...

XML or Serializable object

545 byte By jfsublet at 2007-9-26 7:18:08
Hi, I try to find the best way to send data to an applet from my server.First, I can send a serializable object. But the stream will be important.Or I can parse my object into a xml stream, get the stream into the applet and then parse xml to get my object. The stream will be less important but ...

Help for beginner

249 byte By sanat_pattanaik at 2007-9-26 7:18:15
Hi,I have been working with java, JSP, servelet for quiet sometime. I have basic knowledge of XML. But I want to know more about how XML can be used in java. Please suggest some good books to start with.thankssanat

redirect from servlet to foreign URL?

514 byte By ymidt at 2007-9-26 7:18:22
How do you redirect from a servlet to a URL that is not on your server? ServletContext.getContext() and RequestDispatcher only seem able to redirect to the same or other context ON YOUR SERVER.I'm trying to implement a way to take a user from my site to a foreign site protected by basic ...

how to install javamail demos

1083 byte By javaquery1 at 2007-9-26 7:19:26
I have tried to install two different Sun javamail demos:1) From Sun javamail-1_2.zip distributionjavamail-1.2/demo/servlet/JavaMailServlet.java2) From Sun website: http://developer.java.sun.com/developer/technicalArticles/javaserverpages/emailappsOn Red Hat Linux 7.0, I have tried with ...

With out JMS Service provider can I run JMS application for PTP

876 byte By saravanant at 2007-9-26 7:19:42
Hi GuysI am new to JMS Technology.I download JMS API'S and Sample code from sun site.In my classpath I had setup JMS.jar.I compiled the program and while I am running program I ma getting the following error's.Queue name is q1JNDI lookup failed: javax.naming.NoInitialContextException: Need to ...

JasperException: Cannot find any information on property

4621 byte By bsette at 2007-9-26 7:19:49
Hi there,I am attamping to access a simple JavaBean property from a JSP and get an exception on the latest version of the J2EE JDK. The page is as follows:<jsp:useBean id="viewProperty" class="been.propBean" scope="page"/><jsp:getProperty name="viewProperty" ...

package javax.ejb does not exist

381 byte By bintoo_shyamal at 2007-9-26 7:19:58
Hi,I have downloaded java 1.4 version on windows system under root directory. I have set the path to c:/jdk1.4/bin and classpath to c:/jdk1.4/lib/tools.jar .But when I'm trying to compile my code, it is giving me the following error..."package javax.ejb does not exist".What kinda settings do I ...

JBoss connection pools

2883 byte By wireframe at 2007-9-26 7:20:02
hi. i just upgraded from jboss 2.2.2 to jboss 2.4.1 and now all of my connection pools are shot.here's my jboss.jcml: <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider"><attribute ...

EJB Tutorial

137 byte By turjalei at 2007-9-26 7:20:10
Hi,somebody know good EJB Tutorial with Weblogic-examples. The EJB-Tutorial on Sun was to short for me.Thanx!

2.Error: org.apache.crimson.parser/P-030

319 byte By FelipeGaucho at 2007-9-26 7:21:01
does someone knows what is the cause of this error?2.Error: org.apache.crimson.parser/P-030it occours when I'm trying to parse a xml file with the crimson package....The strange behaviour is that sometimes it works, and other no.... is the crimson parser synchronized ? ...

Implementing DOM Interface with existing Java classes

1903 byte By jdharmo at 2007-9-26 7:21:21
I had planned on using some tree-like Java classes as a Document Object Model, which would give me access to all sorts of XML and DOM tools like parsers and XSLT transformers. Initially, I thought all that would be neccessary is to implement all the DOM Interfaces in org.w3c.dom and then I ...

How can client determine cause of RemoteException

889 byte By shumba at 2007-9-26 7:21:42
My BMP entity bean includes an SQL statement to UPDATE a database row (this UPDATE is in the ejbStore method).The UPDATE statement includes the following syntaxUDPATE ....SET ...., no_of_changes = :no_of_changes + 1WHERE .... AND no_of_changes = :no_of_changesThis ensures the UPDATE only ...

AbstractMethodError

397 byte By rachelhomer at 2007-9-26 7:21:47
Please Help!I have developed an EJB that has two methods, let's say createX() and createY(). I call createX() from createY() and everything works great. Then I try to call createX() from another Java class and I get an AbstractMethodError. I can't figure out why this is happening! If you have ...

can you chang your password by JavaMailTM

87 byte By jyc5131 at 2007-9-26 7:21:57
using JavaMail API ,i want to chang my password ,but how? thanks!!

JAXP 1.1 - using setErrorHandler for dtd validation

977 byte By tomorrowland at 2007-9-26 7:22:03
HelloI am able to parse and validate an xml document against a dtd when I implement the error method within my Handler class, as follows:class MyHandler extends DefaultHandler {...public void error (SAXParseException e) throws SAXException ...}saxParser.parse (xmlFile, new MyHandler());This ...

One login for multiple apps?

1543 byte By trejkaz at 2007-9-26 7:22:42
How easy is it under J2EE to implement applications which share a single login?Specifically, what I'm implementing are a collection of snap-in applications, which will share the user database to some extent (or at least, a common part of it).. So I might have the following applications and web ...

How to write from database to XML file using JAVA and back..

240 byte By nk_mishra at 2007-9-26 7:22:50
Hi....I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...

About size of "j2sdkee-1_3-win.exe" file

462 byte By dong33 at 2007-9-26 7:22:54
Hi all,1. I download this file ,I found that the size is 14.2 MB,but the size of web page is 14.9 MBI can setup the fileI use windws 2000But I can't see the default page of j2ee after " http://localhost:8000"I want know the size can influence run j2ee?2. J2ee can be intead Tomcat or JSWDK ...

SOAP security for A2A

551 byte By javasachin at 2007-9-26 7:23:28
Hi Developers,i am trying for an application which can communicate over net between Solaris and Win NT. I am thinking of using SOAP for this communication.Solaris is going to post SOAP envelops using Java and WinNT is going to read these envelops using VB.but i want this communication to be ...

How do i build up a dtd file using xerces-1_2_2 api

225 byte By liinaa at 2007-9-26 7:23:39
As xerces-1_2_2 api provides methods to build up an xml document, are there classes and methods in xerces-1_2_2 to build a dtd file.If someone has worked on this, please help out..Thanks in advance

ear files and third-party packages

283 byte By enferpuc at 2007-9-26 7:23:56
Hi all. I don't know where to put a third-party .jar package into an ear file. Does it have to go under the META-INF folder, or maybe it has to go at the same folder as ejb jars go? I read the J2EE specs, but it doesn't make up my mind.Thanks very much.

what is this exception ?

492 byte By mayamohan at 2007-9-26 7:24:01
I am using Apache james mail server 1.2.1 and when i try to run a Client it gives the following exception.I am using the SmtpClient class from sun.net.smtp packagesun.net.smtp.SmtpProtocolException: 501 Syntax error in parameters or argumentsIf I change the server name and give the name of my ...

tomcat web context with j2ee server

201 byte By shfarr at 2007-9-26 7:24:03
Hi everybody!Can anyone tell me how to add a web context to tomcat when it is running with j2ee server, since it no longer reads the ./conf/server.xml file.Thank you.

calling perl from java in batch ..

2129 byte By sudhirsrinivasan at 2007-9-26 7:25:40
I have a few perl files to convert word files to xml. This is done in steps, with one step in java. It works fine, but I needed to run it in batch mode, so I wrote a class to take all the word files (converted to htm ) in a folder and run the perl and java code on these files. This works well ...

how can I access xml document from javascript whithin a JSP page

326 byte By filicuco at 2007-9-26 7:26:01
how can I access xml document from javascript whithin a JSP page?I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this. Thanks in advance! ...

Deployment Descriptor!!!!

493 byte By bintoo_shyamal at 2007-9-26 7:26:12
Hi, I am trying to deploy session bean on web logic. I am following one tutorial. I have already compiled the files and now it is instructing me to create the deployment descriptor. I'm trying to exexute the following command..java weblogic.ejb.utils.DDCreator -dir ejb/demo ...

Some QuestionsDesign

667 byte By nagsen at 2007-9-26 7:26:29
Hi All, I got a project to work on using EJBs on iPlanet. I checked the iplanets developer site and there is no help as such. I know little bit of EJB. But here are some questions which you exprienced guys can answer. 1) Is there any good site for iPlanet developer except iplanet.com 2) Do I ...

thesis in JMS?

291 byte By taz0789 at 2007-9-26 7:26:49
hi,i want to write my masters thesis on JMS. but my instructor questions whether there's a thesis in JMS. can you please write a few sentenses clearly explaining what JMS purpose is and how it is used so i can support my argument against my instructor? thanks...

Any EJB Guru dare to answer?

492 byte By bintoo_shyamal at 2007-9-26 7:27:04
Hi,I am trying to deploy session bean on web logic. I am following one tutorial. I have already compiled the files and now it is instructing me to create the deployment descriptor. I'm trying to exexute the following command..java weblogic.ejb.utils.DDCreator -dir ejb/demo ...

Internal Vs External DTD

126 byte By mukkara at 2007-9-26 7:27:24
Hi,Can any one suggests me which one has better peroformance? Internal DTD or External DTd. Thanks

JMS Design

106 byte By samathas at 2007-9-26 7:28:31
Where can i get the document on JMS Specific design methodology and event driver methodology

Deployment/Packaging muliple application mysteries

1546 byte By bocockli at 2007-9-26 7:28:37
I have 2 EJB applications, X & Y, both tested and running in their own right.Now I want X_EJB to call Y_EJB using standard PortableRemoteObject.narrow call.In terms of the Sun deploytool and packing, how do I package these? Here's the failed attempts,1) At first I thought, ok, just get the ...

Can J2ee1.3 using jdbc/odbc?

186 byte By airqq at 2007-9-26 7:28:41
hi all,Is there anyone can tell me whether J2EE1.3 able to use jdbc/odbc? If not what should I do?thank you for your advise,regards,elvis

NullPointerException at org.apache.crimson.parser.Parser2.parseInternal

1471 byte By OSavrasov at 2007-9-26 7:29:27
I've tried to use JavaTM API for XML Processing (JAXP), particulary default SAX parser,which is embeded into JAXP.I downloaded jaxp-1_1.zip file from http://java.sun.com/xml/download.html, extacted itand included crimson.jar, jaxp.jar and xalan.jar to java CLASSPATH.After that I'd tried to ...

ParseException

195 byte By vijkum at 2007-9-26 7:29:42
HII have developed a mail package . I am using Apache and tomcat .I am not able to send any messages, it showing as ParseException. If any knows the solution , please help me

Relation

402 byte By yyh21m at 2007-9-26 7:29:45
hi ,everyone!Let 's think about a M-M relation like the relationship between Room and Booking sheet:a Room can exist without any Booking sheet;but a Booking sheet can not exist without at least one Room .it's a M-M relation ,but i think they are not egality ,May any body explain the ...

Does JSP surport EJB now?

50 byte By InsideDelphi at 2007-9-26 7:30:08
And surport what version?3ks!

j2ee tutorial ConverterHome NoClassDefFoundError:

608 byte By Jemsquash at 2007-9-26 7:30:12
I have followed the j2ee tutorial 3 times now and still get the same error every time. When I run runclient -client ConverterApp.ear -name ConverterClientIt however runs fine throught the webclient, in my browser.I get the error :Binding name:`java:comp/env/ejb/SimpleConverter`Application threw ...

SessionSynchronization in Stateless Session Bean

393 byte By marco.amrein at 2007-9-26 7:31:34
hii got a stateless session bean in jboss with container managed persistent. now, i want to know when this stateless session bean has written and commited data to the database. the javax.ejb.SessionSynchronization make sense, if it runs. but the methods from the SessionSynchronisation Interface ...

BCC command? Sending to multiple recipients

122 byte By GreigD at 2007-9-26 7:31:43
Is there any way to impliment the Bcc of an email message. ie can you send the one message to many people ?

version trouble

465 byte By arunpradeeps1 at 2007-9-26 7:32:29
ok....if i have an applet that works only in netscape 6.1 and if the user has netscape 4.7, then i have to make the browser detect this automatically and take the user to the page from where he/she can download the latest version of netscape. i heard vaguely that there is a spaecial attribute ...

smtp Authentication

253 byte By gwgeller at 2007-9-26 7:32:39
Does anyone know how to use the javax.mail.Authentication class when connecting to the smtp host. I subclassed it and overrode it's getPasswordAuthentication method, but it never gets to it. The error I get is cannot connect to smtp host.

I am wondering if there is a way to validate XML file without using .......

205 byte By arvindbir at 2007-9-26 7:32:50
I am wondering if there is a way to validate XML file without using the <!DOCTYPE... but pass in the location of the schema/DTD file as a parameter to a validating method?thanks>

BASIC Questions about JavaMail

421 byte By stephensutherland at 2007-9-26 7:33:20
Hi Everyone I have some very basic questions about java mail.I have a weblogic web server. I think it's version 5 or something like that.when a user clicks a form on my application sends some information to my database (via my jsp/java program) , I need to send email to a person? Does anyone ...

I could not run any application program

1381 byte By hatran79 at 2007-9-26 7:34:08
I could not run any application program( even thouht the simplest one such as helloword). It would give NoClassDefoundError as: Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1Press any key to continue . . .I use text pad editor. First I compile it, there is no error. But ...

hyperlink in mail body

95 byte By kovaimadhu at 2007-9-26 7:35:08
hi can anyone tell me how to add a hyperlink in the mail body.madhu