Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

Dhana Sen

Ranch Hand
+ Follow
since Mar 05, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Dhana Sen

Hi,

I have a doubt in Java Arrays.asList() method. I try to pass Store = null, It's returning [null] (It's considering as null a value and size as 1), then I tried with Store = "" (it's considering [] (empty as a value) and size will be 1) Is there any flaw in asList Method.


10 years ago
http://localhost:8080/<WebContext/WARName>/URLPatter

In your case URLPattern is Hello

Cheers
Dhana
13 years ago
As you mention in the above message, Example :

www.whatever.com/article/emailToFriend.do?articleID=93907...



You know very well that param name 'articleID' you can get is as requesr.getParameter("articleID"); Note this is Object class.. change accordingly. or use request.getQueryString();

Cheers
Dhana
13 years ago
<form-bean
name="nameForm"
type="example.NameForm"
/>


<action path="/Name" type="example.NameAction" name="nameForm" input="/index.jsp">
<forward name="success" path="/displayname.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>


or just have a look.
http://www.allapplabs.com/struts/struts_example.htm

Cheers
Dhana
13 years ago
Hi All,

difference between hibernate and IBates

by
dhana
hi jai,
sorry, for not giving full message.. file is not creating..
yes , as you told that for the same package.. Log level Error will override the DEBUG level..

if you find any solution .. help me ..

but if i give DEBUG alone 2 files are creating.. and also writing to the both the file..
log4j.logger.com.ls.es.service=DEBUG, file1, file2

but i need i this way
log4j.logger.com.ls.es.service=DEBUG, file1, file2
log4j.logger.com.ls.es.service=ERROR, file3
if it's possible .. help me.. i have tried .. but ERROR IS override the DEBUG LEVE..

by
dhana
14 years ago
Hi jai,

i have tried in this way also but it's not working..

log4j.logger.com.ls.es.service=DEBUG, file1, file2

thanks
by
dhana
14 years ago
log4j.rootCategory= INFO, fileAppender,stdout

i have changed the Log level to INFO in my log Root

now am getting 2 files- file2 & file3.. but file1 is not creating..
am using Weblogic..

by
dhana
Hi All,

My requirement is i want to create 2 files for the same package level using file appender(Eg: com.foo.bar).

my code:

log4j.rootCategory= ALL, fileAppender,stdout

log4j.appender.fileAppender=org.apache.log4j.RollingFileAppender
log4j.appender.fileAppender.File=c:\\temp\\test.log
log4j.appender.fileAppender.MaxFileSize=64KB
log4j.appender.fileAppender.layout=org.apache.log4j.PatternLayout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.file1=org.apache.log4j.RollingFileAppender
log4j.appender.file1.File= file1.log
log4j.appender.file1.MaxFileSize=64KB
log4j.appender.file1.MaxBackupIndex=1
log4j.appender.file1.layout=org.apache.log4j.PatternLayout
log4j.appender.file1.layout.ConversionPattern=%p %t %c - %m%n

log4j.appender.file2=org.apache.log4j.RollingFileAppender
log4j.appender.file2.File= file2.log
log4j.appender.file2.MaxFileSize=64KB
log4j.appender.file2.MaxBackupIndex=1
log4j.appender.file2.layout=org.apache.log4j.PatternLayout
log4j.appender.file2.layout.ConversionPattern=%p %t %c - %m%n

log4j.appender.file3=org.apache.log4j.RollingFileAppender
log4j.appender.file3.File= file3.log
log4j.appender.file3.MaxFileSize=64KB
log4j.appender.file3.MaxBackupIndex=1
log4j.appender.file3.layout=org.apache.log4j.PatternLayout
log4j.appender.file3.layout.ConversionPattern=%p %t %c - %m%n

// THIS IS FOR ClIENT
log4j.logger.com.ls.es.service=DEBUG, file1
// THIS IS FOR SUPPORT
log4j.logger.com.ls.es.service=DEBUG, file2
// THIS IS ERROR MESSAGE
log4j.logger.com.ls.es.service=ERROR, file3

Here file1 is for Client(Client Admin)and file2 is for Support.

but am getting only file3.log file which is for Error Message..
some where configuration is missing...

Thanks,

by
dhana
Hi all,

am creating web based project.During run time i want to create REPORT.. am using JASPER REPORT(opensource -(Struts + hibernate + Jasper Report)).
right now am able to generate the report at run time.. but am getting it in Server..

my code:
********
InputStream is = getServlet().getServletContext().getResourceAsStream("/WEB-INF/config/report.jrxml");
JasperDesign design = JRXmlLoader.load(is);
JasperReport report = new JasperCompileManager().compileReport(design);
JasperPrint print =JasperFillManager.fillReport(report, parameters, new ManipulateReport(excereportlist, fields));
// View the Report
JasperViewer.viewReport(print,false);

*************************

if am running project in client.. and if i click the button (Report).. my report was opening in Server Machine ...

i need my report should be open in my Client machine..
is there any other way.. where i can open my report in client.. / any other class in Jasper Report..



Thanks
Dhana
MANIFEST.MF
****************
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Mani-Class: TafConsumer.class
Class-Path: ./JMSconsumer.jar


i have missed class path .. all my jar file to run my application.



Class-Path: Jboss-j2ee.jar etc...

thanks
dhana
15 years ago
HI all,
am using JBoss server, J2SE1.4 ,windows XP

This my JNLP file :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://172.25.186.50:8080/JMSClient" href="JmsClient.jnlp">
<information>
<title>My JMS Consumer</title>
<vendor> System</vendor>
<icon href="icon.png"/>
<icon href="splash.png" kind="splash"/>
</information>
<security>
<j2ee-application-client-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="JMSconsumer.jar" main="true" download="eager"/>
<jar href="WEB-INF/lib/jboss-j2ee.jar"/>
<jar href="WEB-INF/lib/concurrent.jar"/>
<jar href="WEB-INF/lib/jboss-common.jar"/>
<jar href="WEB-INF/lib/jbossmq.jar"/>
<jar href="WEB-INF/lib/jnlp-servlet.jar"/>
<jar href="WEB-INF/lib/jardiff.jar"/>
<jar href="WEB-INF/lib/jnlp.jar"/>
<jar href="WEB-INF/lib/jnpserver.jar"/>
</resources>
<application-desc main-class="TafConsumer"/>
</jnlp>

Console Error message :
Java Web Start 1.4.2_06 Console, started Fri May 05 15:51:29 IST 2006 Java 2
Runtime Environment: Version 1.4.2_06 by Sun Microsystems Inc. Logging to
file: C:\Documents and Settings\2210\Desktop\tafClient.log

java.lang.NoClassDefFoundError: javax/jms/JMSException at
java.lang.Class.getDeclaredMethods0(Native Method) at
java.lang.Class.privateGetDeclaredMethods(Unknown Source) at
java.lang.Class.getMethod0(Unknown Source) at
java.lang.Class.getMethod(Unknown Source) at
com.sun.javaws.Launcher.executeApplication(Unknown Source) at
com.sun.javaws.Launcher.executeMainClass(Unknown Source) at
com.sun.javaws.Launcher.continueLaunch(Unknown Source) at
com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at
com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at
com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown
Source)

this is for my JMSconsumer.jar which has all my Classes(.class files)
MANIFEST.MF
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Main-Class: TafConsumer



This is for my WAR file..
MANIFEST.MF
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Main-Class: TafConsumer
Class-Path: WEB-INF/lib/concurrent.jar WEB-INF/lib/jardiff.jar WEB-INF/lib/jboss-common.jar WEB-INF/lib/jboss-j2ee.jar WEB-INF/lib/jbossmq.jar WEB-INF/lib/jnlp.jar WEB-INF/lib/jnlp-servlet.jar WEB-INF/lib/jnpserver.jar JMSconsumer.jar


..
while am running application it looks for JBoss-j2ee.jar file .. i have mention all the jar files which are required to run my application .... in JNLP file..

it was executing in my command prompt
like D:\java -jar applicationname.war
Am getting out put properly... ( I have mention in MAIFEST.MF file .. that this is my main class and class path also(for Jar files).. )

am missing some where around Jar file config..
pls. any one can give me the solution..

Thanks
Dhana
15 years ago
Hi All,

am unable find the file.. (Could not find main-class)
am using J2se 1.4 and Jboss 4.0
i have created all my class file and make it as JMSconsumer.jar
then i create JMSClient.war ==>MANIFEST.MF web.xml , all .Jar files and JmsClient.JNLP
while am creating .war(JMSClient.war) file I have mention my Main method class in side Manifest.mf file as Main-class: MYMainMethod.Class and Class-Path: ./JMSconsumer.jar (There is no Package for my Class)

MANIFEST.MF
****************
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Mani-Class: TafConsumer.class
Class-Path: ./JMSconsumer.jar

General Tab
**************
An error occurred while launching/running the application.

Title: My JMS Consumer
Vendor: PSI Data System
Category: Launch File Error

Could not find main-class TafConsumer in http://172.25.18.54:8080/JMSClient/JMSconsumer.jar

Lanch File Tab
*****************
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://172.25.18.54:8080/JMSClient" href="JmsClient.jnlp">
<information>
<title>My JMS Consumer</title>
<vendor>PSI Data System</vendor>
<icon href="icon.png"/>
<icon href="splash.png" kind="splash"/>
</information>
<security>
<j2ee-application-client-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="JMSconsumer.jar" main="true" download="eager"/>
</resources>
<application-desc main-class="TafConsumer"/>
</jnlp>

Exception Tab
****************
JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="http://172.25.18.54:8080/JMSClient/" href="http://172.25.18.54:8080/JMSClient/JmsClient.jnlp">
<information>
<title>My JMS Consumer</title>
<vendor>PSI Data System</vendor>
<homepage href="null"/>
<description></description>
<description kind="short"></description>
<description kind="one-line"></description>
<description kind="tooltip"></description>
<icon href="http://172.25.18.54:8080/JMSClient/icon.png" kind="default"/>
<icon href="http://172.25.18.54:8080/JMSClient/splash.png" kind="splash"/>
</information>
<security>
<j2ee-application-client-permissions/>
</security>
<resources>
<j2se initial-heap-size="-1" max-heap-size="-1" version="1.4+"/>
<jar href="http://172.25.18.54:8080/JMSClient/JMSconsumer.jar" download="eager" main="true"/>
</resources>
<application-desc main-class="TafConsumer"/>
</jnlp> ]
at com.sun.javaws.LaunchDownload.getMainClassName(Unknown Source)at com.sun.javaws.Launcher.continueLaunch(Unknown Source)at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


by
dhana
15 years ago
Hi all,

am unable find the file..
am using J2se 1.4 and Jboss 4.0
i have created all my class file and make it as JMSconsumer.jar
then i create JMSClient.war ==>MANIFEST.MF web.xml , all .Jar files and JmsClient.JNLP
while am creating .war(JMSClient.war) file I have mention my Main method class in side Manifest.mf file as Main-class: MYMainMethodClass (There is no Package for my Class)

An error occurred while launching/running the application.

Title: My JMS Consumer
Vendor: Me
Category: Download Error

Unable to load resource: http://17.5.16.50:8080/JMSClient/JmsClient.jnlp

<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://17.5.16.50:8080/JMSClient" href="JmsClient.jnlp">
<information>
<title>My JMS Consumer</title>
<vendor>Me</vendor>
<icon href="icon.png"/>
<icon href="splash.png" kind="splash"/>
</information>
<security>
<all-permission/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="JMSconsumer.jar" main="true" download="eager"/>
</resources>
<application-desc main-class="MYMainMethodClass"/>
</jnlp>

NLPException[category: Download Error : Exception: java.io.FileNotFoundException: C:\Sun\Java\Deployment\javaws\cache\http\D17.5.16.50\P8080\DMJMSClient\XMJmsClient.jnlp1146730682265 (Access is denied) : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.getLaunchFile(Unknown Source)at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.io.FileNotFoundException: C:\Sun\Java\Deployment\javaws\cache\http\D17.5.16.50\P8080\DMJMSClient\XMJmsClient.jnlp1146730682265 (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.sun.javaws.net.BasicDownloadLayer.download(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.getLaunchFile(Unknown Source)at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I dono whether i have missed am thing else..
Pls help me.....


By
dhana
15 years ago
Hi all,
I have solve the problem..


code Base: http://120.3.23.13:8080 href="mypirate.jnlp"
ip address of U'r Server like :120:3:23:13

by dhana
15 years ago