[Installation, Configuration & Deployment] - problem with class loader jboss schedular
by harshi
hi,
i want to depoly a schedular in jboss. i used org.jboss.varia.scheduler.Schedulable.
when i deploy a jar file with schduler class and put the respective entry in jboss service xml with code base entry it works fine.
hence i need to include this jar file inside in ear.
say my jar file is ejb-application.jar
inside meta-inf/manifest.mf i include following entry classpath: ejb-application.jar.
then set code base to ear in jboss service.xml now the scheduler does not start and no class def found error is thrown for the schedular class.
i refered forum message titled "CLASS PATH TO EAR" and include the my jar file in folder called lib inside the ear. then i change the entry classpath: .\lib\ejb-application.jar
then also ear deploys ok. but the no class def error for schedulable class is coming.
then i create a sperate jar file that contains the schedulable class and i include that in to default/lib.
the session beans refered is included in ear.
the schedulable class detects but contiously it gives no class def found error for the remote home interface.
could u pls tell me how to solve this problem.
what i basically wants to do is deploy a scheduler where the schualable class reside in jar file which deploy as an ear.
please help me
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980004#3980004
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980004
19 years, 8 months
[Messaging, JMS & JBossMQ] - Re: SonicMQ and JBossMQ on one AppServer
by fhh
Hello!
Thanks for the replies!
1.) I use the Sonic glue classes from their web site. Not sure which technique these use but in theory these work fine. The only problem is that the (rather old) SonicMQ version 5.0.1 classes are JMS 1.0.2 only and the stuff under org.jboss.resource.adapter.jms.* relies on JMS 1.1 in JBossAS 4.0.x.
This explains the exception very well: The adapter classes are linked against javax.jms.Connection v 1.1, but progress.message.jimpl.QueueConnection implements only 1.0.2 of the interface. Therefore the createSession method ist not implemented and hence abstract.
To fix the lack of the unified model is pretty trivial. There are about 30 errors in the code, almost all of which can be fixed by if-instanceofs. But there are also a few more tricky issues - namely the missing methods that do not have an equivalent in JMS 1.0.2.
Maybe the best approach will be to avoid calling these internally and throw a NotAvailableInJMS102 exception if these are called from outside. This would mean the offending classes would still have to be linked against 1.1.
I do not need any fancy stuff like XASessions because the migration to SonicMQ is planned for next year and I can do without till then. So an exception would be absolutely acceptable to me.
2.) I use a recent version of Sun's Java 1.5.0. Don't know which as I am not in office.
Regards
fhh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979998#3979998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979998
19 years, 8 months
[JBossWS] - secured EJB webservice endpoint
by vachacz
Hi
I'm looking forward to expose secured EJB webservice endpoint. My EJB is protected with JAAS security domain (DatabaseLoginModule with ClientLoginModule works fine). I'm able to deploy EJB as a webservice using annotations. All works really well. When i call webservice within a client code i can call EJB WebMethods that has @PermitAll annotation. My problem occurs with methods that are allowed only for JAAS authorized users (@RolesAllowed({...})). When i call such a method i recive
| Caused by: java.lang.SecurityException: Insufficient permissions, principal=null, requiredRoles=[showKlient], principalRoles=[]
|
it's normal behaviour becouse my client isn't authorized with JAAS. I wonder how to do JAAS login via SOAP. It would be great to do it with a pySOAP (python) or SOAPLite (perl) clients
I read a lot on a jBoss forum and i didn't find anything
thx in advance
Lucas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979997#3979997
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979997
19 years, 8 months
[EJB 3.0] - oneToMany (Many is JoinInherit) error
by chinafax
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class OrderFormLineTraffic implements java.io.Serializable {
@ManyToOne(cascade={CascadeType.PERSIST},fetch=FetchType.LAZY)
@JoinColumn(name="orderFormLineID") //,table="OrderFormLineTraffic" table can not use on JOINED relationship
private OrderFormLine orderFormLine;
}
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@PrimaryKeyJoinColumn(name="orderFormLineAirplaneId")
public class OrderFormLineAirplane extends OrderFormLineTraffic implements java.io.Serializable {
}
@Entity
public class OrderFormLine implements java.io.Serializable {
@OneToMany(targetEntity=OrderFormLineAirplane.class,cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="orderFormLine")
private Collection orderFormLineAirplane;
}
error: column orderFormLineID invalid on OrderFormLineAirplane table.
it inherit from supper class OrderFormLineTraffic. But can not define table="OrderFormLineTraffic" on @ManyToOne relationship orderFormLine
select orderforml0_.orderFormLineID as orderFor9_1_, orderforml0_.orderFormLineAirplaneId as orderFor1_1_, orderforml0_.orderFormLineAirplaneId as id179_0_, orderforml0_1_.orderFormLineID as orderFor7_179_0_, orderforml0_1_.startPoint as startPoint179_0_, orderforml0_1_.destinationPoint as destinat3_179_0_, orderforml0_1_.startDateTime as startDat4_179_0_, orderforml0_1_.arriveDateTime as arriveDa5_179_0_, orderforml0_1_.createTime as createTime179_0_, orderforml0_.ticketNo as ticketNo180_0_, orderforml0_.airwaysName as airwaysN3_180_0_, orderforml0_.scheduledFlightNo as schedule4_180_0_, orderforml0_.startAirdrome as startAir5_180_0_, orderforml0_.desinationAirdrome as desinati6_180_0_, orderforml0_.eairplaneModel as eairplan7_180_0_, orderforml0_.ebunkModel as ebunkModel180_0_ from OrderFormLineAirplane orderforml0_ inner join OrderFormLineTraffic orderforml0_1_ on orderforml0_.orderFormLineAirplaneId=orderforml0_1_.id where orderforml0_.orderFormLineID=?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979996#3979996
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979996
19 years, 8 months