Hi all, I created two project (Rar and War project). Rar project for own
connector, and war project to cause connector. Firstly, i created this
project for Jboss portal. Export rar and war files into $jboss_deploy_path/.
It work for jboss excellent. Just now i need to deploy this project for
glassfish 3.1.2. My rar project looks like: --Deployment Descriptor
--connectorModule ----there are some packages ----META-INF -------MANIFEST.MF
-------ra.xml --GlassFish 3.1.2. --JRE System Library --build I export this
project like jcaConnector.rar to $glassfish_home/domain/domain1/autodeploy.
Start Glassfish and it is deployed good. My war project looks like: --src
--build --WebContent ----META-INF -------MANIFEST.MF ----WEB-INF
-------glassfish-web.xml -------web.xml ----index.jsp I export this project
like jca.war to $glassfish_home/domain/domain1/autodeploy. Start Glassfish
and there is error: SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException:
[ru.jca.connector.FileRetrieverConnectionFactory] is not an allowed property
value type How I can deploy war file? I read that I can collect war and rar
file to ear file. What kind of files there must be in ear project? there some
cod of xml files [ra.xml] <?xml version="1.0" encoding="UTF-8"?> Copy test
test 1.0 ru.jca.connector.impl.FileRetrieverManagedConnectionFactory Path to
the directory being the file repository RepositoryPath java.lang.String Path
to copy directory RepositoryPathTo java.lang.String
ru.jca.connector.FileRetrieverConnectionFactory
ru.jca.connector.impl.FileRetrieverConnectionFactoryImpl
ru.jca.connector.FileRetrieverConnection
ru.jca.connector.impl.FileRetrieverConnectionImpl NoTransaction false
[glassfish-web.xml] <?xml version="1.0" encoding="UTF-8"?> /jca
ra/FileRetriever java:/FileRetriever [web.xml] <?xml version="1.0"
encoding="UTF-8"?> ra/FileRetriever
ru.jca.connector.FileRetrieverConnectionFactory Container Shareable
[index.jsp] <%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8" import="ru.tatasu.ic.jca.connector.*"
import="java.io.FileOutputStream" %> <%! private final static String
CONNECTOR_REF_NAME = "java:comp/env/ra/FileRetriever"; public
FileRetrieverConnection getConnection() throws Exception {
javax.naming.InitialContext ctx = new javax.naming.InitialContext();
FileRetrieverConnectionFactory factory =
(FileRetrieverConnectionFactory)ctx.lookup(CONNECTOR_REF_NAME); return
factory.getConnection(); } %> <% FileRetrieverConnection connection = null;
try { connection = getConnection(); connection.retrieve(); } finally { if
(connection != null) { connection.close(); } } %> JCA Application
.... Copy file
http://www.javatalks.ru/sutra168757.php#168757
--
[Message sent by forum member 'ruslrusl']
View Post: http://forums.java.net/node/890896