Suneesh Raman

Ranch Hand
+ Follow
since Jun 13, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suneesh Raman

Hi
Is there any way we can parse microsoft project files using java.I used mpxj but its not very reliable.

Thanks in Advance
Suneesh VR
[ March 28, 2007: Message edited by: Suneesh Raman ]
16 years ago
Hi

Is there any way to convert microsoft project file to xml file using Java ?

Thanks in advance
Suneesh
[ February 19, 2007: Message edited by: Suneesh Raman ]
16 years ago
Hi
I am executing the following programme and The excel contains macros for drop down

public static void main(String a[])
{
try
{
FileInputStream fis = new FileInputStream("D:/t/f/Headcoun.xls");

POIFSFileSystem pfs = new POIFSFileSystem(fis);
HSSFWorkbook book = new HSSFWorkbook(pfs,false);

} catch (FileNotFoundException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}



}
I am getting the exception as below

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
at examples.ExcelTest.main(ExcelTest.java:76)
Caused by: java.lang.IllegalArgumentException: Illegal length
at org.apache.poi.util.StringUtil.getFromUnicodeHigh(StringUtil.java:76)
at org.apache.poi.hssf.record.FontRecord.fillFields(FontRecord.java:135)
at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
at org.apache.poi.hssf.record.FontRecord.<init>(FontRecord.java:88)
... 8 more
Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance, the following exception occured: null
at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:237)
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
at examples.ExcelTest.main(ExcelTest.java:76)

Any one can help ?

Thanks,
Suneesh
Hi
I have missed the xmlsec-1.2.1.jar . When I have done that I am getting the following exception

<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
<faultstring>The AXIS engine could not find a target service to invoke! targetService is EchoHeaders.jws</faultstring>
- <detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">pc-svraman-in</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

The following are the parameters getting while I accessing happyaxis.jsp

Axis Happiness Page
Examining webapp configuration

Language: [en] [ja]
Needed Components
Found SAAJ API ( javax.xml.soap.SOAPMessage ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\saaj.jar

Found JAX-RPC API ( javax.xml.rpc.Service ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\jaxrpc.jar

Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\axis.jar

Found Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\commons-discovery-0.2.jar

Found Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at D:\mycode\commons-logging.jar

Found Log4j ( org.apache.log4j.Layout ) at D:\mycode\jars\log4j-1.2.8.jar

Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\wsdl4j-1.5.1.jar

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location

Found Activation API ( javax.activation.DataHandler ) at C:\bea\weblogic81\server\lib\weblogic.jar

Optional Components
Found Mail API ( javax.mail.internet.MimeMessage ) at C:\bea\weblogic81\server\lib\weblogic.jar

Found XML Security API ( org.apache.xml.security.Init ) at D:\mycode\jars\xmlsec-1.2.1.jar

Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location

The core axis libraries are present.The optional components are present.
Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient
--------------------------------------------------------------------------------

Examining Application Server
Servlet version 2.3
XML Parser weblogic.xml.jaxp.RegistrySAXParser
XML ParserLocation C:\bea\weblogic81\server\lib\weblogic.jar

Examining System Properties
java.vendor=BEA Systems, Inc.
org.xml.sax.parser=weblogic.xml.jaxp.RegistryParser
os.name=Windows XP
sun.boot.class.path=C:\bea\JROCKI~1\jre\lib\rt.jar;C:\bea\JROCKI~1\jre\lib\i18n.jar;C:\bea\JROCKI~1\jre\lib\sunrsasign.jar;C:\bea\JROCKI~1\jre\lib\jsse.jar;C:\bea\JROCKI~1\jre\lib\jce.jar;C:\bea\JROCKI~1\jre\lib\charsets.jar;C:\bea\JROCKI~1\jre\classes;C:\bea\JROCKI~1\jre\lib\managementapi.jar
sun.java2d.fontpath=
java.vm.specification.vendor=Sun Microsystems Inc.
java.runtime.version=1.4.2_05-b04
weblogic.Name=myserver
jmx.implementation.vendor=Sun Microsystems
user.name=svraman
jmx.implementation.name=JMX RI
user.language=en
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
sun.boot.library.path=C:\bea\JROCKI~1\jre\bin
jmx.specification.name=Java Management Extensions
java.version=1.4.2_05
user.timezone=Asia/Calcutta
sun.arch.data.model=32
javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
jmx.specification.version=1.0 Final Release
java.endorsed.dirs=C:\bea\JROCKI~1\jre\lib\endorsed
vde.home=.\myserver\ldap
sun.cpu.isalist=pentium i486 i386
jmx.implementation.version=1.0
file.encoding.pkg=sun.io
weblogic.mbeanLegalClause.ByPass=false
file.separator=\
java.specification.name=Java Platform API Specification
java.class.version=48.0
java.vm.vendor.url=http://www.bea.com/
user.country=US
java.home=C:\bea\JROCKI~1\jre
java.vm.info=Native Threads, GC strategy: parallel
os.version=5.1
jrockit.vm=C:\bea\JROCKI~1\jre\bin\jrockit\jvm.dll
jrockit.version=ari-38120-20041118-1131-win-ia32
org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
path.separator=;
java.vm.version=ari-38120-20041118-1131-win-ia32
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
user.variant=
java.protocol.handler.pkgs=weblogic.utils|weblogic.utils|weblogic.net
jmx.specification.vendor=Sun Microsystems
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.security.policy=C:\bea\WEBLOG~1\server\lib\weblogic.policy
sun.io.unicode.encoding=UnicodeLittle
awt.toolkit=sun.awt.windows.WToolkit
java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url
user.home=C:\Documents and Settings\svraman.APPLICATIONS
java.specification.vendor=Sun Microsystems Inc.
org.xml.sax.driver=weblogic.apache.xerces.parsers.SAXParser
java.library.path=C:\bea\JROCKI~1\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\bea\WEBLOG~1\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\Perl\bin\;D:\oracle\product\10.1.0\Db_2\bin;D:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin;C:\oracle\ora92\bin;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;D:\ant\bin;C:\oracle\ora92\jdbc\lib;C:\bea\WEBLOG~1\server\bin\oci920_8
java.vendor.url=http://www.bea.com/
java.vm.vendor=BEA Systems, Inc.
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.class.path=D:/mycode/jars/saaj.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\bea\JROCKI~1\jre\lib\rt.jar;C:\bea\WEBLOG~1\server\lib\webservices.jar;C:\oracle\ora92\jdbc\lib\classes12.jar;D:/mycode/jars/antlr.jar;D:/mycode/jars/commons-beanutils.jar;D:/mycode/jars/commons-collections.jar;D:/mycode/jars/comm ons-digester.jar;D:/mycode/jars/commons-fileupload.jar;D:/mycode/jars/commons-validator.jar;D:/mycode/jars/;D:/mycode/jars/jakarta-oro.jar;D:/mycode/jars/junit-3.8.1.jar;D:/mycode/jars/struts.jar;D:/mycode/jars/soap.jar;D:/mycode/commons-logging.jar;D:/mycode/jars/axis.jar;D:/mycode/jars/jaxrpc.jar;D:/mycode/jars/commons-discovery-0.2.jar;D:/mycode/jars/wsdl4j-1.5.1.jar;D:/mycode/jars/log4j-1.2.8.jar;D:/mycode/jars/xmlsec-1.2.1.jar
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.version=1.0
javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
sun.cpu.endian=little
sun.os.patch.level=Service Pack 2
java.io.tmpdir=C:\DOCUME~1\SVRAMA~1.APP\LOCALS~1\Temp\
java.vendor.url.bug=http://support.bea.com
os.arch=x86
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.ext.dirs=C:\bea\JROCKI~1\jre\lib\ext
user.dir=C:\bea\user_projects\domains\mydomain
line.separator=

java.vm.name=BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.0-1
javax.xml.soap.MessageFactory=weblogic.webservice.core.soap.MessageFactoryImpl
file.encoding=Cp1252
org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
javax.xml.rpc.ServiceFactory=weblogic.webservice.core.rpc.ServiceFactoryImpl
weblogic.ProductionModeEnabled=
java.specification.version=1.4



--------------------------------------------------------------------------------
Platform: WebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647


The xml parser is still showing weblogic.xml.jaxp.RegistrySAXParser . Is this a problem ??

Thanks,
Suneesh
17 years ago
I have installed axis and checked as per http://ws.apache.org/axis/java/install.html it is giving the desired results till testing the JWS end point .

http://localhost:7001/axis/services/Version?method=getVersion
but while accessing a JWS Endpoint I am getting the following exception

<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
<faultstring>The AXIS engine could not find a target service to invoke! targetService is null</faultstring>
- <detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">pc-svraman-in</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope



I tried with a new sample application but I am getting the same exception


AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultSubcode:
faultString: The AXIS engine could not find a target service to invoke! target
Service is null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname c-svraman-in

The AXIS engine could not find a target service to invoke! targetService is nul
l
at org.apache.axis.message.SOAPFaultBuilder.createFault()V(SOAPFaultBuil
der.java:222)

Any one can help ?

Thanks
Suneesh
17 years ago
Hi

I am getting the exception while running a small program to print the argument passed . I think it is some xml parsing problem . I am using axis1.3 and weblogic 8.1 . Any one can help ?


AxisFault
faultCode {http//schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode
faultString java.lang.NullPointerException
faultActor
faultNode
faultDetail
{http//xml.apache.org/axis/}stackTracejava.lang.NullPointerException
at org.apache.axis.message.MessageElement.addTextNode(Ljava.lang.String;
)Ljavax.xml.soap.SOAPElement;(MessageElement.java1388)
at org.apache.axis.message.SOAPHandler.addTextNode()V(SOAPHandler.java1
48)
at org.apache.axis.message.SOAPHandler.endElement(Ljava.lang.String;Ljav
a.lang.String;Lorg.apache.axis.encoding.DeserializationContext V(SOAPHandler.ja
va112)
at org.apache.axis.encoding.DeserializationContext.endElement(Ljava.lang
.String;Ljava.lang.String;Ljava.lang.String V(DeserializationContext.java1087)

at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(Lweblogic
.apache.xerces.xni.QName;Lweblogic.apache.xerces.xni.Augmentations V(AbstractSA
XParser.java585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Lwebl
ogic.apache.xerces.xni.QName;Lweblogic.apache.xerces.xni.Augmentations;Z)V(XMLNa
mespaceBinder.java898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(Lweblogic.a
pache.xerces.xni.QName;Lweblogic.apache.xerces.xni.Augmentations V(XMLNamespace
Binder.java644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEle
ment()I(XMLDocumentFragmentScannerImpl.java1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java1469)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(
17 years ago
Hi

I have a page wich generates an excel file and stored in the server . I am using Oracle 10g Server .I have provided a link to download the excel file which calls a servlet for downloading, which works fine .But when I enable the SSO of the server and after login and try to download the excel file the file is not getting downloaded . I dont know the whether SSO sets some Cookies or not .

Any one can tell what could be the problem

Thanks
Suneesh
17 years ago
I have placed my jsp in ORACLE_HOME/iAS/AS10gR2/AS10gR2.mt/Apache/Apache/htdocs and try to access the same using the url but it's not executing but it's downloading the jsp . Is there any other setting I need to do ?

Thanks
Suneesh
17 years ago
I have following entries

1. in web.xml
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
2. struts-config.xml


<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="moduleAware" value="true" />
<set-property property="definitions-parser-validate" value="true" />
</plug-in>

3. tiles-defs.xml

<definition name="msgDef" path="/msgtilelayout.jsp">
<put name="header" value="/header.jsp"/>
<put name="footer" value="/footer.jsp"/>
<put name="left" value="/left.jsp"/>
<put name="content" type="string"/>
<put name="title" value="Discussion Forum"/>
</definition>

4. My jsp is

<%@taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/msgtags" prefix="msg" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>

<tiles:insert definition="msgDef">
<tiles ut name="title" value="Messages"/>
<tiles ut name="content" type="string">

<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td></td>
</tr>
</table>

</tiles ut>
</tiles:insert>

But the tiles tags are not getting processed .
When I am taking the source of the browser I am getting

<tiles:insert definition="msgDef">
<tiles ut name="title" value="Messages"/>
<tiles ut name="content" type="string">

<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><table>



in the source

Any one has any idea why the tiles tags are not getting processed

Thanks
Suneesh
18 years ago
Hi

I created a ApplicationResources.properties file and mapped in struts config file as
<message-resources parameter="ApplicationResources" null="false"/>

Suppose If I want to add one more property file what should I need to do . How the browser automatically identify the corresponding property file as per the local.

Thanks,
Suneesh VR
18 years ago
I having the following questions

1. What is the significance of static method apart from it can be accessed by Class name with out instance of class?And at what circumstances we go for static method .
2. What is the difference between Sigleton pattern and a class having all static variables and methods

Thanks,
Suneesh VR
18 years ago
Hi
My MDB and Entity bean is working fine . But When I tried to access Entity through MDB it is showing following exception . My question is that is it not possible to act one EJB as a client to other ?

Thanks,
Suneesh

<Apr 14, 2005 12:07:42 PM GMT+05:30> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Xi
d=BEA1-6968B55D28DB7F28EDB9(28606304),Status=Rolled back. [Reason=javax.transaction.xa.XAException: JDBC driver doe
s not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the EnableTwo
PhaseCommit property on the corresponding JDBCTxDataSource property, to true. Pool = MSG_DB, TxDataSource = DataSou
rce],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=29,XAServerResourceInfo[JMS_FileS
tore]=(ServerResourceInfo[JMS_FileStore]=(state=rolledback,assigned=myserver),xar=JMS_FileStore),XAServerResourceIn
fo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rol
ledback,assigned=myserver),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@11685d5),SCInfo[mydomain+myserver]=(state=ro
lledback),properties=({weblogic.jdbc=t3://10.116.30.24:7001}),local properties=({modifiedListeners=[]}),OwnerTransa
ctionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+10.116.30.24:7001+mydomain+t3+, XAResour
ces={},NonXAResources={})],CoordinatorURL=myserver+10.116.30.24:7001+mydomain+t3+): javax.transaction.xa.XAExceptio
n: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation,
set the EnableTwoPhaseCommit property on the corresponding JDBCTxDataSource property, to true. Pool = MSG_DB, TxDa
taSource = DataSource
at weblogic.jdbc.wrapper.JTSXAResourceImpl.prepare(JTSXAResourceImpl.java:87)
at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1161)
at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:395)
at weblogic.transaction.internal.ServerSCInfo$1.execute(ServerSCInfo.java:253)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Could not prepare resource 'weblogic.jdbc.wrapper.JTSXAResourceImpl
JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, se
t the EnableTwoPhaseCommit property on the corresponding JDBCTxDataSource property, to true. Pool = MSG_DB, TxDataS
ource = DataSource - with nested exception:
[javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase comm
it. To force this participation, set the EnableTwoPhaseCommit property on the corresponding JDBCTxDataSource proper
ty, to true. Pool = MSG_DB, TxDataSource = DataSource]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1644)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:300)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:221)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:412)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Hi

Is there any way to disable the precompilation of jsps in weblogic . So that I can edit the jsps directly ?

Thanks
Suneesh
In stead of selecting the message destination I have selected the Message Dest Ref tab .But when I selected the message destination tab of JAR file I am getting the following error

[#|2005-03-10T15:51:22.263+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise. system.tools.admin|_ThreadID=12;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- enable MDBEg]|#]

[#|2005-03-10T15:51:22.283+0530|SEVERE|sun-appserver-pe8.0.0_01|javax.enterpris e.system.container.ejb.mdb|_ThreadID=12;|MDB00017: [RegistrationMDBean]: Exception in creating message-driven bean container: [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : ]|#]

[#|2005-03-10T15:51:22.283+0530|SEVERE|sun-appserver-pe8.0.0_01|javax.enterpris e.system.container.ejb.mdb|_ThreadID=12;|com.sun.enterprise.connectors.Connector RuntimeException
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created :
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestin ationFromConfiguration(ActiveJmsResourceAdapter.java:296)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeI nfo(ActiveJmsResourceAdapter.java:232)
at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(Connector MessageBeanClient.java:139)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.j ava:189)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImp l.java:196)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:477)
at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader. java:96)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationMan ager.java:205)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationMan ager.java:156)
at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationMana ger.java:590)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEve ntListener(AdminEventMulticaster.java:454)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEve nt(AdminEventMulticaster.java:432)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMul ticaster.java:299)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventM ulticaster.java:107)
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.multica stEvent(ManagedServerInstance.java:3880)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspect or.java:181)
at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.ja va:86)
at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(Config MBeanBase.java:68

Thanks
Suneesh
Hi

I have created the connection factory as jms/ConnectionFactory and physical destination as PhysicalQueue and queue as jms/Queue as per
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/MDB5.html#wp79772
&
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/MDB6.html

But I am getting the following exception


[#|2005-03-10T13:36:52.970+0530|SEVERE|sun-appserver-pe8.0.0_01|javax.enterpris e.system.core.classloading|_ThreadID=11;|LDR5004: UnExpected error occured while creating ejb container
javax.naming.NamingException: Message Destination Reference java:comp/env/jms/Queue has not been linked to a Message Destination
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java: 450)
at com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:1759)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:376)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.j ava:118)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImp l.java:196)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:477)
at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader. java:96)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationMan ager.java:205)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationMan ager.java:156)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationMan ager.java:480)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEve ntListener(AdminEventMulticaster.java:448)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEve nt(AdminEventMulticaster.java:432)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMul ticaster.java:299)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventM ulticaster.java:107)
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.multica stEvent(ManagedServerInstance.java:3880)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspect or.java:181)
at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.ja va:86)
at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(Config MBeanBase.java:680)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221 )
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServer Interceptor.java:

My ejb-jar.xml is as below


<?xml version='1.0' encoding='UTF-8'?>
<ejb-jar
xmlns="http://java.sun.com/xml/ns/j2ee"
version="2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
>
<display-name>RegJAR</display-name>
<enterprise-beans>
<message-driven>
<ejb-name>RegistrationMDBean</ejb-name>
<ejb-class>com.registration.ejb.RegistrationMDBean</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type> ;
<message-destination-link>PhysicalQueue</message-destination-link>
<message-destination-ref>
<message-destination-ref-name>jms/Queue</message-destination-ref-name& gt;
<message-destination-type>javax.jms.Queue</message-destination-type> ;
<message-destination-usage>Consumes</message-destination-usage>
<message-destination-link>PhysicalQueue</message-destination-link>
</message-destination-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>RegistrationMDBean</ejb-name>
<method-name>onMessage</method-name>
<method-params>
<method-param>javax.jms.Message</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

Thanks
Suneesh