Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

Joydeep Ghatak

Ranch Hand
+ Follow
since Sep 30, 2009
Joydeep likes ...
Eclipse IDE Spring Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
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 Joydeep Ghatak

Hello All,

We have a web service created using JAX-RPC which uses the Java APNS interface to communicate to Apple Push Notification server. This web service is running without any error in WebSphere Server, but while deploying in JBoss EAP 6.4.0 Server throws the following error,

Deployment failed: XYZEARFile.ear: {"outcome" : "failed", "failure-description" : {"JBAS014671: Failed services" :{"jboss.deployment.subunit.\"XYZEARFile.ear\".\"XYZ.war\".INSTALL" : "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"XYZEARFile.ear\".\"XYZ.war\INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"XYZ.war\" of deployment \"XYZEARFile.ear\"\n Caused by: org.jboss.ws.WSException: JBWS025146: Cannot obtain
java type mapping for: {http://abc.def.pqr.com}>apnsFeedbksrv
"}, "JBAS014771: Services with missing/unavailable dependencies" : ["jboss.deployment.unit.\"XYZEARFile.ear\".deploymentCompleteService is missing

I feel, the 'Cannot obtain java type mapping for: {http://abc.def.pqr.com}>apnsFeedbksrv' is the main reason for failing. (If not please correct me).

Couple of questions,

1. In WebSphere, there is a .wsdl, where the <schema targetNamespace= "http://abc.def.pqr.com">; is mentioned. What is the corresponding mapping in JBoss server?
2. We have a web.xml file, do we have to create a jboss-web.xml in <project_home>/src/web/WEB-INF too?
3. What I am missing overall?


Thanks in advance for any help which is highly appreciated and let me know for any further information.

Thanks,
Joydeep






4 years ago
Thanks everyone for your kind input.
Will try to resolve the issue and update this thread.

Thanks,
Joydeep
7 years ago
Thanks Rob !!! Thanks Steve !!!

Thanks for the reply,

Well the usage of transferTo() is direct here and I am working on a legacy code, which is something like,


Do you think this is the root of the issue ?

Thanks,
Joydeep
7 years ago
Also we have tried with jre1.6.0_20 (64 bit Linux version), but received the same result (1.99GB destination file size)unfortunately.
Not sure if that is the JRE issue or not .
7 years ago
Hi All,

We are facing an issue regarding large file transfer (around 4GB) through transferTo() method of FileChannel class in jre 1.5.0_17 in linux and jre1.4.0_18 in Solaris.
It seems that there is a file size limit of 2GB and after that rest of the files getting truncated and we are receiving only 1.99GB files at the destination location.

Any idea why this is happening and how we can resolve the issue ?

Thanks,
Joydeep
7 years ago
Hi Martini,

Please double check the -ds.xml file.
You can refer the following link,

https://coderanch.com/t/549915/JBoss/JBoss-Oracle-Configuration-new-DataSource

Thanks,
Joydeep

8 years ago
Thanks James,
We are working on the same.

But just a thought, the same code works properly in Websphere but showing this exception in JBoss.
May be JBoss is more fine tuned from connection point of view.

Thanks,
Joydeep
8 years ago
Hi all,

The issue is resolved. Doing a change at the code base level we are able to resolve the issue.
Though we are still facing the following exception,



Thanks,
Joydeep
8 years ago
Thanks James, Thanks Peter,

Hi Peter,
I have tried with both "autoCommit" and "autocommit" in the parameter list, but both are giving the same exception :-(
Moreover the same code was deployed in webshpere AS, where it was working perfectly well.

And as you have mentioned "JBoss is not properly wrapping the original exception", is there any issue with this specific version of JBoss (Jboss 5.1) ? or if you can provide some more information on the same it will be great.

Hi James,
The complete code is more than 350 lines long so I am not putting that here.
But the method which is throwing the exceptions is,

Note ::
1. Originally the following two lines were not commented out, but once we received the above exception we have commented out the above two lines

2. I have checked the the control is going into the 'if (myTX)'
3. myTx is a boolean operator.
and same is the case for rollbackTrans()
I think the main issue is the following exception :-(

Note ::
and

Thanks in advance to both of you.
Thanks,
Joydeep

8 years ago
Hi All,

I have a EAR file which runs fine on IBM websphere (6.0 and 6.1), now I have deployed the same in Jboss 5.1.0.As this is a dynamic website I need to make an oracle connection and where the datasource name is different from DefaultDS. I am not using EJB's.

I have configured JBoss inside Eclipse 3.7 (Indigo) and going to do any modification on the code etc through eclipse-JBoss combination only.
The application is deployed successfully and is working fine (log in, quite almost all the functionality is working fine) except one, which is throwing the following exception. Though we have not changed anything for that functionality in the code.

What I have done so far in this approach,

1. Created the oracle-ds.xml with DB and application specific parameters.
2. Deployed the oracle-ds.xml in C:\jboss-5.1.0.GA_MYAPP\server\default\deploy directory
3. Kept the hsqldb-ds.xml as it is, in the same location (As it comes default)
4. Provided the ojdbc14.jar in C:\jboss-5.1.0.GA_MYAPP\common\lib
5. Created and kept jboss-web.xml in <project_home>/src/web/WEB-INF

Output ::
==========
1. JBoss starts successfully showing it is able to detect the new application specific JNDI name (MY_ds)

2. But I am getting the following 2 different exceptions ,

2.1


2.2 This exception we are getting whenever some basic functionality is hitting the DB


What has been done so far ::
=================
1. Tried with commeting out the autoCommit() statements from the code (As the log shows that the autoCommit is set at the JBoss level, so code level autocommit has been closed)
Output :: Receiving the same exception,

2. Modified the oracle-ds.xml with
connection property's autoCommit as 'false', but with no luck.

Info ::
oracle-ds.xml


Thanks in advance,
Joydeep
8 years ago
Thanks a lot Peter for all the help !!!

Well sure putting the jar's in "eclipse build" path and the Application's "WEB-INF/lib" should be seperated.

Thanks again !!

~Joydeep
Need some more elaboration on the question.
Also if you have a code snippet it will be easier to help.

~Joydeep
8 years ago
Hi Nirjari,

Which subversion of Java 6, you are having ?
Also How you are trying to uninstall it ? I am sure you are not just deleting the jdk/jre folder from C:\...<Java_location>.

~Joydeep
8 years ago