How to get OracleConnection from oracle.jdbc.driver.T4CConnection?

2009-01-09 Thread fishchips

We have Geronimo AS 2.1 with a datasource configured for an oracle 11
database.

This datsasource is used in an MDB:
@Resource(name=jdbc/SOAP_LOGG_NRDS) private DataSource ds;
...
Connection conn=ds.getConnection();

getAssociation() on this connecton returns a
org.tranql.connector.jdbc.ManagedJDBCConnection.
Calling getPhysicalConnection() on MenagedJDBCConnection I get
oracle.jdbc.driver.T4CConnection.
( Interestingly, I  only can call getAssociation and getPhysicalConnection
using reflection.
Casting like
  OracleConnection oraConnection2 = (OracleConnection)
((ConnectionHandle) conn).getAssociation().getPhysicalConnection();
results in ClasscastException. )

What I actually need is an OracleConnection to pass into
CLOB.createTemporary() or something like this.

How can I cast this connection to OracleConnection?

Or how can I configure a datasource to make it return me something
compatible with OracleConnection?
-- 
View this message in context: 
http://www.nabble.com/How-to-get-OracleConnection-from-oracle.jdbc.driver.T4CConnection--tp21368519s134p21368519.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



JPA: Exception saving CLOB

2009-01-09 Thread fishchips

I try to save data in the oracle CLOB field. I declared a field in my Entity
bean: 
 @Lob private String data;  
Ther#s not much to do wrong, isn't it?  But I have an exception thrown:

Caused by: openjpa-1.0.2-r420667:627158 nonfatal general error
org.apache.openjpa.persistence.PersistenceException: oracle.sql.CLOB in
classloader org.apache.geronimo.configs/openjpa/2.1.1/car
at
org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3946)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:75)
at
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flushPrimaryRow(OperationOrderUpdateManager.java:203)
at
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flush(OperationOrderUpdateManager.java:89)
at
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:89)
at
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:514)
at
org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
... 37 more
Caused by: java.sql.SQLException: oracle.sql.CLOB in classloader
org.apache.geronimo.configs/openjpa/2.1.1/car
at
org.apache.openjpa.jdbc.sql.OracleDictionary.getEmptyClob(OracleDictionary.java:1016)
at
org.apache.openjpa.jdbc.sql.OracleDictionary.setNull(OracleDictionary.java:514)
at
org.apache.openjpa.jdbc.sql.DBDictionary.setTyped(DBDictionary.java:1090)
at org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:888)
at org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:848)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:95)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:73)

What's wrong about it?
-- 
View this message in context: 
http://www.nabble.com/JPA%3A-Exception-saving-CLOB-tp21369295s134p21369295.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo Console

2009-01-09 Thread Donald Woods
What level of Geronimo are you using - 2.1.3, 2.1.4-SNAPSHOT or 
2.2-SNAPSHOT?


Also, what OS locale are you trying to use for your server and console?

I'm running the server and console on a English MacOSX and WinXP without 
problems



-Donald


cbkihong wrote:

A really quick and probably rather easy question. It seems quite dumb of mine
that I cannot figure out how to change the user interface language of the
Geronimo console. With all my browsers it always returns some sort of
Chinese user interface no matter how I fiddle with browser language
priorities or the locale I started Geronimo in. So, how can I access the
console in English?

Thanks.


Re: JPA: Exception saving CLOB

2009-01-09 Thread Donald Woods
It could be the OpenJPA level used in the 2.1.1 server.  Can you try 
using a 2.1.4-SNAPSHOT or 2.2-SNAPSHOT server build, which is using 
OpenJPA 1.2.0?


The latest 2.1.4-SNAPSHOT build that passed the integration testsuite is 
at -

http://people.apache.org/builds/geronimo/server/binaries/2.1/20090108/


-Donald



fishchips wrote:

I try to save data in the oracle CLOB field. I declared a field in my Entity
bean: 
 @Lob private String data;	

Ther#s not much to do wrong, isn't it?  But I have an exception thrown:

Caused by: openjpa-1.0.2-r420667:627158 nonfatal general error
org.apache.openjpa.persistence.PersistenceException: oracle.sql.CLOB in
classloader org.apache.geronimo.configs/openjpa/2.1.1/car
at
org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3946)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:75)
at
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flushPrimaryRow(OperationOrderUpdateManager.java:203)
at
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager.flush(OperationOrderUpdateManager.java:89)
at
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:89)
at
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:514)
at
org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
... 37 more
Caused by: java.sql.SQLException: oracle.sql.CLOB in classloader
org.apache.geronimo.configs/openjpa/2.1.1/car
at
org.apache.openjpa.jdbc.sql.OracleDictionary.getEmptyClob(OracleDictionary.java:1016)
at
org.apache.openjpa.jdbc.sql.OracleDictionary.setNull(OracleDictionary.java:514)
at
org.apache.openjpa.jdbc.sql.DBDictionary.setTyped(DBDictionary.java:1090)
at org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:888)
at org.apache.openjpa.jdbc.sql.RowImpl.flush(RowImpl.java:848)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:95)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:73)

What's wrong about it?


Re: Where does log message go?

2009-01-09 Thread Donald Woods
The deployer.log will only get created if you use the deployer.sh|.bat 
script.  If the error occurs in the server during deployment, then look 
at the geronimo.log and/or geronimo.out files...


BTW - Are you using the deployer script, the Admin Console or Eclipse to 
deploy your app?




-Donald


bongosdude wrote:

Donald,

I still do not see the file deployer.log created after I change settings as
told in the file deployer-log4j.properties? How does the server know which
properties to read? 


-B


Donald Woods-2 wrote:
If you are running the server in a background process, also take a look 
at var/log/geronimo.out (output to the console window.)


The deploy client will log to var/log/deployer.log

If you still don't see anything, try updating the 
server-log4j.properties and deployer-log4j.properties to use:

   log4j.rootLogger=DEBUG, CONSOLE, FILE
and then restart the server and retry your deployment.


-Donald


bongosdude wrote:

What log file does geronimo log errors when it encountered a failed
deployment? I have looked into var/log/geronimo.log but I did not see any
error messages relating to deployment logged in that file?

Please help.

-B

-
B Amigo:super:





-
B Amigo:super:


Re: Where does log message go?

2009-01-09 Thread Kevan Miller


On Jan 9, 2009, at 9:19 AM, Donald Woods wrote:

The deployer.log will only get created if you use the  
deployer.sh|.bat script.  If the error occurs in the server during  
deployment, then look at the geronimo.log and/or geronimo.out files...


BTW - Are you using the deployer script, the Admin Console or  
Eclipse to deploy your app?


There have been some cases where we failed to log appropriate failure  
information during deployment and silently failed deployment. If  
you've encountered such a problem, let us know and we'll work on fixing.


--kevan 


Re: Where does log message go?

2009-01-09 Thread bongosdude

I used console and or Eclipse GEP. Both did not log to deployer.log and I did
not see any specific error message to state why the deployment failed. Hope
that I can give you more details to diagnose the log problems. 

Thanks
-B

Kevan Miller wrote:
 
 
 On Jan 9, 2009, at 9:19 AM, Donald Woods wrote:
 
 The deployer.log will only get created if you use the  
 deployer.sh|.bat script.  If the error occurs in the server during  
 deployment, then look at the geronimo.log and/or geronimo.out files...

 BTW - Are you using the deployer script, the Admin Console or  
 Eclipse to deploy your app?
 
 There have been some cases where we failed to log appropriate failure  
 information during deployment and silently failed deployment. If  
 you've encountered such a problem, let us know and we'll work on fixing.
 
 --kevan 
 
 


-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/Where-does-log-message-go--tp21321478s134p21373889.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo Console

2009-01-09 Thread chi runhua
Here is an alternative for your reference.

Remove zh_CN from your language preference of your explorer(IE or
firefox) and keep en_us as the only one.

Take IE7 as an example, do the following:

Tools-Internet Options-on General tab, click languages-- remove
zh_CN from language preferences.

Jeff C

On 1/9/09, Donald Woods dwo...@apache.org wrote:
 What level of Geronimo are you using - 2.1.3, 2.1.4-SNAPSHOT or
 2.2-SNAPSHOT?

 Also, what OS locale are you trying to use for your server and console?

 I'm running the server and console on a English MacOSX and WinXP without
 problems


 -Donald


 cbkihong wrote:
 A really quick and probably rather easy question. It seems quite dumb of
 mine
 that I cannot figure out how to change the user interface language of the
 Geronimo console. With all my browsers it always returns some sort of
 Chinese user interface no matter how I fiddle with browser language
 priorities or the locale I started Geronimo in. So, how can I access the
 console in English?

 Thanks.



Maven build failed with missing WEB-INF/geronimo-web.xml

2009-01-09 Thread bongosdude

Background 

I encountered this problem that I do not quite understand. I set up my demo
after I looked at the car-maven-plugin, m2eclipse and the geronimo sample
calculator. I have manually created my demo project by using maven
achetype-create with groupId=org.apache.geronimo.samples and
archytypeId=geronimo-samples-archetypes. And then I tweaked POM files
generated by looking at calculator POM files. I had to go through this
manual process because my web application is Tapestry5. And I have to add
dependencies to POM files. Maven build sub projects successfully except when
it tried to build jetty and tomcat CAR plugin. Here are the error messages
that I got:

[WARN]  Web application callingcard-war-0.0.1-SNAPSHOT.war does not contain
a WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a
problem, depending on whether you have things like resource references that
need to be resolved.  You can also give the deployer a separate deployment
plan file on the command line.
[INFO]  The Strict Manifest Classpath processing mode is in effect.
This option can be altered by specifying
-DXorg.apache.geronimo.deployment.LenientMFCP=true|false
Specify =true for more lenient processing such as ignoring missing jars
and references that are not spec compliant.
12:50:39,649 INFO  [config] Configuring
Service(id=DefaultStatelessContainer, type=Container, provider-id=Default
Stateless Container)
12:50:39,653 INFO  [config] Configuring Service(id=DefaultStatefulContainer,
type=Container, provider-id=Default Stateful Container)
12:50:39,654 INFO  [config] Configuring
Service(id=DefaultSingletonContainer, type=Container, provider-id=Default
Singleton Container)
12:50:39,655 INFO  [config] Configuring Service(id=DefaultBMPContainer,
type=Container, provider-id=Default BMP Container)
12:50:39,655 INFO  [config] Configuring Service(id=DefaultCMPContainer,
type=Container, provider-id=Default CMP Container)
12:50:39,663 INFO  [config] Configuring enterprise application:
com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car
12:50:40,359 INFO  [OpenEJB] Auto-deploying ejb PayPalNVPProcessor:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/PayPalNVPProcessor)
12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb NutalkNewOrderBean:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/NutalkNewOrderBean)
12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb SampleBean:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/SampleBean)
12:50:40,412 INFO  [config] Enterprise application
com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car loaded.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] could not package plugin

Embedded error: Manifest class path entries must be a valid jar file (JAVAEE
5 Section 8.2): path= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar, resolved to
targetURI= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar
looking at: callingcard-war-0.0.1-SNAPSHOT.warcurrent classpath:
[WEB-INF/classes/, ../lib/callingcard-common-0.0.1-SNAPSHOT.jar,
../lib/paypal-stubs-4.3.1.jar, ../lib/paypal-base-4.3.1.jar,
../lib/commons-lang-2.4.jar, ../lib/spring-2.5.6.jar,
../lib/commons-logging-1.0.4.jar, ../lib/callingcard-ejb-0.0.1-SNAPSHOT.jar]   
ignoring modules: [callingcard-ejb-0.0.1-SNAPSHOT.jar,
callingcard-war-0.0.1-SNAPSHOT.war]
No such file or directory
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 47 seconds
[INFO] Finished at: Fri Jan 09 12:50:42 EST 2009
[INFO] Final Memory: 64M/125M
[INFO]

die


Questions:

1. It seems that I got my first error is that I did not create
WEB-INF/geronimo-web.xml. I can define the option
-DXorg.apache.geronimo.deployment.LenientMFCP=true to make the build
successful. However, I looked at the calculator, it does not have the
WEB-INF/geronimo-web.xml but maven does not fail when it builds jetty/tomcat
car plugin. So why do I have this error? What do I miss in my pom files?

2. Can somesome explain what
DXorg.apache.geronimo.deployment.LenientMFCP=true|false does?

Thank for any helps

-B



-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/Maven-build-failed-with-missing-WEB-INF-geronimo-web.xml-tp21377598s134p21377598.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Maven build failed with missing WEB-INF/geronimo-web.xml

2009-01-09 Thread bongosdude

After I fixed the manifest classpath problem, maven successfully build my
project. But I still have questions about geronimo-web.xml.

Thanks
-B

Embedded error: Manifest class path entries must be a valid jar file (JAVAEE
5 Section 8.2): path= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar, resolved to
targetURI= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar



bongosdude wrote:
 
 Background 
 
 I encountered this problem that I do not quite understand. I set up my
 demo after I looked at the car-maven-plugin, m2eclipse and the geronimo
 sample calculator. I have manually created my demo project by using maven
 achetype-create with groupId=org.apache.geronimo.samples and
 archytypeId=geronimo-samples-archetypes. And then I tweaked POM files
 generated by looking at calculator POM files. I had to go through this
 manual process because my web application is Tapestry5. And I have to add
 dependencies to POM files. Maven build sub projects successfully except
 when it tried to build jetty and tomcat CAR plugin. Here are the error
 messages that I got:
 
 [WARN]  Web application callingcard-war-0.0.1-SNAPSHOT.war does not
 contain a WEB-INF/geronimo-web.xml deployment plan.  This may or may not
 be a problem, depending on whether you have things like resource
 references that need to be resolved.  You can also give the deployer a
 separate deployment plan file on the command line.
 [INFO]  The Strict Manifest Classpath processing mode is in effect.
 This option can be altered by specifying
 -DXorg.apache.geronimo.deployment.LenientMFCP=true|false
 Specify =true for more lenient processing such as ignoring missing jars
 and references that are not spec compliant.
 12:50:39,649 INFO  [config] Configuring
 Service(id=DefaultStatelessContainer, type=Container, provider-id=Default
 Stateless Container)
 12:50:39,653 INFO  [config] Configuring
 Service(id=DefaultStatefulContainer, type=Container, provider-id=Default
 Stateful Container)
 12:50:39,654 INFO  [config] Configuring
 Service(id=DefaultSingletonContainer, type=Container, provider-id=Default
 Singleton Container)
 12:50:39,655 INFO  [config] Configuring Service(id=DefaultBMPContainer,
 type=Container, provider-id=Default BMP Container)
 12:50:39,655 INFO  [config] Configuring Service(id=DefaultCMPContainer,
 type=Container, provider-id=Default CMP Container)
 12:50:39,663 INFO  [config] Configuring enterprise application:
 com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car
 12:50:40,359 INFO  [OpenEJB] Auto-deploying ejb PayPalNVPProcessor:
 EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/PayPalNVPProcessor)
 12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb NutalkNewOrderBean:
 EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/NutalkNewOrderBean)
 12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb SampleBean:
 EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/SampleBean)
 12:50:40,412 INFO  [config] Enterprise application
 com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car loaded.
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] could not package plugin
 
 Embedded error: Manifest class path entries must be a valid jar file
 (JAVAEE 5 Section 8.2): path= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar,
 resolved to targetURI= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar
 looking at: callingcard-war-0.0.1-SNAPSHOT.warcurrent classpath:
 [WEB-INF/classes/, ../lib/callingcard-common-0.0.1-SNAPSHOT.jar,
 ../lib/paypal-stubs-4.3.1.jar, ../lib/paypal-base-4.3.1.jar,
 ../lib/commons-lang-2.4.jar, ../lib/spring-2.5.6.jar,
 ../lib/commons-logging-1.0.4.jar,
 ../lib/callingcard-ejb-0.0.1-SNAPSHOT.jar]ignoring modules:
 [callingcard-ejb-0.0.1-SNAPSHOT.jar, callingcard-war-0.0.1-SNAPSHOT.war]
 No such file or directory
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 47 seconds
 [INFO] Finished at: Fri Jan 09 12:50:42 EST 2009
 [INFO] Final Memory: 64M/125M
 [INFO]
 
 die
 
 
 Questions:
 
 1. It seems that I got my first error is that I did not create
 WEB-INF/geronimo-web.xml. I can define the option
 -DXorg.apache.geronimo.deployment.LenientMFCP=true to make the build
 successful. However, I looked at the calculator, it does not have the
 WEB-INF/geronimo-web.xml but maven does not fail when it builds
 jetty/tomcat car plugin. So why do I have this error? What do I miss in my
 pom files?
 
 2. Can somesome explain what
 DXorg.apache.geronimo.deployment.LenientMFCP=true|false does?
 
 Thank for any helps
 
 -B
 
 
 


-
B Amigo:super:
-- 
View this message in context: 

Re: Maven build failed with missing WEB-INF/geronimo-web.xml

2009-01-09 Thread Joe Bohn



The warning concerning the missing geronimo-web.xml is not related to 
the INFO message about the Strict Manifest Classpath processing.


Concerning the LenientMFCP:  This option was added to support archives 
that don't adhere to the standard specification which requires that the 
manifest classpath entries are processed.  Providing the override option 
means that we will ignore missing entries or non-jar entries.


Joe

bongosdude wrote:
Background 


I encountered this problem that I do not quite understand. I set up my demo
after I looked at the car-maven-plugin, m2eclipse and the geronimo sample
calculator. I have manually created my demo project by using maven
achetype-create with groupId=org.apache.geronimo.samples and
archytypeId=geronimo-samples-archetypes. And then I tweaked POM files
generated by looking at calculator POM files. I had to go through this
manual process because my web application is Tapestry5. And I have to add
dependencies to POM files. Maven build sub projects successfully except when
it tried to build jetty and tomcat CAR plugin. Here are the error messages
that I got:

[WARN]  Web application callingcard-war-0.0.1-SNAPSHOT.war does not contain
a WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a
problem, depending on whether you have things like resource references that
need to be resolved.  You can also give the deployer a separate deployment
plan file on the command line.
[INFO]  The Strict Manifest Classpath processing mode is in effect.
This option can be altered by specifying
-DXorg.apache.geronimo.deployment.LenientMFCP=true|false
Specify =true for more lenient processing such as ignoring missing jars
and references that are not spec compliant.
12:50:39,649 INFO  [config] Configuring
Service(id=DefaultStatelessContainer, type=Container, provider-id=Default
Stateless Container)
12:50:39,653 INFO  [config] Configuring Service(id=DefaultStatefulContainer,
type=Container, provider-id=Default Stateful Container)
12:50:39,654 INFO  [config] Configuring
Service(id=DefaultSingletonContainer, type=Container, provider-id=Default
Singleton Container)
12:50:39,655 INFO  [config] Configuring Service(id=DefaultBMPContainer,
type=Container, provider-id=Default BMP Container)
12:50:39,655 INFO  [config] Configuring Service(id=DefaultCMPContainer,
type=Container, provider-id=Default CMP Container)
12:50:39,663 INFO  [config] Configuring enterprise application:
com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car
12:50:40,359 INFO  [OpenEJB] Auto-deploying ejb PayPalNVPProcessor:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/PayPalNVPProcessor)
12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb NutalkNewOrderBean:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/NutalkNewOrderBean)
12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb SampleBean:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/SampleBean)
12:50:40,412 INFO  [config] Enterprise application
com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car loaded.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] could not package plugin

Embedded error: Manifest class path entries must be a valid jar file (JAVAEE
5 Section 8.2): path= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar, resolved to
targetURI= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar
looking at: callingcard-war-0.0.1-SNAPSHOT.warcurrent classpath:
[WEB-INF/classes/, ../lib/callingcard-common-0.0.1-SNAPSHOT.jar,
../lib/paypal-stubs-4.3.1.jar, ../lib/paypal-base-4.3.1.jar,
../lib/commons-lang-2.4.jar, ../lib/spring-2.5.6.jar,
../lib/commons-logging-1.0.4.jar, ../lib/callingcard-ejb-0.0.1-SNAPSHOT.jar]   
ignoring modules: [callingcard-ejb-0.0.1-SNAPSHOT.jar,

callingcard-war-0.0.1-SNAPSHOT.war]
No such file or directory
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 47 seconds
[INFO] Finished at: Fri Jan 09 12:50:42 EST 2009
[INFO] Final Memory: 64M/125M
[INFO]

die


Questions:

1. It seems that I got my first error is that I did not create
WEB-INF/geronimo-web.xml. I can define the option
-DXorg.apache.geronimo.deployment.LenientMFCP=true to make the build
successful. However, I looked at the calculator, it does not have the
WEB-INF/geronimo-web.xml but maven does not fail when it builds jetty/tomcat
car plugin. So why do I have this error? What do I miss in my pom files?

2. Can somesome explain what
DXorg.apache.geronimo.deployment.LenientMFCP=true|false does?

Thank for any helps

-B



-
B Amigo:super:




Re: Resolving wsdlLocation with jax-ws-catalog.xml

2009-01-09 Thread Jarek Gawor
Janko,

Thanks for opening these bugs. For GERONIMO-4500 as Dan suggested just
change the DTD version number as apparently the OASIS web site does
not serve the 1.1 version. In Geronimo we could disable DTD lookup or
provide the DTD locally but either way it's a minor issue.
GERONIMO-4501 looks like a bigger problem and I'll work on it next.

Thanks again,
Jarek

On Wed, Jan 7, 2009 at 11:52 AM, Janko Heilgeist janko...@dalighe.de wrote:
 I'd like to bump this question to the front as it's still open and as
 a reference for others. In the meantime I retried Jetty/CXF and simply
 removed the !DOCTYPE declaration. This change fixed the problem with
 this particular assembly and the catalog is now read and correctly
 applied while resolving the URL.

 However, the exception persists with Tomcat/Axis even with this
 modification.

 I filed bug reports for these issues:

 Jetty/CXF:
 https://issues.apache.org/jira/browse/GERONIMO-4500

 Tomcat/Axis:
 https://issues.apache.org/jira/browse/GERONIMO-4501

 Regards, Janko

 Janko Heilgeist wrote:
 Hi Jarek,

 I updated my sources from the SVN repository and recompiled both
 assemblies to rule out any obsolete code issues. The problem still
 occurs with both assemblies, but the error is a little bit different.

 Tomcat/Axis:
 2008-12-12 12:41:46,844 ERROR [startup] Unable to read wsdl file
 http://example.com/HelloWorld.wsdl

 Jetty/CXF is a little bit more helpful. The ultimate log message is
 identical to the Tomcat/Axis case, but it is accompanied by an exception
 that says:

 2008-12-12 11:52:29,109 WARN  [OASISCatalogManager] Error loading
 META-INF/jax-ws-catalog.xml catalog files
 java.io.FileNotFoundException:
 http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd

 I've attached the catalog file for reference and I can provide a minimal
 test EAR with sources, too, if needed.

 Janko

 Jarek Gawor wrote:
 What assembly are you using Tomcat or Jetty? if Tomcat, can you try
 with Jetty/CXF?

 Jarek

 On Thu, Dec 11, 2008 at 8:46 AM, Janko Heilgeist janko...@dalighe.de 
 wrote:
 Hi,

 I have a problem, trying to deploy an EAR with a web service. The EAR
 contains a lib/mycore.jar with all classes, SEI and service stub
 generated from an existing WSDL (which is also inside this JAR). Another
 myservice.jar contains the actual EJB implementing the web service.

 I tried to annotate the web service implementation with

 @WebService( ..., wsdlLocation=http://example.com/myservice.wsdl;)

 and add a META-INF/jax-ws-catalog.xml to lib/mycore.jar:

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE catalog PUBLIC -//OASIS//DTD XML Catalogs V1.1//EN
 http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd;
 catalog xmlns=urn:oasis:names:tc:entity:xmlns:xml:catalog
system
systemId=http://example.com/myservice.wsdl;
uri=wsdl/myservice.wsdl/
 /catalog

 Glassfish resolves the absolute wsdlLocation with the help of the
 catalog file. But Geronimo seems to ignore the jax-ws-catalog.xml in the
 classpath and throws an exception during deployment. (I use 2.2-SNAPSHOT
 to leverage JAX-WS 2.1.)

 Why does Geronimo ignore the jax-ws-catalog.xml? Is this not implemented
 yet?

 Janko




Re: Where does log message go?

2009-01-09 Thread bongosdude

Kevan,

I can predepoy/deploy CAR to my local geronimo. But I could not deploy the
my EAR using eclipse GEP. I could not find out what are the problems. Do you
have any hints/suggestions/ideas on how I can find out what are wrong? I had
this problems for several days and I was really do not how to proceed.

Thanks for any helps

-B


bongosdude wrote:
 
 I used console and or Eclipse GEP. Both did not log to deployer.log and I
 did not see any specific error message to state why the deployment failed.
 Hope that I can give you more details to diagnose the log problems. 
 
 Thanks
 -B
 
 Kevan Miller wrote:
 
 
 On Jan 9, 2009, at 9:19 AM, Donald Woods wrote:
 
 The deployer.log will only get created if you use the  
 deployer.sh|.bat script.  If the error occurs in the server during  
 deployment, then look at the geronimo.log and/or geronimo.out files...

 BTW - Are you using the deployer script, the Admin Console or  
 Eclipse to deploy your app?
 
 There have been some cases where we failed to log appropriate failure  
 information during deployment and silently failed deployment. If  
 you've encountered such a problem, let us know and we'll work on fixing.
 
 --kevan 
 
 
 
 


-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/Where-does-log-message-go--tp21321478s134p21382071.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



How to create new server runtime in Eclipse with version 2.2-SNAPSHOT

2009-01-09 Thread bongosdude

Hi,

I tried to build geronimo-2.2-SNAPSHOT from trunk and created new server
runtime in eclipse. Eclipse complains with

An incorrect version of Apache Geronimo v2.1 2 was detected.  Version 2.1
was expected, but version 2.2-SNAPSHOT was found.

Is it OK to ignore this message or did I do something wrong here. I
currently could not deploy my EAR/CAR file from eclipse and I suspect that
this error may be the cause.

-B

-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/How-to-create-new-server-runtime-in-Eclipse-with-version-2.2-SNAPSHOT-tp21382258s134p21382258.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Where does log message go?

2009-01-09 Thread bongosdude

Kevan,

I install new server based on trunk. Eclipse complains that incorrect
version detected. It expects version 2.1 but encounter version 2.2-SNAPSHOT. 

An incorrect version of Apache Geronimo v2.1 2 was detected.  Version 2.1
was expected, but version 2.2-SNAPSHOT was found.

Can this be the cause? I cannot deploy sample calculator from eclipse GEP
too so I am sure it is not my app.

-B

bongosdude wrote:
 
 Kevan,
 
 I can predepoy/deploy CAR to my local geronimo. But I could not deploy the
 my EAR using eclipse GEP. I could not find out what are the problems. Do
 you have any hints/suggestions/ideas on how I can find out what are wrong?
 I had this problems for several days and I was really do not how to
 proceed.
 
 Thanks for any helps
 
 -B
 
 
 bongosdude wrote:
 
 I used console and or Eclipse GEP. Both did not log to deployer.log and I
 did not see any specific error message to state why the deployment
 failed. Hope that I can give you more details to diagnose the log
 problems. 
 
 Thanks
 -B
 
 Kevan Miller wrote:
 
 
 On Jan 9, 2009, at 9:19 AM, Donald Woods wrote:
 
 The deployer.log will only get created if you use the  
 deployer.sh|.bat script.  If the error occurs in the server during  
 deployment, then look at the geronimo.log and/or geronimo.out files...

 BTW - Are you using the deployer script, the Admin Console or  
 Eclipse to deploy your app?
 
 There have been some cases where we failed to log appropriate failure  
 information during deployment and silently failed deployment. If  
 you've encountered such a problem, let us know and we'll work on fixing.
 
 --kevan 
 
 
 
 
 
 


-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/Where-does-log-message-go--tp21321478s134p21382292.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo Console

2009-01-09 Thread cbkihong



Donald Woods-2 wrote:
 
 What level of Geronimo are you using - 2.1.3, 2.1.4-SNAPSHOT or 
 2.2-SNAPSHOT?
 
 Also, what OS locale are you trying to use for your server and console?
 
 I'm running the server and console on a English MacOSX and WinXP without 
 problems
 

Thanks for all your replies.

Latest release, presumably 2.1.3, if this matters. I started with the locale
to C in Linux, which should be English.

As for the other reply, I don't have zh_CN in the list but I do have zh_HK
(after en_US). Even though I haven't tried it yet, I think removing zh_HK
from the list altogether will do the trick. I just found it strange with the
implementation that it does not seem to honour the priority given nor does
it have any easy way to switch the UI language. Because fiddling with the
browser language list is tedious and would alter browsing habit for other
sites, I was just asking if some easier and less global means is possible;
otherwise I'll just leave it as it is and avoid changing the browser
language priorities altogether.
-- 
View this message in context: 
http://www.nabble.com/Geronimo-Console-tp21369352s134p21383628.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to create new server runtime in Eclipse with version 2.2-SNAPSHOT

2009-01-09 Thread viola.lu

Hi,gongosdude:
First keep geronimo server runtime jvm version consistent with eclipse jvm ,
and if you build G2.2 snapshot with JDK 1.6, you'd better run it on JDk 1.6, 
Second pls check your eclipse configuration:
Windows-Preference-Server-Runtime Environment, Edit your newly added
server runtime:Application server install directory posists a correct G
2.2 directory and choose a correct JRE.
Third, when you defin a new server, pls select correct server runtime
environment if multiple server runtime have been created.If you run G2.2
snapshot, but choose a g2.1 server runtime environment, there is problem.
Four, if possible, can you remove incorrect version of Apache Geronimo v2.1
2  from your server runtime or server list.
After that, if all above don't work, pls first make sure your applicaton can
run well on G2.1.3 server runtime via GEP 2.1.3. Currently, Latested GEP
version 2.1.3 only has been verified on G2.1.* G2.0.*.

Hope can help you
GOOD Luck.
Viola.Lu


bongosdude wrote:
 
 Hi,
 
 I tried to build geronimo-2.2-SNAPSHOT from trunk and created new server
 runtime in eclipse. Eclipse complains with
 
 An incorrect version of Apache Geronimo v2.1 2 was detected.  Version 2.1
 was expected, but version 2.2-SNAPSHOT was found.
 
 Is it OK to ignore this message or did I do something wrong here. I
 currently could not deploy my EAR/CAR file from eclipse and I suspect that
 this error may be the cause.
 
 -B
 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-new-server-runtime-in-Eclipse-with-version-2.2-SNAPSHOT-tp21382258s134p21384354.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.