Not able to get device information from WURFLManager
-
- Posts: 6
- Joined: Thu Apr 11, 2013 3:04 am
Not able to get device information from WURFLManager
We are using java 1.7 and jboss-eap.6.0 web application server. we have integrated wrufl1.4 jar with the web application. We are not getting device information from wruflManager. Any clue what is the reason?
-
- Posts: 294
- Joined: Mon Jun 20, 2011 5:04 pm
Re: Not able to get device information from WURFLManager
is there any error message, log or stack trace you can post?
thanks
thanks
-
- Posts: 6
- Joined: Thu Apr 11, 2013 3:04 am
Re: Not able to get device information from WURFLManager
WURFLHolder wurfl = (WURFLHolder) getServletContext().getAttribute(WURFLHolder.class.getName()); //line 1
WURFLManager manager = wurfl.getWURFLManager();//line 2
Device device = manager.getDeviceForRequest(request);//line 3
we are calling above code but on line 2 server does not give any response. I have put listener entry in web.xml correctly.
web xml entry as below.
<context-param>
<param-name>wurfl</param-name>
<param-value>classpath:/wurfl.zip</param-value>
</context-param>
<listener>
<listener-class>
net.sourceforge.wurfl.core.web.WURFLServletContextListener
</listener-class>
</listener>
WURFLManager manager = wurfl.getWURFLManager();//line 2
Device device = manager.getDeviceForRequest(request);//line 3
we are calling above code but on line 2 server does not give any response. I have put listener entry in web.xml correctly.
web xml entry as below.
<context-param>
<param-name>wurfl</param-name>
<param-value>classpath:/wurfl.zip</param-value>
</context-param>
<listener>
<listener-class>
net.sourceforge.wurfl.core.web.WURFLServletContextListener
</listener-class>
</listener>
-
- Posts: 38
- Joined: Tue Jan 31, 2012 10:27 am
Re: Not able to get device information from WURFLManager
Can you tell us where exactly is the wurfl.zip file placed?
Moreover, could you try to upgrade to the latest Java API version (1.4.4.3)?
There should be no difference in terms of initialization, while on the other hand wurfl.zip file retrieval should be more consistent.
Fulvio
Moreover, could you try to upgrade to the latest Java API version (1.4.4.3)?
There should be no difference in terms of initialization, while on the other hand wurfl.zip file retrieval should be more consistent.
Fulvio
-
- Posts: 6
- Joined: Thu Apr 11, 2013 3:04 am
Re: Not able to get device information from WURFLManager
After doing suggested changes,still getting the same problem.Please sugget.
-
- Posts: 6
- Joined: Thu Apr 11, 2013 3:04 am
Re: Not able to get device information from WURFLManager
I have tried with upgraded version of wurfl i.e. wurfl1.4.4.3 and my wurfl.zip is placed in WEB-INF/classes.
But still facing the same problem.Please help
But still facing the same problem.Please help
-
- Posts: 38
- Joined: Tue Jan 31, 2012 10:27 am
Re: Not able to get device information from WURFLManager
I guess I have the solution, then.
Try to replicate the 1.4.4.3 helloworld configuration: place the wurfl.zip file in the WEB-INF folder, at the same level of the classes folder, instead of inside it
Then copy this in the web.xml file:
As I wrote in my previous post, 1.4.4.3 should have enhanced wurfl.zip file loading, letting you avoid the classpath:/ constraint.
Let me know if this fix solves your problem.
Fulvio
Try to replicate the 1.4.4.3 helloworld configuration: place the wurfl.zip file in the WEB-INF folder, at the same level of the classes folder, instead of inside it
Then copy this in the web.xml file:
Code: Select all
<context-param>
<param-name>wurfl</param-name>
<param-value>WEB-INF/wurfl.zip</param-value>
</context-param>
Let me know if this fix solves your problem.
Fulvio
-
- Posts: 6
- Joined: Thu Apr 11, 2013 3:04 am
Re: Not able to get device information from WURFLManager
We have done that also but problem is same.
-
- Posts: 6
- Joined: Thu Apr 11, 2013 3:04 am
Re: Not able to get device information from WURFLManager
There was some jar conflict issue in our project. We have rectified these conflicts. Now Project is working fine.
-
- Posts: 38
- Joined: Tue Jan 31, 2012 10:27 am
Re: Not able to get device information from WURFLManager
Problem fixed. It was actually a server configuration issue, causing JBoss not to recognize wurfl.zip path.
As usual, as in any Java projects, make sure that you don't have JAR files of older versions of the libraries in forgotten places where the CLASSPATH can still see them.
What we noticed is that sometimes JBoss fails to recognize paths like WEB-INF/<path_to_wurfl.zip>.
Nevertheless, paths like classpath:/<path_to_wurfl.zip>, or absolute paths like file:///<path_to_wurfl.zip> seem to always work.
As usual, as in any Java projects, make sure that you don't have JAR files of older versions of the libraries in forgotten places where the CLASSPATH can still see them.
What we noticed is that sometimes JBoss fails to recognize paths like WEB-INF/<path_to_wurfl.zip>.
Nevertheless, paths like classpath:/<path_to_wurfl.zip>, or absolute paths like file:///<path_to_wurfl.zip> seem to always work.
-
- Posts: 1
- Joined: Mon May 11, 2020 1:31 am
Re: Not able to get device information from WURFLManager
HI..
Good day to you. I need to get the client device details. I have checked with online and found you.Can I possible to get the device details if I am unlincensed user by using your wurfl. If possible means, let me know instructions or doumentation for getting device details in servlet project. Thanks for advance.
Regards,
Keerthika S.
Good day to you. I need to get the client device details. I have checked with online and found you.Can I possible to get the device details if I am unlincensed user by using your wurfl. If possible means, let me know instructions or doumentation for getting device details in servlet project. Thanks for advance.
Regards,
Keerthika S.
Who is online
Users browsing this forum: No registered users and 5 guests