WebSphere Application Server - Automated deploy problem on WAS 5 using JACL script

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2005 > Automated deploy problem on WAS 5 using JACL script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Automated deploy problem on WAS 5 using JACL script

2005-09-27, 2:52 am

I am updating already deployed application using JACL script. It is working fine. But when I add -DataSourceFor20EJBModules {{BFDI_Persistence_EJB BFDI_Persistence_EJB.jar,META-INF/ejb-jar.xml jdbc/BFDIBETA "per connection factory"}} in the $AdminApp inst
all $appPath command, I receive following error.

[wsadmin] WASX7017E: Exception received while running file "automatedDeploy.jacl"; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression: com.ibm.ws.scripting.ScriptingException: WASX7108E: Invalid data specified for inst
all task: "DataSourceFor20EJBModules." Errors are: "
[wsadmin] ADMA0005E: Validation error in task Specifying the Default Datasource for EJB 2.x Modules
[wsadmin] Invalid resource authorization is specified for module BFDI_Persistence_EJB with URI BFDI_Persistence_EJB.jar,META-INF/ejb-jar.xml."

The resource authorization is per connection factory. If I specify resource authorization to container then it works. Besides I am able to deploy the application using per connection factory if I use WAS Admin Console. DO you have any idea of the solution
?

Following is the complete update command I am using :-

$AdminApp install $appPath "-DataSourceFor20EJBModules {{BFDI_Persistence_EJB BFDI_Persistence_EJB.jar,META-INF/ejb-jar.xml jdbc/BFDIBETA "per connection factory"}} -usedefaultbindings -update -appname $appName -cluster $clusterName -node $nodeName -serve
r $serverName -verbose -distributeApp -nodeployejb"


Thanks in advance.

2005-09-29, 6:01 pm

I found the solution. I need to specify cmpBinding.perConnectionFactory as resource authorization not per connection factory.

It is bad that this thing is not specified in anywhere.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com