Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!

Om Prakash Bijawat

Greenhorn
+ Follow
since Feb 01, 2013
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 Om Prakash Bijawat

I dont think that the code for fetching user details from a database should be written in init() method.As init method called once only in the servlet life cycle and if , in case, the user details like password will be updated from backend using query or from any updation form, then in that case the users Map object will always contain a old user information i.e password.

So it's better to write your code of fetching user details from a database in a execute method.
7 years ago
Hi ,

This is my interface:


These are my two implementation classes :


And this is my service class :


my Main method :



In my master-quiz.xml file I have written :

<bean id = "springQuizMaster" class ="com.services.SpringQuizMaster"></bean>
<bean id = "strutsQuizMaster" class = "com.services.StrutsQuizMaster"></bean>
<bean id = "quizMasterService" class = "com.services.QuizMasterService" init-method = "init" destroy-method = "destroy" autowire="byName">

When I use :

<constructor-arg ref="springQuizMaster"/> instead of autowire attribute it runs perfect

but while using autowiring it fails.
Can anyone help me out?
Thanks
7 years ago
Forgot to add in my last post that the server that i am using is Tomcat.
Is there any configurations required within the tomcat to show the reports on browser?

Thanks
I am using BIRT first time and I need to generate reports and show them on jsp page. Well I need to generate report using JNDI.
Technologies that I am using are Struts 1.2, hibernate, Jsp and offcourse BIRT.

Can anyone help me out to achieve this?

Thanks
Hi,

I am using Transfirst API in my project and I am getting a Time out exception while receiving the response from the Transfirst. Due to that exception I haven't got the transaction id.
Is there any way in java to check whether the transaction has been posted or not on Transfirst if we don't have the trasaction id.

Thanks in advance
8 years ago
Opening a new tab is the functionality of java script or HTML.

One option to do is use anchor tag on your index.jsp and within that anchor tag write href = "/yourServletName" and target = "_blank" .It will redirect you to your servlet and in your servlet coding use sendRedirect("new.jsp");


8 years ago
How can we check that whether the file or folder is already exist or not..?
8 years ago
Thanks Richard ya its working fine ...actually the prob is of File separator..

8 years ago
Hi,


I am getting an exception "2 : No such File" while calling mkdir function of ChannelSftp class of Jsch Library.


At the time of calling a function i am passing value "testing/FirstFolder" but it doesn't create a folder inside a folder and gives me an exception.

If I create a single folder then it will be created successfully like For Eg: if i give mkdir("testing"); then it will create "testing" folder on ftp successfully but just after this if I call mkdir("testing"+File.separator+"FirstFolder"); then it gives me an exception of No such file.




Please help me to get out of this problem...

Thanks
8 years ago
I am using the jboss as an application server in my application and XA datasource to connect with MySql database.
The appliation was running fine previously but now it is throwing an exception below and because of this I am facing a problem of connection reset.

Caused by: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a555ed2:a116:50f6b139:4cc2e7 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a555ed2:a11
2013-01-31 13:32:30,283 ERROR [STDERR] 6:50f6b139:4cc2e7 status: ActionStatus.ABORT_ONLY >))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
... 83 more
Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a555ed2:a116:50f6b139:4cc2e7 status: ActionStatus.ABORT_ONLY >)
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:358)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:524)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:405)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
... 85 more
Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a555ed2:a116:50f6b139:4cc2e7 status: ActionStatus.ABORT_ONLY >
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:759)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:592)
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:352)

Can anybody help me to move put form this problem...
thanks in advance.
8 years ago