[JBoss Web Services Users] - web services and virtual hosts (jbossws 3.0.5 on AS4.2.2)
by brettcave
theres a few topics on this, and doesn't seem to be resolved yet, although jbossws-native 3.0.3 addressed the issue - is there perhaps a step missing, or is this an issue with a component other than just jbossws (ejb2.1 endpoints?)
1) upgrade jboss to jbossws-native 3.0.5 and restart (all libs and the jbossws.sar updated in deploy)
2) update libraries in my project classpath (ide and compile cp's) - specifically jbossws-spi.jar for the annotations (jaxb-api stays the same). recompile and redeploy project.
jboss-web.deployer/server.xml:
<Host name="my.virtual.host"
| ......>
| <Alias>my.virtual.host.name</Alias>
| <Alias>my.virtual.host.name:80</Alias>
| <Valve ... />
| </Host>
|
The default "localhost" virtualhost is still configured, and listens on 0.0.0.0:8080 to all headers excluding the virtualhost aliases above.
MyWSBean.java (seam 2.1.1):
@Name("myWS")
| @Stateless()
| @WebContext(virtualHosts = {"my.virtual.host"}, contextRoot = "/services")
| @WebService(name="myWS", serviceName="myWS")
| public class MyWSBean {}
|
See theres a few jira issues about this, assuming there is no working for jboss 4? (5.0.1 is resolved).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267270#4267270
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267270
16 years, 5 months
Re: [jboss-user] Hibernate proxy class problem
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=15288 Posted on behalf of a User
Hi,
did you resolve your issue?
I have the same problem and am searching for a solution to solve it?
Best Regards,
Sascha
In Response To:
Hi,
I'm having the following odd situation:
| @Entity
| @Inheritance(strategy = InheritanceType.JOINED)
| public abstract class Customer { @Id private int id; }
|
| @Entity
| public class SomeCustomer extends Customer { private String name; }
|
I'm using Entity Manager to retrieve entities by their primary key:
| entityManager.find(Customer.class, 5);
|
The primary key 5 belongs to a SomeCustomer entity. It's in the id field of both Customer and SomeCustomer tables (due to join inheritance). However, the query returns an object that has the type Customer_$$_javassist_16 that cannot be cast to SomeCustomer (ClassCastException).
However, if I execute the following query:
| entityManager.find(SomeCustomer.class, 5);
|
I will see a warning in my logfile: ProxyWarnLog: Narrowing proxy to class SomeCustomer - this operation breaks ==
Subsequent call to the first find() query will now also return the right object of the right type.
Does anybody know what's going on here or how I can manually narrow down my proxy object to what I want to have if it fails?
Thanks a lot,
Georges
16 years, 5 months