[JBossWS] - Unable to deploy service WAR
by kj_newbie
Hi,
I am stuck at the point of deployment of my WAR. (for starters I am not sure if I created the WAR correctly.) but, I get the following error :
15:49:57,468 INFO [TomcatDeployment] undeploy, ctxPath=/StockQuoteService, vfsUrl=StockQuoteService
.war
15:50:00,218 INFO [TomcatDeployment] deploy, ctxPath=/StockQuotePortImpl, vfsUrl=StockQuotePortImpl
.war
15:50:00,281 INFO [[/StockQuotePortImpl]] Marking servlet StockServiceServlethttp as unavailable
15:50:00,281 ERROR [[/StockQuotePortImpl]] Servlet /StockQuotePortImpl threw load() exception
java.lang.ClassCastException: com.sun.samples.StockQuotePortImpl cannot be cast to javax.servlet.Servlet
I am not sure what's going on here. Can someone point me to a resource that would list steps to generate a WAR for the WS and deploy it. I mean, what all goes in the war? does the name of the WAR matter? does the name of the WS implementation file matter? how shd the web.xml look?
Any help will be appreciated.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235128#4235128
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235128
16 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Custom clause in ManyToOne relation
by tresher.m
We need to add custom clause to all of selects and we have to do it automatically.
For example:
@Entity
| public class A extends DeletableEntity{
| @OneToMany(mappedBy = "a")
| @Where(clause = "DELETED=0 or DELETED is null")
| private Set<B> bSet = new HashSet<B>();
|
| ....
| }
|
| @Entity
| public class B extends DeletableEntity
| {
| @ManyToOne
| @Where(clause = "DELETED=0 or DELETED is null")
| private A a;
|
| ....
| }
when executed follow HQL with select from A:
"select b.DELETED from A a join a.bSet b"
generated SQL have needed clause
select bset1_.DELETED as col_0_0_ from A a0_ inner join B bset1_ on a0_.id=bset1_.a_id and ( bset1_.DELETED=0 or bset1_.DELETED is null)
But from this HQL:
"select b.DELETED from B b join b.a a"
query naven't any clause:
select b0_.DELETED as col_0_0_ from B b0_ inner join A a1_ on b0_.a_id=a1_.id
How can we to select only not deleted A entities, jioned to B?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235116#4235116
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235116
16 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Problem with encrypted passwords for an Oracle datasource
by holgerb
Hi there,
I have a problem with using encrypted passwords with JBoss datasources.
I´ve been following this guide:
http://www.jboss.org/community/wiki/EncryptingDataSourcePasswords
Here is the datasource:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <datasources>
| <xa-datasource>
| <jndi-name>epr-db</jndi-name>
| <track-connection-by-tx/>
| <isSameRM-override-value>false</isSameRM-override-value>
| <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
| <xa-datasource-property name="URL">
| jdbc:oracle:thin:@127.0.0.1:1521:xe
| </xa-datasource-property>
| <!--
| <xa-datasource-property name="User">epr</xa-datasource-property>
| <xa-datasource-property name="Password">verlag</xa-datasource-property>
| -->
| <security-domain>ePR-Password</security-domain>
| </xa-datasource>
| </datasources>
|
I´ve commented the initial DB user and password out. If I use the user and password in clear-text the database connection works fine.
This is the security domain Iôve set up in the login-config.xml:
| <application-policy name="ePR-Password">
| <authentication>
| <login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
| <module-option name="username">epr</module-option>
| <module-option name="password">-2a049cd3108dc16b</module-option>
| <module-option name="managedConnectionFactoryName">jboss.jca:name=epr-db,service=LocalTxCM</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
The database I use is a locally running Oracle XE. The JBoss (Community Version 4.2.2GA) reports the following error:
| 2009-06-03 21:08:57,203 ERROR [org.jboss.resource.security.AbstractPasswordCredentialLoginModule] The ConnectionManager mbean: jboss.jca:service=LocalTxCM,name=epr-db specified in a ConfiguredIdentityLoginModule could not be found. ConnectionFactory will be unusable!
| ..
|
This causes that the deployment of all ear-files depending on the data source fails. I´m unshure if the service property for the module is correct but most examples for standard datasources look like this.
Does anyone have a clue what Iôm doing wrong ?
TIA,
Holger
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235109#4235109
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235109
16 years, 10 months