Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!

Abhijit Kangale

Ranch Hand
+ Follow
since Sep 17, 2009
Im interested in java programming.
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 Abhijit Kangale

I have configured logback.xml for my spring boot application. My spring boot version - 1.3.3.RELEASE, java version - 1.8 update 45, tomcat version - 8.

I have put logback.xml file in my local tomcats /lib folder.

Whenever I am running my tomcat without debug configuration it works fine.

But whenever I am trying run server with debug configured in catalina.bat file (with this option - set "JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket...... ) it displays java.lang.ClassCircularityError: java/util/logging/LogRecord and tomcat window closes.

Detailed error trace :
java.lang.ClassCircularityError: java/util/logging/LogRecord
at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:200)
at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:289)
at java.util.logging.Logger.log(Logger.java:458)
at java.util.logging.Logger.doLog(Logger.java:480)
at java.util.logging.Logger.logp(Logger.java:596)

I have tried all the solutions given in thread - http://stackoverflow.com/questions/2656565/classcircularityerror-when-running-tomcat-6-from-eclipse. But nothing is working.

Does anyone faced this issue recently? Is there any solution or workaround for this issue?

Thanks.
Thanks a lot. Seems we can enable many useful debug levels here.
5 years ago
Hi,

I have application deployed in Weblogic server which interacts with 3 other servers. I see in weblogic console JTA transaction (which is communication between specific one out of 3 servers) keeps running for long time. Some times it runs for 4-5 hours. This specific issue is causing connection leak, that is connection keeps increasing and it reaches max value. Not sure what exactly is causing the problem. So I am trying to know is there a way to get server logs for specific JTA transaction? By this I can try to know what exactly it is trying to execute for particular transaction.

Thanks in advance.

Abhijit
5 years ago
Hi,

I have used log4j framework in my application with below log4j.properties file configuration.

#Console appender
log4j.rootLogger=DEBUG, stdout, rollFile
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern= [%5p] %d{mm:ss} (%F:%M:%L)%n%m%n%n


#Rolling file appender
log4j.appender.rollFile=org.apache.log4j.RollingFileAppender
log4j.appender.rollFile.File=Out.txt
log4j.appender.rollFile.MaxFileSize=10MB
log4j.appender.rollFile.MaxBackupIndex=1
log4j.appender.rollFile.Append=true
log4j.appender.rollFile.layout=org.apache.log4j.PatternLayout
log4j.appender.rollFile.layout.ConversionPattern= %d [ %-5p ] %c | %m | %t | %x %n

Here I can use only single root logger. But if I want to use different root logger for different appenders (like for ConsoleAppender -DEBUG and for RollingFileAppender - ERROR), is there any way to implement such approach?

Thanks in advance,
Abhijit
thats fine maneesh. but what if i want to have more than one guoup in the same panel or frame...?

Regards,
Abhijit
9 years ago
Hiii all,
I want to put group of components in title border. what simple way i can follow...? I can put title border on a single component using BorderFactory methods. any suggestions please....

Regatds,
Abhijit
9 years ago
thanks Jan for your valuable answer....
9 years ago
sorry David...
i am not getting you... could you please ellobarate something...
9 years ago
download these tld files from internet based on which struts version you are using and import them in your project at desired location.
9 years ago
thanks Jan.. I hope I get solution soon in new forum...
9 years ago
Hiiii...

I have already tried this <html:link action="/select">Begin</html:link>

but it wont work....

you can move to struts forum jan no proble....

Regards,
Abhijit
9 years ago
Hiii Prakash...

For that I have written following action mapping in struts-config.xml file.



That is it has to go to selectBook.jsp and display the contents of table according to query written. Is there any thing wrong in that...?

Regards,
Abhijit
9 years ago
Hiii all....

I am developing simple struts-database access using struts-config.xml file with MySql database. I have written code as

index.jsp


selectBook.jsp


SelectBookActionForm.java


SelectBookAction.java

Book.java


struts-config.xml


Also I have properly written web.xml file. I also have cerated table in mydb database in my system. But when I try to run this it displaying first page that is index.jsp but when I click begin button it is giving following error:

HTTP Status 404 - Servlet action is not available
ype Status report

message Servlet action is not available

description The requested resource (Servlet action is not available) is not available.
Apache Tomcat/5.5.17

I am not able to find where I am commiting mistake. Can anyone please help me.

Thanks & Regards,
Abhijit
9 years ago
Hiii all,
I am new to struts. Can anyone give me link which will help me to understand how to establish JDBC connection using struts framework. If any step by step procedure is there that would be helpful. Thanks in advance.

Regards,
Abhijit