Recent update: 2008-5-9

First Example of Portal/Portlets

182 byte By java_usera at 2008-3-7
hi all,i am using WSAD (WebSphere) as a tool and new to Portal........can anyone help me how can i create my first Portal example and run it on WSADthanxs

help in HSSF

375 byte By DHANYAa at 2008-3-3
Hi, Can i use HSSF code inside my JSP? I have a JSP page which fetches data fom database(using servlet) and displays as HTMLtable in the same JSP page itself. Now i want to save this table as Excel by clicking a button.Can i include HSSF code in JSP itself may b in a function which gets called ...

external jars with xml parsers break AVK

472 byte By ryanfernandesa at 2008-2-14
Running avk with an ear that references external 3rd party jars would involve placing the said jars in the lib/ext folders and updating the jar's manifest.mf files with the references.This works fine with libraries that dont have xml parsers within them.For example, try putting Oracle's XML ...

Extending CMP

250 byte By SONTNa at 2008-2-6
I want to build a project without too many types of bean. How can I put my own business methods into CMP, I have tried but when i used client to test it return a error ( it recommend that i have to create that method after one home interface )

Deploying applications from WSAD 5.1 to Websphere application erver 6.0

568 byte By sujk2ka at 2008-2-2
hi there,uptil now, i was using WSAD 5.1 to deploy and debug applications on websphere application server 5.x.But now, as i installed websphere server 6.0 trial, i am not able to deploy my applications on server 6.0 and also server 6.0 wont start from my WSAD studio.As i create a new server in ...

Supporting many languages in a web site

521 byte By JavaBaby@79a at 2008-2-1
hi ... i am developing a web site. which should support many asian languages like chainees, thailand,japan. my problem is like this , i need to allow user to give chainees text or japnees text as input and store them in data base or .... i should store them and retreview them.will it be ...

reg application - guidance

888 byte By born_crazy_with_javaa at 2008-1-28
well hye!-iam riaz from india.iam sun certified java programmer.iam enjoying my job hunt in banglore.i have started from the scratch.i need the details below.kindly reply asap. thank u :1.link where i can find basic code examples in java ,chapterwise(innerclass...etc). not the one in sun sample ...

Applets in WSAD

1481 byte By atul_bits180a at 2008-1-27
Hi All,if anyone has worked on Applets in WSAD please revert back.im not able to send the .class file to the browser means while running the HTML file, im always getting classnotfound exception means im not able to set the code and codebase correctly in the applet tagi have tried making the jar ...

Multiple Data source in Struts-Config.xml

264 byte By AmitGarga at 2008-1-25
Hi ,I am Amit Garg and i am new to this forum....Can any one help me out with the problem that i need to have 3 data source in my struts-config file and how will my getDatasource(request) method recoganise which data source to pick and access.

javke 1.4.1 J2EE 1.3 compatability question

779 byte By andrew.reslana at 2008-1-25
I have successfully run the static compatability tests against a .ear file built for and targetted at a J2EE 1.3 environment (SunOne AS 7.1).A number of issues were identified by the test, but they all refer to the J2EE 1.4 specification ( see example below)."Please refer to J2EE 1.4 ...

Error when trying to create tables using "asant create-db_common"

573 byte By y0241695@uea.ac.uka at 2008-1-23
Hi,I'm attempting to run asant create-db_common to use a .sql file to create a table in Pointbase. However I keep getting this error:Buildfile: build.xmlinit:create-db_common:[java] java.lang.NoClassDefFoundError: com/pointbase/tools/toolsCommander[java] Exception in thread "main" BUILD ...

need 'synchronized' on readExternal/writeExternal/readObject/writeObject?

534 byte By cyprix98a at 2008-1-13
Hi,I am implementing an object in Java which should be able to be kept in an application server session, and properly supports cluster failover.I understand I have to make my object serializable, and I want to implement my own read/.../writeObject methods.My question: do these ...

What is the download URL for J2ee for Mac OS.

216 byte By sivaparama at 2008-1-10
Hi there,What is the download URL for J2ee for Mac OS.See the following J2ee download URL, I don't see support for Mac OS. http://java.sun.com/j2ee/1.4/download.htmlthnaksiva

Porting a standalone application to cluster environment

702 byte By java_keralaa at 2008-1-10
Dear All,We are porting our java or shall I say J2EE application to cluster environment.The problem is that the application is not a pure J2EE application. It was standalone java application(a kind of xml adapter) which was then enhanced to work as a web application.The application uses file ...

Calling DB using struts

98 byte By dsn29a at 2008-1-9
I want to access DB from Strutus framework without using EJB, Pl. suggest the best approach

How to display the junit.framework.AssertionError stack trace in a jsp

447 byte By sandipanchaksa at 2008-1-8
hi,I am trying to write a jsp where I want to display the no of testcases that have failed and if failed ,show the exact location in the stack trace where it has failed.I am using weblogic workshop and have a jpf action which calls the testclass and after executing the test forwards to a jsp ...

Problem verifying RAR with AVK 1.4

4775 byte By kylekc at 2008-1-5
I'm trying to verify a RAR build for JCA 1.0 (not 1.5) with the ArchiveTest ANT task using AVK 1.4 ("Updated 04/19/2004") and am getting errors like the following:[java] Nov 26, 2004 2:40:28 PM com.sun.enterprise.tools.verifier.Verifier validate[java] INFO: About to ValidateParse ...

Setting Strategies

570 byte By jmguillemette at 2008-1-5
I wanted to post this out in the general forum to see how other people are handling this issue.I have a webapplication. It makes an ip connection to a mainframe system (amoung other things) and the address for the mainframe is stored currently in a properties file. I would like to change my ...

portabililty of ear

1133 byte By hugogus at 2008-1-4
Hello,I started a few time the development of a J2EE application using Jonas 3.1 and then I finished the development of my ear with Jonas 4.1.During my development process I had to build one ear for each new release of Jonas. Indeed an ear working well on Jonas 3.1 doesn't work on jonas 4.0 I ...

Jboss 3.0.8

57 byte By Java_Tiger_23 at 2008-1-2
Hii,How we can deploy an ear file in Jboss?

SourceScan and multiple source dir

77 byte By Bruno_Antunes at 2008-1-1
Does the SourceScan task supports specifiing more than one source dir?

how to use application to call a remote EJB?

1376 byte By yananay at 2007-12-28
this is my code:package test;import javax.naming.Context;import javax.naming.InitialContext;import javax.rmi.PortableRemoteObject;import java.util.*;import test.HelloWorldHome;import test.HelloWorld;public class callremoteEjb{public String callejb(){try{Properties env = new ...

Will AVK solve my problem ?

995 byte By rrr123 at 2007-12-25
Hi All,I am writing a test client to unit test Business layer components (including EJBs) running on Sun Application Server version 7. For a test client to make external connection to App server I need values of following parameters in Sun App server: INITIAL_CONTEXT_FACTORY PROVIDER_URLI have ...

OutOfMemoryError(When upload a big file)?

424 byte By bluebangbang at 2007-12-24
HI , everyone: when i wrote a client to upload a big file use HTTP1.1 by java,i got a OutOfMemoryError,who can help me , i have two questions: 1、After wrote to OutPutStream,i flush the stream,but Why did i got a OutOfMemoryError?Who consume my Memory? 2、I can increase heap size ...

VB.net Client for EJB

499 byte By Sofil-Prakash at 2007-12-19
Dear all ,In my project, the Complete business process is contained in the EJBs . And now due to the specific need of the customer, VB.net is going to be used in the Client side. Customer does not want to rewrite the Business logic written in EJB. So, I need to call my EJB from VB.net ...

What is the difference between portability and WORA?

66 byte By _developer_ at 2007-12-18
What is the difference between portability and WORA?

The input line is too long. The syntax of the command is incorrect.

1780 byte By sundewrainbowa at 2007-12-18
I am a prentice on J2EE by using the Tutorial 1.4. I keep getting this error message: "The input line is too long. The syntax of the command is incorrect." from the windows's terminal no matter what arguments I issued for the command asant right after I successfully executed command "asant ...

regarding dispatch action in struts

60 byte By NSundarama at 2007-12-10
how to create dispatch action uring button in struts.

Java AVK Error Name : Could not verify successfully

3026 byte By lennart_enstroma at 2007-12-10
Verifier gives the not so helpfull error name: Could not verify successfully.Just installed the Java AVK 1.4.1 and the included Sun App Server Edition 8.1. Following the usersguide i added the following target to my ant file to static test a war-file of mine. <property name="avk.home" ...

Why JSP pages rarely seen on web Except Enterprise Level

452 byte By harnala at 2007-12-10
HiI know J2EE are use very strongly in enterprise level due to its resouse rich , persistense on good platform like unix,linux sun solaris, But Generally for any commercial web application i use to see asp and most prefferably PHP pages (at present on demand due to linux platform ) but very ...

Sun AVK

960 byte By antonrechenauer at 2007-12-7
Problem with most recent JavaTM Application Verification Kit (AVK) for the Enterprise 1.4I want to verify a rather simple .ear File using the ant-task <ArchiveTest appName="/mypath/myapp.ear" reportingOpts="a" />but it does't work at all, error message[delete] Deleting directory ...

Novell extend AP Server + quartz

616 byte By Light_Lin_7a at 2007-12-6
i use "quartz-1.5.2" in Tomcat, it's ok.But in "Novell extend AP Server 5.2.1" it can't work.The log show it not start.Please help me, thanks!![Novell log][http-server] started at: Sun Apr 09 15:19:29 CST 2006. [09/Apr/2006:15:19:29 -8]QuartzInitializer: Quartz Initializer Servlet loaded, ...

Having J2EE use mySQL

893 byte By HowCanMyScreenNameBeTakena at 2007-12-3
HiI'm using a standalone RedHat 9 system with J2EE 1.3.1 and mySQL 3.23.54.All are working individually.My current application creates new tables every time it starts, so I thought it would be dead simple to just ask J2EE to use mySQL. There are currently only two entity beans, and there's ...

login screen in struts and mysql database

1538 byte By mill3prog7a at 2007-12-1
This coding is used for only jsp page like login screen. Now i want to use this coding in struts and mysql. will u please help how can i use this coding in struts. please help meIndex.jspAdmin : <input type="text" name="admin_name" size="22" value="">Password : <input type="password" ...

datasource problem

1052 byte By talktoamit80a at 2007-11-26
hi all, i am new to java struts........... when i am connecting my application with the database(MS Access)it gives the error as :Aug 3, 2005 7:42:19 PM org.apache.struts.action.ActionServlet initModuleDataSourcesSEVERE: Initializing application data source Ajava.lang.NullPointerExceptionwhere ...

Wat is this error abt?

922 byte By redqueena at 2007-11-19
Hi Guys, I am awfully new to j2EE and try compiling a very simple code in the book.. but it doesnt seem to work.. may I know why?Many thanks!! regardsHenryThe code giving this error is:HelloHome home = (HelloHome)javax.rmi.PortableRemoteObject.narrow(ctx.lookup("Hello"), HelloHome.class);Error ...

Is it safe to use ThreadLocal objects in a J2EE component?

453 byte By intangir2a at 2007-11-15
I've heard that many J2EE containers implement some form of thread pooling.Depending on how this is implemented, the same session bean or servlet instance could run on a different thread each time a request is made, making ThreadLocal usage unsafe (please, take a look at ...

Best practice for placing module

368 byte By George_.Smitha at 2007-11-15
HelloI have an enterprise application project, with :1) EJB Module2) Web Module .I want to add the hibernate jars+classes+data+servlets+utils etc...Should i create a new Web module for hibernate or should i add it to the existing EJB module which is my business logic ?What is the best practice for ...

jasper exception in avk verification test [urgent]

1204 byte By lovelin.ka at 2007-11-15
Hi all,im new to AVK.In AVK verification test, i am getting jasper exception for which i am not able to find the solution.Assertion:All the JSPs that are bundled inside a web application must be compilable using a J2EE compliant JSP compiler that does not have any proprietary or optional ...

Run time errors

82 byte By tena at 2007-11-14
How to avoid StackOverFlow Error in Java while executing a program ?

Multiple Wars in Ear -URL

436 byte By nainaa at 2007-9-25
Hello all,I am having an ear having 2 wars.I need that the unique context for both war.I have heard context name are war level not ear level.Is it correct?If that is the case then can it be possible that if a.war nad b.war in an EAR then URL: http://ip:port/a/x.html for ...

Interface or bean class does not exist or is not loadable

58 byte By m74neta at 2007-9-25
Removed.Message was edited by: m74net

Do i need to do some thing for AVK to support Websphere 6

456 byte By Velicheti_Pagea at 2007-9-25
HiI am using Websphere 6 when i try to run translate-dd it gives this message which shows AVK not supports websphere 6 can i include any thing by which i can use it.C:\sun\javke1.4.2\samples\build.xml:91: srcServer = websphere 6 is not one of (sunone65, sjsappserver7, weblogic5, weblogic6, ...

Changing the context root for application

922 byte By piampria at 2007-9-24
Hi,I've deployed my application to Weblogic 8.1 server. But in order to access it I have to input the following URL: http://localhost:7001/Servlet_Ex03/WebRoot/I don't want to include the "WebRoot" fragment so I created a weblogic.xml file which looks like this :<?xml version="1.0" ...

Opening any application from any directory

343 byte By tapan_195a at 2007-9-24
Here is another issue: I have been working on Unix systems (without X-Windows) and recently transitioned to Windows XP. i love to work only with command prompt. Can I do something with my workstation so that no matter which folder is the current working directory, the moment I type outlook in ...

How to Write POA File for IDL in CORBA

135 byte By priteshsonara at 2007-9-24
hi Friends,How to Write POA(Portable Object Adapter) File for IDL in CORBAFor Particular Application.Thanks

UnsupportedClassVersionError

710 byte By Dick_Adamsa at 2007-9-24
I'm having a build failure while running Ant on a HP-UX machine. Here's the output. Everything works OK until Ant invokes the compiler. Clearly, somethign is out of synch, but I don't know where to start looking.init:[delete] Deleting directory ...

hot deploy Tomcat + Task ANT

136 byte By Felipe.Gauchoa at 2007-9-24
Dear friends,where can I find information about how to configure the hotdeploy on Tomcat - preferably using an Ant task...

testing c3p0 configuration in applicationcontext.xml

251 byte By nespreyesa at 2007-9-24
HelloI have an application who is development using struts, spring and hibernate. I configure the c3p0 pool in my applicationcontext.xmlbut how can I test it works good?please help methanksRegards,NANCY

war and ear deployment problem

1028 byte By dremer1a at 2007-9-24
hi,I got a war and ear that share common classes. I would like to deploy both of them on the same application server.I started with weblogic and it worked fine.Now I am running it on Websphere - the problem is the ear application failed to start - it cant find one of it's property files even ...